Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.001115/0.001115, allocations: 106.9 kB / 16.92 MB, free: 5.676 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.001082/0.001082, allocations: 190.1 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.145/1.145, allocations: 205.1 MB / 223.7 MB, free: 12.36 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2173/0.2173, allocations: 48.83 MB / 319.9 MB, free: 11.09 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.001329/0.001329, allocations: 68.3 kB / 390.2 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06844/0.06978, allocations: 59.17 MB / 449.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003034/0.07283, allocations: 2.279 MB / 451.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.07387, allocations: 0.6514 MB / 452.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.07402, allocations: 4 kB / 452.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.07415, allocations: 35.59 kB / 452.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.07438, allocations: 83.33 kB / 452.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001519/0.07454, allocations: 63.84 kB / 452.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.0748, allocations: 278.8 kB / 452.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.07495, allocations: 73.59 kB / 452.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.07509, allocations: 107.6 kB / 452.9 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.07527, allocations: 123.3 kB / 453 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.07531, allocations: 16 kB / 453 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.967e-05/0.07538, allocations: 28 kB / 453.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.457e-05/0.07543, allocations: 47.83 kB / 453.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.07555, allocations: 123.3 kB / 453.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.07578, allocations: 231.1 kB / 453.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.07579, allocations: 4 kB / 453.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.0758, allocations: 0 / 453.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.07581, allocations: 0 / 453.5 MB, free: 5.508 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007796/0.07659, allocations: 0.5568 MB / 454 MB, free: 4.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.07663, allocations: 11.89 kB / 454 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.056e-05/0.07668, allocations: 50.73 kB / 454.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.33e-05/0.07677, allocations: 36.5 kB / 454.1 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.07703, allocations: 266.7 kB / 454.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.693e-05/0.07709, allocations: 42.27 kB / 454.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.07713, allocations: 27.97 kB / 454.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003419/0.07748, allocations: 187 kB / 454.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.0775, allocations: 0 / 454.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.07752, allocations: 8 kB / 454.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.07753, allocations: 4 kB / 454.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002696/0.0778, allocations: 119.9 kB / 454.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008867/0.0787, allocations: 0.6617 MB / 455.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/0.07903, allocations: 162.5 kB / 455.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.07919, allocations: 80.81 kB / 455.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.07921, allocations: 4 kB / 455.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.613e-05/0.07923, allocations: 30.56 kB / 455.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.192e-06/0.07924, allocations: 4 kB / 455.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001005/0.08025, allocations: 0.5724 MB / 456.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/0.08028, allocations: 51.41 kB / 456.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.0805, allocations: 241 kB / 456.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.08052, allocations: 33.7 kB / 456.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.226e-05/0.08061, allocations: 148.3 kB / 456.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.08066, allocations: 67 kB / 456.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.853e-05/0.08072, allocations: 41.7 kB / 456.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.08083, allocations: 334.8 kB / 457.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.08097, allocations: 59.95 kB / 457.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.08111, allocations: 81.62 kB / 457.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.08139, allocations: 145.4 kB / 457.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.08139, allocations: 0 / 457.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003888/0.08179, allocations: 209.2 kB / 457.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.08181, allocations: 4 kB / 457.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.08182, allocations: 7.969 kB / 457.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.08184, allocations: 4 kB / 457.7 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.08229, allocations: 71.95 kB / 457.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.0823, allocations: 0 / 457.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.08244, allocations: 15.98 kB / 457.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.08246, allocations: 7.938 kB / 457.8 MB, free: 0.9062 MB / 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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.08257, allocations: 138.4 kB / 457.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.08262, allocations: 23.72 kB / 457.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.817e-05/0.08267, allocations: 26.17 kB / 457.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.08268, allocations: 7.938 kB / 458 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.08269, allocations: 0 / 458 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.0827, allocations: 0 / 458 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006561/0.08336, allocations: 0.5426 MB / 458.5 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.08337, allocations: 0 / 458.5 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.08372, allocations: 71.95 kB / 458.6 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.08373, allocations: 0 / 458.6 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.08375, allocations: 8 kB / 458.6 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.08376, allocations: 7.875 kB / 458.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.08377, allocations: 0 / 458.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.08426, allocations: 351.5 kB / 458.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.864e-05/0.08435, allocations: 108.8 kB / 459 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.08439, allocations: 4 kB / 459 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.08454, allocations: 15.92 kB / 459.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.08459, allocations: 11.98 kB / 459.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.08461, allocations: 4 kB / 459.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001347/0.08475, allocations: 172.5 kB / 459.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.08476, allocations: 0 / 459.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.08501, allocations: 48 kB / 459.3 MB, free: 15.29 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: 1 (BreakerCommand.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006739/0.08569, allocations: 0.8839 MB / 460.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.08603, allocations: 163.7 kB / 460.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.08604, allocations: 0 / 460.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.08617, allocations: 75.91 kB / 460.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.08654, allocations: 36.55 kB / 460.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.08935, allocations: 2.618 MB / 463.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.08961, allocations: 0.7478 MB / 463.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.215e-05/0.0897, allocations: 17.95 kB / 463.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.08981, allocations: 75.41 kB / 463.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.08982, allocations: 0 / 463.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.117/2.207, allocations: 4.436 MB / 468.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.474/9.681, allocations: 1.172 kB / 468.3 MB, free: 6.039 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)