Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",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.0008056/0.0008056, allocations: 98.47 kB / 17 MB, free: 6.398 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.0007954/0.0007954, allocations: 177.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.3 MB / 241.9 MB, free: 340 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.191/0.191, allocations: 44.23 MB / 337.2 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003057, allocations: 15.98 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1163, allocations: 61.92 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.03556/0.1519, allocations: 33.97 MB / 0.4938 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2615/0.4135, allocations: 15.69 MB / 0.5091 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001073/0.4146, allocations: 21.44 kB / 0.5091 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.416, allocations: 357.5 kB / 0.5095 GB, free: 12.23 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01109/0.4271, allocations: 3.193 MB / 0.5126 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008593/0.4357, allocations: 2.469 MB / 0.515 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002947/0.4387, allocations: 2.047 MB / 0.517 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007326/0.4394, allocations: 449.6 kB / 0.5174 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001211/0.4406, allocations: 0.653 MB / 0.5181 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00076/0.4414, allocations: 0.5578 MB / 0.5186 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.277e-05/0.4415, allocations: 36.78 kB / 0.5186 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01558/0.4571, allocations: 7.006 MB / 0.5255 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005113/0.4576, allocations: 213 kB / 0.5257 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004492/0.4581, allocations: 167.5 kB / 0.5258 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006327/0.4644, allocations: 3.42 MB / 0.5292 GB, free: 9.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4644, allocations: 0 / 0.5292 GB, free: 9.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4645, allocations: 2.719 kB / 0.5292 GB, free: 9.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.4645, allocations: 0 / 0.5292 GB, free: 9.711 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004913/0.4694, allocations: 1.474 MB / 0.5306 GB, free: 8.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.4694, allocations: 10.09 kB / 0.5306 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.4696, allocations: 109 kB / 0.5307 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002705/0.4723, allocations: 379.5 kB / 0.5311 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008202/0.4731, allocations: 0.4968 MB / 0.5316 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.4732, allocations: 118.7 kB / 0.5317 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.4734, allocations: 60.97 kB / 0.5318 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.4758, allocations: 1.154 MB / 0.5329 GB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.4758, allocations: 7.688 kB / 0.5329 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.871e-05/0.4759, allocations: 22.94 kB / 0.5329 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.343e-05/0.476, allocations: 33.77 kB / 0.5329 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002472/0.4784, allocations: 1.087 MB / 0.534 GB, free: 7.492 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005604/0.4841, allocations: 5.049 MB / 0.5389 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.4866, allocations: 0.9584 MB / 0.5399 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006976/0.4873, allocations: 394.5 kB / 0.5402 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04632/0.5336, allocations: 24.44 MB / 0.5641 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.5337, allocations: 42.56 kB / 0.5642 GB, free: 10.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=47): time 2.425e-06/0.5337, allocations: 0 / 0.5642 GB, free: 10.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.006671/0.5404, allocations: 2.077 MB / 0.5662 GB, free: 8.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/0.5405, allocations: 111.2 kB / 0.5663 GB, free: 8.277 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008529/0.5413, allocations: 0.5938 MB / 0.5669 GB, free: 7.812 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.5414, allocations: 32.08 kB / 0.5669 GB, free: 7.781 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002329/0.5416, allocations: 317 kB / 0.5672 GB, free: 7.566 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.5418, allocations: 154.7 kB / 0.5673 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.86e-05/0.5418, allocations: 14.19 kB / 0.5674 GB, free: 7.434 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.542, allocations: 376.5 kB / 0.5677 GB, free: 7.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006851/0.5427, allocations: 334.3 kB / 0.568 GB, free: 6.852 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008277/0.5435, allocations: 0.4907 MB / 0.5685 GB, free: 6.406 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007164/0.5443, allocations: 362.8 kB / 0.5689 GB, free: 6.164 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5443, allocations: 4 kB / 0.5689 GB, free: 6.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002217/0.5465, allocations: 1.069 MB / 0.5699 GB, free: 5.348 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.5465, allocations: 11.94 kB / 0.5699 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.5466, allocations: 6.75 kB / 0.5699 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.5478, allocations: 433.6 kB / 0.5703 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/0.5482, allocations: 120.8 kB / 0.5705 GB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001985/0.5502, allocations: 1.644 MB / 0.5721 GB, free: 3.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007032/0.551, allocations: 114.7 kB / 0.5722 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.075e-05/0.551, allocations: 28.98 kB / 0.5722 GB, free: 3.238 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 9 (Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004034/0.5514, allocations: 232.9 kB / 0.5724 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.5516, allocations: 67.2 kB / 0.5725 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004576/0.5561, allocations: 3.307 MB / 0.5757 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-05/0.5562, allocations: 49.05 kB / 0.5758 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.5562, allocations: 0 / 0.5758 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.5562, allocations: 6.391 kB / 0.5758 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.5581, allocations: 1.564 MB / 0.5773 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.5581, allocations: 0 / 0.5773 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.5585, allocations: 87.25 kB / 0.5774 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/0.5599, allocations: 0.8945 MB / 0.5783 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.56, allocations: 17.61 kB / 0.5783 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002583/0.5626, allocations: 2.308 MB / 0.5805 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5626, allocations: 0 / 0.5805 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003252/0.5659, allocations: 2.308 MB / 0.5828 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005542/0.5664, allocations: 357.3 kB / 0.5831 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.5665, allocations: 15.98 kB / 0.5831 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005226/0.5671, allocations: 67.89 kB / 0.5832 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.5672, allocations: 64.45 kB / 0.5833 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-05/0.5673, allocations: 23.98 kB / 0.5833 GB, free: 9.723 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006632/0.568, allocations: 0.5107 MB / 0.5838 GB, free: 9.215 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.568, allocations: 0 / 0.5838 GB, free: 9.215 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004127/0.5721, allocations: 1.167 MB / 0.5849 GB, free: 8.047 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.009637/0.5817, allocations: 3.829 MB / 0.5887 GB, free: 4.309 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002393/0.5842, allocations: 1.15 MB / 0.5898 GB, free: 3.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.5842, allocations: 4 kB / 0.5898 GB, free: 3.156 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.5857, allocations: 0.8878 MB / 0.5907 GB, free: 2.273 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/0.5877, allocations: 357.9 kB / 0.591 GB, free: 1.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.599, allocations: 6.48 MB / 0.5973 GB, free: 11.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007638/0.5998, allocations: 1.154 MB / 0.5985 GB, free: 10.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000822/0.6006, allocations: 352.2 kB / 0.5988 GB, free: 9.812 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004592/0.6011, allocations: 399.3 kB / 0.5992 GB, free: 9.422 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6011, allocations: 4 kB / 0.5992 GB, free: 9.418 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09536/0.6965, allocations: 60 MB / 0.6578 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/0.6968, allocations: 264.2 kB / 0.658 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.824/5.521, allocations: 0 / 0.658 GB, free: 13.34 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat does not exist to compare? outputFormat=mat