Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.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.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",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.0008074/0.0008075, 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.0008479/0.0008479, 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.077/1.077, 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.2193/0.2193, allocations: 48.8 MB / 320.8 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.0004212/0.0004212, allocations: 14.89 kB / 391.9 MB, free: 50.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06946/0.06989, allocations: 60.26 MB / 452.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.2382/0.3081, allocations: 109.2 MB / 0.5482 GB, free: 5.953 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.3185, allocations: 12.4 MB / 0.5604 GB, free: 5.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003848/0.3189, allocations: 27.88 kB / 0.5604 GB, free: 5.766 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009231/0.3198, allocations: 487.8 kB / 0.5609 GB, free: 5.766 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000743/0.3206, allocations: 0.6387 MB / 0.5615 GB, free: 5.75 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009072/0.3296, allocations: 4.659 MB / 0.566 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002068/0.3317, allocations: 2.79 MB / 0.5688 GB, free: 4.961 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000619/0.3323, allocations: 0.5755 MB / 0.5693 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005543/0.3329, allocations: 0.6323 MB / 0.5699 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.3334, allocations: 0.7059 MB / 0.5706 GB, free: 4.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.276e-05/0.3335, allocations: 52.47 kB / 0.5707 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007629/0.3411, allocations: 6.371 MB / 0.5769 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.065e-05/0.3412, allocations: 151.7 kB / 0.577 GB, free: 4.086 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.3415, allocations: 490.7 kB / 0.5775 GB, free: 3.883 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003405/0.3449, allocations: 4.381 MB / 0.5818 GB, free: 1.969 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.345, allocations: 3.438 kB / 0.5818 GB, free: 1.969 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.345, allocations: 0 / 0.5818 GB, free: 1.969 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.345, allocations: 0 / 0.5818 GB, free: 1.969 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003115/0.3481, allocations: 1.746 MB / 0.5835 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.3481, allocations: 6.312 kB / 0.5835 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.438e-05/0.3482, allocations: 118.6 kB / 0.5836 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002493/0.3485, allocations: 118.9 kB / 0.5837 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004317/0.3489, allocations: 0.5214 MB / 0.5842 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.349, allocations: 54.59 kB / 0.5843 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.028e-05/0.349, allocations: 72.72 kB / 0.5844 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001955/0.351, allocations: 1.044 MB / 0.5854 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.351, allocations: 7.766 kB / 0.5854 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.64e-05/0.3511, allocations: 30.12 kB / 0.5854 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3511, allocations: 16.91 kB / 0.5854 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002198/0.3533, allocations: 0.8885 MB / 0.5863 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003722/0.357, allocations: 4.716 MB / 0.5909 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002124/0.3592, allocations: 0.818 MB / 0.5917 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008357/0.36, allocations: 336.9 kB / 0.592 GB, free: 11.44 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05448/0.4145, allocations: 32.29 MB / 0.6236 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/0.416, allocations: 0.5646 MB / 0.6241 GB, free: 11.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.416, allocations: 0 / 0.6241 GB, free: 11.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.003493/0.4195, allocations: 1.215 MB / 0.6253 GB, free: 10.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.4195, allocations: 85.02 kB / 0.6254 GB, free: 10.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004934/0.42, allocations: 0.5634 MB / 0.6259 GB, free: 9.758 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.523e-05/0.4201, allocations: 41.12 kB / 0.626 GB, free: 9.719 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.4203, allocations: 368.7 kB / 0.6263 GB, free: 9.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.221e-05/0.4204, allocations: 133 kB / 0.6264 GB, free: 9.371 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.822e-05/0.4205, allocations: 57 kB / 0.6265 GB, free: 9.328 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4206, allocations: 372.5 kB / 0.6269 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008663/0.4215, allocations: 317.3 kB / 0.6272 GB, free: 8.727 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008891/0.4224, allocations: 410.4 kB / 0.6275 GB, free: 8.355 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.4241, allocations: 0.7754 MB / 0.6283 GB, free: 7.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4241, allocations: 0 / 0.6283 GB, free: 7.586 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002063/0.4262, allocations: 0.9397 MB / 0.6292 GB, free: 6.617 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001394/0.4263, allocations: 289.4 kB / 0.6295 GB, free: 6.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4263, allocations: 4 kB / 0.6295 GB, free: 6.266 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.4264, allocations: 7.984 kB / 0.6295 GB, free: 6.258 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.427, allocations: 159.8 kB / 0.6297 GB, free: 6.102 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.427, allocations: 7.938 kB / 0.6297 GB, free: 6.094 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007846/0.4278, allocations: 179.1 kB / 0.6298 GB, free: 5.918 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.4279, allocations: 31.98 kB / 0.6299 GB, free: 5.887 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.88e-06/0.4279, allocations: 4 kB / 0.6299 GB, free: 5.883 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001862/0.4297, allocations: 0.8495 MB / 0.6307 GB, free: 5.008 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.4298, allocations: 4 kB / 0.6307 GB, free: 5.004 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.392e-06/0.4298, allocations: 4.312 kB / 0.6307 GB, free: 5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005343/0.4303, allocations: 171.7 kB / 0.6309 GB, free: 4.832 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4303, allocations: 5.188 kB / 0.6309 GB, free: 4.828 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006896/0.431, allocations: 167.4 kB / 0.631 GB, free: 4.664 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.4311, allocations: 20 kB / 0.6311 GB, free: 4.645 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 (Sine4.count,$PRE.Sine4.count,Sine4.T_start,$PRE.Sine4.T_start,Sine3.count,$PRE.Sine3.count,Sine3.T_start,$PRE.Sine3.T_start,$whenCondition3,$whenCondition4,Sine2.count,$PRE.Sine2.count,Sine2.T_start,$PRE.Sine2.T_start,Sine1.count,$PRE.Sine1.count,Sine1.T_start,$PRE.Sine1.T_start,$whenCondition1,$whenCondition2,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 4 * 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.0002446/0.4313, allocations: 275 kB / 0.6313 GB, free: 4.367 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.4314, allocations: 71.16 kB / 0.6314 GB, free: 4.297 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0028/0.4342, allocations: 1.934 MB / 0.6333 GB, free: 2.348 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.4342, allocations: 23.95 kB / 0.6333 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4342, allocations: 0 / 0.6333 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4343, allocations: 8 kB / 0.6333 GB, free: 2.316 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.4366, allocations: 2.038 MB / 0.6353 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4366, allocations: 0 / 0.6353 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005209/0.4372, allocations: 142.2 kB / 0.6354 GB, free: 96 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.4372, allocations: 4 kB / 0.6354 GB, free: 92 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.4372, allocations: 12 kB / 0.6354 GB, free: 80 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.4372, allocations: 3.938 kB / 0.6355 GB, free: 76 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4372, allocations: 4 kB / 0.6355 GB, free: 72 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.4394, allocations: 1.278 MB / 0.6367 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.4396, allocations: 215.6 kB / 0.6369 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.241e-05/0.4397, allocations: 15.94 kB / 0.6369 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007098/0.4405, allocations: 143.8 kB / 0.6371 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.4406, allocations: 79.83 kB / 0.6371 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-05/0.4407, allocations: 16 kB / 0.6372 GB, free: 14.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003547/0.441, allocations: 395.1 kB / 0.6375 GB, free: 13.91 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.441, allocations: 0 / 0.6375 GB, free: 13.91 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002143/0.4432, allocations: 1.128 MB / 0.6386 GB, free: 12.78 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count) * Number of discrete states: 4 (Sine3.count,Sine4.count,Sine2.count,Sine1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * 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.005496/0.4487, allocations: 2.738 MB / 0.6413 GB, free: 10.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00308/0.4518, allocations: 1.672 MB / 0.6429 GB, free: 8.316 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4518, allocations: 0 / 0.6429 GB, free: 8.316 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.453, allocations: 0.6218 MB / 0.6435 GB, free: 7.691 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/0.4547, allocations: 354.9 kB / 0.6439 GB, free: 7.348 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.4652, allocations: 7.383 MB / 0.6511 GB, free: 15.77 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.4656, allocations: 1.011 MB / 0.6521 GB, free: 14.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006318/0.4663, allocations: 388.5 kB / 0.6524 GB, free: 14.36 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003806/0.4667, allocations: 347.3 kB / 0.6528 GB, free: 14.02 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4667, allocations: 0 / 0.6528 GB, free: 14.02 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.336/2.803, allocations: 48.86 MB / 0.7005 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/2.803, allocations: 188.2 kB / 0.7007 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.683/6.486, allocations: 7.875 kB / 0.7007 GB, free: 12.8 MB / 0.5294 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1)