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.001099/0.001099, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001104/0.001103, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1958/0.1958, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 58.52 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.09847, allocations: 60.83 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.03447/0.133, allocations: 36.32 MB / 0.4938 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2076/0.3406, allocations: 16.76 MB / 0.5102 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005812/0.3412, allocations: 17.56 kB / 0.5102 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009727/0.3422, allocations: 427 kB / 0.5106 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01006/0.3523, allocations: 4.013 MB / 0.5145 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007793/0.3601, allocations: 3.141 MB / 0.5176 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00212/0.3622, allocations: 1.808 MB / 0.5194 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008296/0.3631, allocations: 0.5417 MB / 0.5199 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001505/0.3646, allocations: 0.7498 MB / 0.5206 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007833/0.3654, allocations: 0.5771 MB / 0.5212 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.3656, allocations: 71.94 kB / 0.5213 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01445/0.38, allocations: 7.292 MB / 0.5284 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003859/0.3804, allocations: 248.6 kB / 0.5286 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006167/0.3811, allocations: 426.1 kB / 0.529 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009678/0.3907, allocations: 5.038 MB / 0.534 GB, free: 6.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3908, allocations: 3.844 kB / 0.534 GB, free: 6.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3908, allocations: 0 / 0.534 GB, free: 6.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.3908, allocations: 0 / 0.534 GB, free: 6.137 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.003814/0.3946, allocations: 1.607 MB / 0.5355 GB, free: 5.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.3947, allocations: 10.91 kB / 0.5355 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.3948, allocations: 103.4 kB / 0.5356 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002737/0.3975, allocations: 373.6 kB / 0.536 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006521/0.3982, allocations: 0.5247 MB / 0.5365 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-05/0.3983, allocations: 116.8 kB / 0.5366 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.894e-05/0.3984, allocations: 56.78 kB / 0.5367 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002291/0.4007, allocations: 1.134 MB / 0.5378 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.4007, allocations: 0 / 0.5378 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.646e-05/0.4008, allocations: 31.11 kB / 0.5378 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.932e-05/0.4009, allocations: 37.2 kB / 0.5378 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002388/0.4033, allocations: 1.051 MB / 0.5389 GB, free: 2.992 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.005735/0.409, allocations: 5.024 MB / 0.5438 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002656/0.4117, allocations: 0.915 MB / 0.5447 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000741/0.4124, allocations: 377.9 kB / 0.545 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04871/0.4612, allocations: 24.23 MB / 0.5687 GB, free: 2.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.104e-05/0.4612, allocations: 43.69 kB / 0.5687 GB, free: 2.254 MB / 414.1 MB Notification: Performance of pre-optimization done (n=47): time 2.614e-06/0.4613, allocations: 0 / 0.5687 GB, free: 2.254 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.007008/0.4683, allocations: 1.969 MB / 0.5707 GB, free: 244 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.4684, allocations: 107.2 kB / 0.5708 GB, free: 112 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000807/0.4692, allocations: 0.5964 MB / 0.5713 GB, free: 15.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.352e-05/0.4693, allocations: 37.64 kB / 0.5714 GB, free: 15.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.4695, allocations: 326.9 kB / 0.5717 GB, free: 15.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.4697, allocations: 153.7 kB / 0.5718 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.4699, allocations: 134.2 kB / 0.572 GB, free: 14.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.4701, allocations: 370.8 kB / 0.5723 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.4708, allocations: 321.1 kB / 0.5726 GB, free: 14.17 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008144/0.4716, allocations: 489.6 kB / 0.5731 GB, free: 13.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.4731, allocations: 0.7419 MB / 0.5738 GB, free: 12.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.4731, allocations: 0 / 0.5738 GB, free: 12.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002341/0.4754, allocations: 1.051 MB / 0.5748 GB, free: 11.76 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.4755, allocations: 11.94 kB / 0.5749 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.4755, allocations: 4.5 kB / 0.5749 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.4767, allocations: 425.8 kB / 0.5753 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.4771, allocations: 119.8 kB / 0.5754 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.479, allocations: 1.632 MB / 0.577 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006559/0.4797, allocations: 95.3 kB / 0.5771 GB, free: 9.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.579e-05/0.4797, allocations: 24 kB / 0.5771 GB, free: 9.406 MB / 430.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.regularFlow[1],Volume.regularFlow[2],Sink.medium.phase,FlowSource.medium.phase,Volume.inFlow[2],Volume.inFlow[1],Volume.heatTransfer.states[1].phase,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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003515/0.4801, allocations: 233.6 kB / 0.5773 GB, free: 9.168 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.4803, allocations: 59.25 kB / 0.5774 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00452/0.4848, allocations: 3.265 MB / 0.5806 GB, free: 5.844 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.609e-05/0.4849, allocations: 39.94 kB / 0.5806 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.4849, allocations: 4 kB / 0.5806 GB, free: 5.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.4849, allocations: 7.984 kB / 0.5806 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.4867, allocations: 1.561 MB / 0.5821 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.4867, allocations: 0 / 0.5821 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003436/0.487, allocations: 87.81 kB / 0.5822 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.4885, allocations: 0.8661 MB / 0.5831 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.057e-05/0.4885, allocations: 19.98 kB / 0.5831 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/0.4911, allocations: 2.283 MB / 0.5853 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.4911, allocations: 3.938 kB / 0.5853 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.4945, allocations: 2.277 MB / 0.5875 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000484/0.495, allocations: 291 kB / 0.5878 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.4952, allocations: 31.72 kB / 0.5878 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.4958, allocations: 43.95 kB / 0.5879 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.4959, allocations: 64.47 kB / 0.5879 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-05/0.496, allocations: 20.12 kB / 0.588 GB, free: 14.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006359/0.4966, allocations: 0.5146 MB / 0.5885 GB, free: 13.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4966, allocations: 0 / 0.5885 GB, free: 13.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003195/0.4998, allocations: 1.163 MB / 0.5896 GB, free: 12.44 MB / 446.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009089/0.5089, allocations: 3.811 MB / 0.5933 GB, free: 8.703 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003285/0.5123, allocations: 1.207 MB / 0.5945 GB, free: 7.504 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5123, allocations: 256 / 0.5945 GB, free: 7.504 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.514, allocations: 0.8809 MB / 0.5954 GB, free: 6.625 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.5162, allocations: 382.6 kB / 0.5957 GB, free: 6.262 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01616/0.5324, allocations: 8.647 MB / 0.6042 GB, free: 13.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007061/0.5331, allocations: 1.158 MB / 0.6053 GB, free: 12.22 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007378/0.5339, allocations: 358.6 kB / 0.6056 GB, free: 11.87 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.5343, allocations: 403.3 kB / 0.606 GB, free: 11.48 MB / 462.1 MB Notification: Performance of SimCode: time 7.42e-07/0.5343, allocations: 0 / 0.606 GB, free: 11.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/0.6372, allocations: 61.12 MB / 0.6657 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/14.8, allocations: 10.31 kB / 0.6657 GB, free: 14.58 MB / 0.5137 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestVolume/TestVolume.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches