Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.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.WaterComponents.TestJoin,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoin,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoin",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.0008185/0.0008186, allocations: 92.56 kB / 16.65 MB, free: 6.59 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.0008993/0.0008993, allocations: 182.4 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.082/1.082, 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.207/0.207, allocations: 48.78 MB / 320.8 MB, free: 11.12 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.0004259/0.0004259, allocations: 18.55 kB / 391.9 MB, free: 49.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07001/0.07044, allocations: 60.27 MB / 452.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoin): time 0.2382/0.3086, allocations: 106.7 MB / 0.5458 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.3197, allocations: 12.25 MB / 0.5577 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000455/0.3202, allocations: 24.31 kB / 0.5578 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009896/0.3212, allocations: 477.9 kB / 0.5582 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007342/0.3219, allocations: 0.5961 MB / 0.5588 GB, free: 5.781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01071/0.3326, allocations: 4.622 MB / 0.5633 GB, free: 5.52 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002035/0.3347, allocations: 2.56 MB / 0.5658 GB, free: 5.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007798/0.3355, allocations: 0.527 MB / 0.5663 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009791/0.3365, allocations: 0.5676 MB / 0.5669 GB, free: 5.008 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009378/0.3374, allocations: 0.634 MB / 0.5675 GB, free: 4.973 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.224e-05/0.3375, allocations: 43.41 kB / 0.5675 GB, free: 4.973 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008179/0.3457, allocations: 6.363 MB / 0.5738 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.3458, allocations: 133 kB / 0.5739 GB, free: 4.664 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003513/0.3462, allocations: 424 kB / 0.5743 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003682/0.3499, allocations: 4.275 MB / 0.5785 GB, free: 2.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3499, allocations: 0 / 0.5785 GB, free: 2.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3499, allocations: 0 / 0.5785 GB, free: 2.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.3499, allocations: 0 / 0.5785 GB, free: 2.68 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.002442/0.3523, allocations: 1.406 MB / 0.5798 GB, free: 1.754 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.3524, allocations: 6.656 kB / 0.5798 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.408e-05/0.3525, allocations: 110.4 kB / 0.58 GB, free: 1.699 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/0.3527, allocations: 115.5 kB / 0.5801 GB, free: 1.645 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.3531, allocations: 484.7 kB / 0.5805 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.586e-05/0.3531, allocations: 45.94 kB / 0.5806 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.59e-05/0.3532, allocations: 63.62 kB / 0.5806 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.3544, allocations: 0.8185 MB / 0.5814 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.3544, allocations: 0 / 0.5814 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.712e-05/0.3545, allocations: 26.34 kB / 0.5815 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3545, allocations: 20.19 kB / 0.5815 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.3557, allocations: 0.5995 MB / 0.5821 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.3584, allocations: 4.4 MB / 0.5864 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.3595, allocations: 498 kB / 0.5868 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/0.3599, allocations: 191.2 kB / 0.587 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05307/0.413, allocations: 32.3 MB / 0.6186 GB, free: 14.85 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.413, allocations: 49.88 kB / 0.6186 GB, free: 14.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=32): time 4.068e-06/0.413, allocations: 4 kB / 0.6186 GB, free: 14.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=32): time 0.001973/0.415, allocations: 0.7188 MB / 0.6193 GB, free: 14.22 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.4151, allocations: 81.05 kB / 0.6194 GB, free: 14.12 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003994/0.4155, allocations: 475.2 kB / 0.6198 GB, free: 13.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.4155, allocations: 29.64 kB / 0.6199 GB, free: 13.72 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.4157, allocations: 335.5 kB / 0.6202 GB, free: 13.49 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.091e-05/0.4158, allocations: 108.6 kB / 0.6203 GB, free: 13.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.4158, allocations: 39.44 kB / 0.6203 GB, free: 13.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.937e-05/0.4159, allocations: 366.9 kB / 0.6207 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002976/0.4162, allocations: 131.8 kB / 0.6208 GB, free: 12.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.4165, allocations: 215.2 kB / 0.621 GB, free: 12.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.4172, allocations: 346.5 kB / 0.6213 GB, free: 12.46 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4172, allocations: 0 / 0.6213 GB, free: 12.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000772/0.418, allocations: 448.7 kB / 0.6218 GB, free: 12.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.109e-05/0.418, allocations: 152.7 kB / 0.6219 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.418, allocations: 8 kB / 0.6219 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.4181, allocations: 4 kB / 0.6219 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.4184, allocations: 91.5 kB / 0.622 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.4185, allocations: 7.938 kB / 0.622 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.4189, allocations: 90.72 kB / 0.6221 GB, free: 11.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.4189, allocations: 19.25 kB / 0.6221 GB, free: 11.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.19e-06/0.419, allocations: 4 kB / 0.6221 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005011/0.4195, allocations: 304.3 kB / 0.6224 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-06/0.4195, allocations: 0 / 0.6224 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.168e-06/0.4195, allocations: 4 kB / 0.6224 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.4198, allocations: 83.39 kB / 0.6225 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.4198, allocations: 15.86 kB / 0.6225 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.4201, allocations: 91.36 kB / 0.6226 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.4201, allocations: 19.11 kB / 0.6226 GB, free: 11.31 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001908/0.4203, allocations: 249.2 kB / 0.6229 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.81e-05/0.4204, allocations: 59.25 kB / 0.6229 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.4219, allocations: 1.587 MB / 0.6245 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.422, allocations: 23.28 kB / 0.6245 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.422, allocations: 3.984 kB / 0.6245 GB, free: 9.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.422, allocations: 0 / 0.6245 GB, free: 9.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008655/0.4228, allocations: 0.988 MB / 0.6255 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4229, allocations: 0 / 0.6255 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.4232, allocations: 71.89 kB / 0.6255 GB, free: 9.074 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.4232, allocations: 8 kB / 0.6255 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.4232, allocations: 4 kB / 0.6255 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.4232, allocations: 7.938 kB / 0.6255 GB, free: 9.055 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4232, allocations: 0 / 0.6255 GB, free: 9.055 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.4243, allocations: 1.004 MB / 0.6265 GB, free: 8.039 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.4245, allocations: 191.8 kB / 0.6267 GB, free: 7.832 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.538e-05/0.4245, allocations: 12 kB / 0.6267 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003686/0.4249, allocations: 67.73 kB / 0.6268 GB, free: 7.754 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.483e-05/0.425, allocations: 43.92 kB / 0.6268 GB, free: 7.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.4251, allocations: 17.11 kB / 0.6268 GB, free: 7.695 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000264/0.4253, allocations: 322.9 kB / 0.6271 GB, free: 7.379 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4253, allocations: 0 / 0.6271 GB, free: 7.379 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002161/0.4275, allocations: 1.061 MB / 0.6282 GB, free: 6.316 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.003867/0.4314, allocations: 2.433 MB / 0.6306 GB, free: 3.934 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.4324, allocations: 0.6777 MB / 0.6312 GB, free: 3.262 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4324, allocations: 4 kB / 0.6312 GB, free: 3.258 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005035/0.433, allocations: 428.8 kB / 0.6316 GB, free: 2.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.4346, allocations: 314.5 kB / 0.6319 GB, free: 2.531 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006522/0.4411, allocations: 5.677 MB / 0.6375 GB, free: 12.73 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.4415, allocations: 0.979 MB / 0.6384 GB, free: 11.73 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005856/0.4421, allocations: 383.7 kB / 0.6388 GB, free: 11.35 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003267/0.4424, allocations: 303.3 kB / 0.6391 GB, free: 11.05 MB / 478.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4424, allocations: 0 / 0.6391 GB, free: 11.05 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.751/6.193, allocations: 45.1 MB / 0.6831 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/6.193, allocations: 191.1 kB / 0.6833 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.179/12.37, allocations: 4 kB / 0.6833 GB, free: 13.62 MB / 0.5137 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestJoin_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestJoin.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe 2>&1)