Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.001107/0.001107, allocations: 106.6 kB / 16.92 MB, free: 6.145 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.001075/0.001075, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.135/1.135, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2259/0.2259, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001879/0.00188, allocations: 67.58 kB / 390.2 MB, free: 48.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08436/0.08625, allocations: 59.16 MB / 449.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002867/0.08915, allocations: 2.065 MB / 451.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000812/0.08998, allocations: 0.6086 MB / 452 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.09008, allocations: 7.938 kB / 452 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.09019, allocations: 23.72 kB / 452 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.09038, allocations: 67.47 kB / 452.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001366/0.09053, allocations: 39.95 kB / 452.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002353/0.09077, allocations: 211 kB / 452.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.09092, allocations: 32.3 kB / 452.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.09105, allocations: 83.66 kB / 452.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.09119, allocations: 91.48 kB / 452.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.09122, allocations: 12 kB / 452.6 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.951e-05/0.09129, allocations: 16 kB / 452.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.375e-05/0.09133, allocations: 31.84 kB / 452.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.582e-05/0.09142, allocations: 91.47 kB / 452.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.09161, allocations: 163.6 kB / 452.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.09162, allocations: 0 / 452.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09163, allocations: 0 / 452.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.09164, allocations: 0 / 452.9 MB, free: 6.113 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007055/0.09235, allocations: 494.5 kB / 453.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.0924, allocations: 15.89 kB / 453.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.8e-05/0.09245, allocations: 38.75 kB / 453.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.22e-05/0.09254, allocations: 24.66 kB / 453.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.09281, allocations: 244.8 kB / 453.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.09283, allocations: 8.375 kB / 453.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.09287, allocations: 20.31 kB / 453.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.0931, allocations: 135.4 kB / 453.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.09313, allocations: 0 / 453.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.09314, allocations: 4 kB / 453.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.09316, allocations: 4 kB / 453.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.09333, allocations: 80.53 kB / 453.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007184/0.09405, allocations: 0.5528 MB / 454.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.09431, allocations: 110.5 kB / 454.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.548e-05/0.0944, allocations: 44.84 kB / 454.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.09442, allocations: 4 kB / 454.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.09445, allocations: 34.72 kB / 454.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 3.386e-06/0.09446, allocations: 0 / 454.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007327/0.0952, allocations: 453.4 kB / 455.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.09523, allocations: 51.41 kB / 455.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.09543, allocations: 221 kB / 455.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.09545, allocations: 29.7 kB / 455.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/0.09553, allocations: 124.3 kB / 455.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.09557, allocations: 43.3 kB / 455.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.09562, allocations: 33.72 kB / 455.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.09573, allocations: 330.8 kB / 455.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.22e-05/0.0958, allocations: 31.98 kB / 455.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.748e-05/0.0959, allocations: 62.55 kB / 456 MB, free: 2.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.09605, allocations: 90.5 kB / 456.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.09606, allocations: 0 / 456.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002287/0.0963, allocations: 153.3 kB / 456.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.09632, allocations: 4 kB / 456.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.09633, allocations: 0 / 456.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.09635, allocations: 4 kB / 456.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.0965, allocations: 39.92 kB / 456.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.09651, allocations: 3.984 kB / 456.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.205e-05/0.09661, allocations: 4 kB / 456.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.09662, allocations: 8 kB / 456.3 MB, free: 2.363 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (16): * Single equations (assignments): 16 * 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 9.205e-05/0.09672, allocations: 121.9 kB / 456.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/0.09677, allocations: 23.75 kB / 456.4 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.414e-05/0.09682, allocations: 21.7 kB / 456.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.09683, allocations: 0 / 456.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.09683, allocations: 0 / 456.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.09684, allocations: 0 / 456.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004986/0.09734, allocations: 451.2 kB / 456.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.09736, allocations: 4 kB / 456.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.09751, allocations: 31.92 kB / 456.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.09752, allocations: 0 / 456.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.09753, allocations: 4 kB / 456.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.09754, allocations: 0 / 456.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.09754, allocations: 0 / 456.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003358/0.09789, allocations: 271.1 kB / 457.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/0.09798, allocations: 101 kB / 457.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.09801, allocations: 4 kB / 457.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.09813, allocations: 8 kB / 457.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.136e-05/0.09817, allocations: 7.984 kB / 457.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.09818, allocations: 0 / 457.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001342/0.09832, allocations: 168.5 kB / 457.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09832, allocations: 0 / 457.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.09856, allocations: 32 kB / 457.5 MB, free: 1.051 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * 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 (12): * Single equations (assignments): 12 * 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.0005096/0.09908, allocations: 0.8018 MB / 458.3 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001988/0.09929, allocations: 87.95 kB / 458.4 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.0993, allocations: 0 / 458.4 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.423e-05/0.09938, allocations: 47.91 kB / 458.5 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.09972, allocations: 32.97 kB / 458.5 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.1022, allocations: 2.264 MB / 460.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.1025, allocations: 0.728 MB / 461.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.911e-05/0.1026, allocations: 17.53 kB / 461.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.726e-05/0.1027, allocations: 59.36 kB / 461.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1027, allocations: 0 / 461.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.863/3.966, allocations: 3.657 MB / 465.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/17.15, allocations: 5.172 kB / 465.2 MB, free: 9.148 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)