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.000783/0.000783, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.000835/0.000835, allocations: 182 kB / 17.56 MB, free: 6.203 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.124/1.124, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2278/0.2278, allocations: 48.79 MB / 320.8 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.0004488/0.0004488, allocations: 12.56 kB / 391.9 MB, free: 50 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0727/0.07316, allocations: 60.26 MB / 452.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.002089/0.07528, allocations: 2.095 MB / 454.3 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000857/0.07614, allocations: 0.6592 MB / 454.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.896e-05/0.07626, allocations: 7.938 kB / 454.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.162e-05/0.07636, allocations: 19.84 kB / 455 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.07656, allocations: 71.45 kB / 455 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000117/0.07668, allocations: 51.95 kB / 455.1 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.07693, allocations: 266.8 kB / 455.3 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.07708, allocations: 77.12 kB / 455.4 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.07721, allocations: 99.45 kB / 455.5 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.07736, allocations: 103.5 kB / 455.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.07739, allocations: 12 kB / 455.6 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.099e-05/0.07745, allocations: 15.94 kB / 455.6 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.07749, allocations: 35.78 kB / 455.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.713e-05/0.07759, allocations: 141 kB / 455.8 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.0778, allocations: 219 kB / 456 MB, free: 5.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.07781, allocations: 4 kB / 456 MB, free: 5.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.07782, allocations: 0 / 456 MB, free: 5.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.07783, allocations: 0 / 456 MB, free: 5.18 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.0007126/0.07855, allocations: 0.5281 MB / 456.6 MB, free: 4.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.07859, allocations: 8.031 kB / 456.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.469e-05/0.07864, allocations: 46.73 kB / 456.6 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.129e-05/0.07872, allocations: 36.56 kB / 456.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.07899, allocations: 266.7 kB / 456.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.846e-05/0.07905, allocations: 42.27 kB / 456.9 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.07909, allocations: 20.12 kB / 457 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003035/0.0794, allocations: 187.1 kB / 457.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.07942, allocations: 3.906 kB / 457.2 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.07944, allocations: 4 kB / 457.2 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.07945, allocations: 4 kB / 457.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002713/0.07973, allocations: 139.8 kB / 457.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008287/0.08056, allocations: 0.6735 MB / 458 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.08089, allocations: 158.5 kB / 458.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.08106, allocations: 84.83 kB / 458.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.08108, allocations: 0 / 458.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.08111, allocations: 38.56 kB / 458.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 9.51e-07/0.08111, allocations: 3.938 kB / 458.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001018/0.08214, allocations: 0.5947 MB / 458.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.08218, allocations: 59.41 kB / 458.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.08239, allocations: 236.9 kB / 459.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.08241, allocations: 33.64 kB / 459.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.317e-05/0.0825, allocations: 148.3 kB / 459.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.08255, allocations: 67 kB / 459.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.08259, allocations: 29.7 kB / 459.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.0827, allocations: 342.8 kB / 459.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.08284, allocations: 59.97 kB / 459.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.083, allocations: 89.61 kB / 459.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.08329, allocations: 149.6 kB / 460 MB, free: 0.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.0833, allocations: 0 / 460 MB, free: 0.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003583/0.08366, allocations: 221.2 kB / 460.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.08368, allocations: 11.98 kB / 460.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.08369, allocations: 0 / 460.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.0837, allocations: 0 / 460.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003892/0.0841, allocations: 83.91 kB / 460.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.08411, allocations: 4 kB / 460.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.08424, allocations: 12 kB / 460.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.08426, allocations: 4 kB / 460.4 MB, free: 0.5391 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.0001041/0.08437, allocations: 142.4 kB / 460.5 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.08442, allocations: 19.72 kB / 460.5 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.143e-05/0.08447, allocations: 30.19 kB / 460.5 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.08448, allocations: 0 / 460.5 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.08449, allocations: 7.984 kB / 460.6 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.0845, allocations: 0 / 460.6 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006796/0.08518, allocations: 0.5453 MB / 461.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.08519, allocations: 0 / 461.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.08555, allocations: 63.91 kB / 461.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.08557, allocations: 7.938 kB / 461.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.08558, allocations: 7.984 kB / 461.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.08559, allocations: 3.938 kB / 461.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.0856, allocations: 0 / 461.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.08611, allocations: 367.4 kB / 461.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.616e-05/0.08619, allocations: 108.8 kB / 461.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.08623, allocations: 12 kB / 461.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.08638, allocations: 15.94 kB / 461.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.08644, allocations: 19.91 kB / 461.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.08645, allocations: 4 kB / 461.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001303/0.08659, allocations: 172.5 kB / 461.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08659, allocations: 0 / 461.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002511/0.08685, allocations: 47.94 kB / 461.9 MB, free: 14.88 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.0007044/0.08756, allocations: 0.9073 MB / 462.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003158/0.08789, allocations: 159.8 kB / 463 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.0879, allocations: 0 / 463 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.08805, allocations: 79.91 kB / 463.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.08842, allocations: 44.41 kB / 463.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.09136, allocations: 2.787 MB / 465.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.09162, allocations: 0.7478 MB / 466.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.832e-05/0.09172, allocations: 29.88 kB / 466.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.09183, allocations: 71.41 kB / 466.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.09184, allocations: 4 kB / 466.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.1046, allocations: 4.074 MB / 470.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.1049, allocations: 198.2 kB / 471 MB, free: 5.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.535/1.64, allocations: 0 / 471 MB, free: 5.574 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)