Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 95.58 kB / 16.3 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002011/0.002011, allocations: 180.1 kB / 17.2 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.85/2.85, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6027/0.6027, allocations: 48.78 MB / 320.4 MB, free: 11.31 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008935/0.0008939, allocations: 13.83 kB / 391.2 MB, free: 50.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.1999, allocations: 60.27 MB / 451.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.004005/0.204, allocations: 1.906 MB / 453.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.206, allocations: 0.6674 MB / 454.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.2062, allocations: 4 kB / 454.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.446e-05/0.2064, allocations: 27.78 kB / 454.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004714/0.2068, allocations: 103.7 kB / 454.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.2071, allocations: 43.89 kB / 454.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.2075, allocations: 183.5 kB / 454.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.2078, allocations: 56.69 kB / 454.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.208, allocations: 91.64 kB / 454.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.2083, allocations: 103.5 kB / 454.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.2083, allocations: 8 kB / 454.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.642e-05/0.2084, allocations: 12 kB / 454.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.036e-05/0.2085, allocations: 35.84 kB / 454.7 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.251e-05/0.2086, allocations: 69.52 kB / 454.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.209, allocations: 155.8 kB / 454.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.209, allocations: 0 / 454.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.2091, allocations: 0 / 454.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.2091, allocations: 0 / 454.9 MB, free: 6.008 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001451/0.2106, allocations: 0.5139 MB / 455.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.919e-05/0.2107, allocations: 12.03 kB / 455.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.62e-05/0.2108, allocations: 50.55 kB / 455.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.211, allocations: 35.62 kB / 455.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005059/0.2115, allocations: 253.6 kB / 455.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.2115, allocations: 12 kB / 455.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.084e-05/0.2116, allocations: 16 kB / 455.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005484/0.2122, allocations: 182.8 kB / 456 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.2122, allocations: 3.953 kB / 456 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.2123, allocations: 8 kB / 456 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.2123, allocations: 4 kB / 456 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004632/0.2128, allocations: 131.6 kB / 456.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.2143, allocations: 0.658 MB / 456.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/0.2148, allocations: 134.6 kB / 456.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.2148, allocations: 4 kB / 456.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.992e-05/0.2149, allocations: 38.5 kB / 457 MB, free: 3.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.555e-06/0.2149, allocations: 0 / 457 MB, free: 3.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001694/0.2166, allocations: 0.5791 MB / 457.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.2166, allocations: 51.41 kB / 457.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.217, allocations: 225 kB / 457.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.2171, allocations: 33.7 kB / 457.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.2172, allocations: 148.3 kB / 458 MB, free: 2.676 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.107e-05/0.2173, allocations: 66.98 kB / 458.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.2174, allocations: 8 kB / 458.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.2176, allocations: 326.8 kB / 458.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.2178, allocations: 59.97 kB / 458.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002511/0.2181, allocations: 77.67 kB / 458.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.2183, allocations: 59.84 kB / 458.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2184, allocations: 8 kB / 458.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006267/0.219, allocations: 193.3 kB / 458.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.2191, allocations: 4 kB / 458.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.2191, allocations: 7.953 kB / 458.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.2191, allocations: 3.984 kB / 458.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006499/0.2198, allocations: 71.92 kB / 458.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.2216, allocations: 1.35 MB / 460.2 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.2219, allocations: 19.95 kB / 460.2 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.2219, allocations: 4 kB / 460.2 MB, free: 280 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002331/0.2222, allocations: 129.8 kB / 460.4 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.47e-05/0.2223, allocations: 27.72 kB / 460.4 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006178/0.2229, allocations: 197.9 kB / 460.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.2229, allocations: 4 kB / 460.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2229, allocations: 3.953 kB / 460.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.223, allocations: 3.984 kB / 460.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.2242, allocations: 0.5296 MB / 461.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.2242, allocations: 0 / 461.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004088/0.2247, allocations: 55.89 kB / 461.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.2247, allocations: 4 kB / 461.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.2247, allocations: 0 / 461.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.2247, allocations: 3.953 kB / 461.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2248, allocations: 0 / 461.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009186/0.2257, allocations: 360 kB / 461.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.2259, allocations: 104.9 kB / 461.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.174e-05/0.226, allocations: 4 kB / 461.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.2263, allocations: 15.98 kB / 461.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/0.2263, allocations: 15.94 kB / 461.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.2264, allocations: 4 kB / 461.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002938/0.2267, allocations: 164.5 kB / 461.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.182e-06/0.2267, allocations: 0 / 461.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005611/0.2273, allocations: 48 kB / 461.9 MB, free: 14.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00151/0.2288, allocations: 0.8799 MB / 462.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000996/0.2298, allocations: 179.8 kB / 463 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.2298, allocations: 0 / 463 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.2301, allocations: 83.91 kB / 463 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005574/0.2307, allocations: 36.41 kB / 463.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.2339, allocations: 1.21 MB / 464.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005962/0.2346, allocations: 0.7601 MB / 465 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.2348, allocations: 25.52 kB / 465.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.235, allocations: 75.41 kB / 465.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.264e-06/0.2351, allocations: 0 / 465.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05387/0.289, allocations: 4.285 MB / 469.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004038/0.2894, allocations: 186.9 kB / 469.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.259/3.548, allocations: 64 / 469.6 MB, free: 6.633 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) Environment - environmentSimulation: