Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.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.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",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.001118/0.001118, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001105, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.448/1.448, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2413/0.2413, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.00146, allocations: 71.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.3992, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.01817/0.4175, allocations: 16.42 MB / 0.5345 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00806/0.4256, allocations: 5.458 MB / 0.5398 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007773/0.4264, allocations: 19.72 kB / 0.5398 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009242/0.4273, allocations: 315.8 kB / 0.5401 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002125/0.4295, allocations: 0.8292 MB / 0.5409 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003344/0.4328, allocations: 1 MB / 0.5419 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002593/0.4354, allocations: 1.786 MB / 0.5436 GB, free: 20 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007504/0.4362, allocations: 461.4 kB / 0.5441 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001673/0.4379, allocations: 0.7571 MB / 0.5448 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009456/0.4388, allocations: 0.6064 MB / 0.5454 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.439, allocations: 59.47 kB / 0.5455 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008896/0.4399, allocations: 344.4 kB / 0.5458 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002801/0.4402, allocations: 267.9 kB / 0.5461 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000421/0.4406, allocations: 394.5 kB / 0.5464 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001533/0.4421, allocations: 1.115 MB / 0.5475 GB, free: 13.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.4421, allocations: 0 / 0.5475 GB, free: 13.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.4422, allocations: 1.406 kB / 0.5475 GB, free: 13.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.4422, allocations: 3.938 kB / 0.5475 GB, free: 13.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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002169/0.4443, allocations: 1.044 MB / 0.5486 GB, free: 12.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4444, allocations: 8.688 kB / 0.5486 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.4445, allocations: 95.89 kB / 0.5487 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.4449, allocations: 88.64 kB / 0.5487 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009552/0.4459, allocations: 0.5355 MB / 0.5493 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.446, allocations: 104.7 kB / 0.5494 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.28e-05/0.4461, allocations: 55.91 kB / 0.5494 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.4473, allocations: 0.8336 MB / 0.5502 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.4474, allocations: 11.94 kB / 0.5502 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.4474, allocations: 20 kB / 0.5503 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.564e-05/0.4475, allocations: 40.98 kB / 0.5503 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.4486, allocations: 0.6399 MB / 0.5509 GB, free: 10.6 MB / 414.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.00466/0.4532, allocations: 4.34 MB / 0.5552 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006264/0.4539, allocations: 347.7 kB / 0.5555 GB, free: 5.602 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/0.4542, allocations: 173.3 kB / 0.5557 GB, free: 5.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001924/0.4561, allocations: 1.694 MB / 0.5573 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.4561, allocations: 46.5 kB / 0.5574 GB, free: 3.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.773e-06/0.4561, allocations: 0 / 0.5574 GB, free: 3.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=37): time 0.003468/0.4596, allocations: 1.405 MB / 0.5587 GB, free: 1.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/0.4597, allocations: 132.5 kB / 0.5589 GB, free: 1.809 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007648/0.4605, allocations: 0.6289 MB / 0.5595 GB, free: 1.172 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.4605, allocations: 33.7 kB / 0.5595 GB, free: 1.133 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002764/0.4608, allocations: 398.3 kB / 0.5599 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.4609, allocations: 134.2 kB / 0.56 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.4611, allocations: 142.5 kB / 0.5601 GB, free: 472 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.4613, allocations: 386.7 kB / 0.5605 GB, free: 76 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.4616, allocations: 185.9 kB / 0.5607 GB, free: 15.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005628/0.4622, allocations: 0.552 MB / 0.5612 GB, free: 15.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008776/0.4631, allocations: 0.7766 MB / 0.562 GB, free: 14.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.4631, allocations: 7.938 kB / 0.562 GB, free: 14.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001311/0.4644, allocations: 0.8372 MB / 0.5628 GB, free: 13.37 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.4644, allocations: 11.94 kB / 0.5628 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.4645, allocations: 12 kB / 0.5628 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004279/0.4649, allocations: 100.9 kB / 0.5629 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006289/0.4655, allocations: 175.7 kB / 0.5631 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00061/0.4662, allocations: 0.6696 MB / 0.5638 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.4667, allocations: 31.98 kB / 0.5638 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.079e-05/0.4668, allocations: 39.98 kB / 0.5638 GB, free: 12.31 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003645/0.4671, allocations: 257.4 kB / 0.5641 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.4673, allocations: 71.14 kB / 0.5641 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000831/0.4681, allocations: 0.5064 MB / 0.5646 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.4681, allocations: 4 kB / 0.5646 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4681, allocations: 0 / 0.5646 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4681, allocations: 3.984 kB / 0.5646 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.4699, allocations: 1.218 MB / 0.5658 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4699, allocations: 4.094 kB / 0.5658 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003089/0.4702, allocations: 75.89 kB / 0.5659 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001631/0.4704, allocations: 36.84 kB / 0.5659 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.4704, allocations: 12 kB / 0.5659 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003414/0.4708, allocations: 0.5678 MB / 0.5665 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4708, allocations: 4 kB / 0.5665 GB, free: 9.406 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000921/0.4717, allocations: 0.7337 MB / 0.5672 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.472, allocations: 192.2 kB / 0.5674 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.209e-05/0.4721, allocations: 11.98 kB / 0.5674 GB, free: 8.398 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.4725, allocations: 16.06 kB / 0.5674 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.344e-05/0.4725, allocations: 31.91 kB / 0.5675 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.4726, allocations: 19.98 kB / 0.5675 GB, free: 8.332 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005264/0.4731, allocations: 475 kB / 0.5679 GB, free: 7.875 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4731, allocations: 0 / 0.5679 GB, free: 7.875 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007985/0.4739, allocations: 207.9 kB / 0.5681 GB, free: 7.672 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (volume.medium.T) * 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 (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001648/0.4756, allocations: 1.412 MB / 0.5695 GB, free: 6.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009714/0.4766, allocations: 0.4982 MB / 0.57 GB, free: 5.707 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.4766, allocations: 0 / 0.57 GB, free: 5.707 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.4769, allocations: 188.6 kB / 0.5702 GB, free: 5.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.4786, allocations: 360.7 kB / 0.5705 GB, free: 5.168 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007935/0.4865, allocations: 6.292 MB / 0.5767 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.487, allocations: 0.9378 MB / 0.5776 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006807/0.4877, allocations: 215.9 kB / 0.5778 GB, free: 13.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003236/0.488, allocations: 231.3 kB / 0.578 GB, free: 12.98 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4881, allocations: 7.938 kB / 0.578 GB, free: 12.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0446/0.5327, allocations: 20.9 MB / 0.5984 GB, free: 8.457 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.56, allocations: 3.562 kB / 0.5984 GB, free: 8.457 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/ConstantPropertyLiquidWater/ConstantPropertyLiquidWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches