Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009504/0.0009504, allocations: 202.3 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.5 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008259/0.000826, allocations: 102.1 kB / 295.1 MB, free: 4.406 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1891/0.1891, allocations: 44.84 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.0002469, allocations: 11.98 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09254, allocations: 62.96 MB / 0.5153 GB, free: 5.113 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.2152/0.3077, allocations: 41.28 MB / 0.5556 GB, free: 11.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004715/0.3125, allocations: 4.225 MB / 0.5598 GB, free: 11.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005653/0.3131, allocations: 26.09 kB / 0.5598 GB, free: 11.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006629/0.3137, allocations: 256.2 kB / 0.56 GB, free: 11.39 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.001652/0.3154, allocations: 0.7903 MB / 0.5608 GB, free: 11.39 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.3172, allocations: 0.6932 MB / 0.5615 GB, free: 11.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002204/0.3195, allocations: 2.202 MB / 0.5636 GB, free: 11.36 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005117/0.32, allocations: 378.9 kB / 0.564 GB, free: 11.33 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.08603/0.406, allocations: 73.54 MB / 0.6358 GB, free: 5.176 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01663/0.4227, allocations: 13.72 MB / 0.6492 GB, free: 7.566 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001746/0.4229, allocations: 32 kB / 0.6493 GB, free: 7.535 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02278/0.4457, allocations: 18.73 MB / 0.6675 GB, free: 4.883 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004499/0.4462, allocations: 237.9 kB / 0.6678 GB, free: 4.656 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.4465, allocations: 165.3 kB / 0.6679 GB, free: 4.488 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009335/0.4474, allocations: 0.7642 MB / 0.6687 GB, free: 3.762 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.4474, allocations: 0 / 0.6687 GB, free: 3.762 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4475, allocations: 0 / 0.6687 GB, free: 3.762 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.4475, allocations: 0 / 0.6687 GB, free: 3.762 MB / 458.7 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.001779/0.4493, allocations: 0.9255 MB / 0.6696 GB, free: 2.793 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.4493, allocations: 8.031 kB / 0.6696 GB, free: 2.785 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.4496, allocations: 92.42 kB / 0.6697 GB, free: 2.695 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006525/0.4502, allocations: 499.3 kB / 0.6701 GB, free: 2.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.796e-05/0.4504, allocations: 100.4 kB / 0.6702 GB, free: 2.066 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.77e-05/0.4504, allocations: 47.2 kB / 0.6703 GB, free: 2.023 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.4516, allocations: 0.819 MB / 0.6711 GB, free: 1.137 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.4516, allocations: 3.938 kB / 0.6711 GB, free: 1.133 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.427e-05/0.4517, allocations: 23.12 kB / 0.6711 GB, free: 1.113 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.968e-05/0.4518, allocations: 36.98 kB / 0.6711 GB, free: 1.078 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009535/0.4527, allocations: 0.6478 MB / 0.6718 GB, free: 440 kB / 458.7 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.00422/0.4569, allocations: 4.224 MB / 0.6759 GB, free: 11.95 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007867/0.4577, allocations: 414 kB / 0.6763 GB, free: 11.54 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.4581, allocations: 201.4 kB / 0.6765 GB, free: 11.34 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004416/0.4585, allocations: 0.5041 MB / 0.677 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.4585, allocations: 44.41 kB / 0.677 GB, free: 10.68 MB / 474.7 MB Notification: Performance of pre-optimization done (n=40): time 1.853e-06/0.4586, allocations: 0 / 0.677 GB, free: 10.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=45): time 0.002909/0.4615, allocations: 1.521 MB / 0.6785 GB, free: 9.105 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.4616, allocations: 136.5 kB / 0.6786 GB, free: 8.941 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005782/0.4621, allocations: 0.5615 MB / 0.6792 GB, free: 8.371 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.4622, allocations: 37.7 kB / 0.6792 GB, free: 8.328 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.4624, allocations: 358.6 kB / 0.6796 GB, free: 7.977 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.4626, allocations: 160.7 kB / 0.6797 GB, free: 7.824 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.4626, allocations: 16 kB / 0.6797 GB, free: 7.809 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.4627, allocations: 378.8 kB / 0.6801 GB, free: 7.43 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003629/0.4631, allocations: 221.8 kB / 0.6803 GB, free: 7.211 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.4636, allocations: 0.5123 MB / 0.6808 GB, free: 6.562 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004577/0.4641, allocations: 324.6 kB / 0.6811 GB, free: 6.242 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4641, allocations: 1.422 kB / 0.6811 GB, free: 6.242 MB / 474.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001747/0.4659, allocations: 0.9723 MB / 0.6821 GB, free: 5.262 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4659, allocations: 14.03 kB / 0.6821 GB, free: 5.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.4659, allocations: 8 kB / 0.6821 GB, free: 5.242 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.467, allocations: 267.6 kB / 0.6823 GB, free: 4.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.4674, allocations: 131.8 kB / 0.6825 GB, free: 4.852 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008542/0.4683, allocations: 0.8645 MB / 0.6833 GB, free: 3.961 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004586/0.4687, allocations: 48.03 kB / 0.6834 GB, free: 3.914 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.299e-05/0.4688, allocations: 32 kB / 0.6834 GB, free: 3.883 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (73): * Single equations (assignments): 72 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002787/0.4691, allocations: 249.5 kB / 0.6836 GB, free: 3.629 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.273e-05/0.4692, allocations: 67.16 kB / 0.6837 GB, free: 3.562 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.4704, allocations: 0.7161 MB / 0.6844 GB, free: 2.844 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4704, allocations: 4.812 kB / 0.6844 GB, free: 2.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4704, allocations: 0.9844 kB / 0.6844 GB, free: 2.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4705, allocations: 3.984 kB / 0.6844 GB, free: 2.836 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.4724, allocations: 1.394 MB / 0.6858 GB, free: 1.371 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.4724, allocations: 4.219 kB / 0.6858 GB, free: 1.367 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009304/0.4733, allocations: 196.6 kB / 0.686 GB, free: 1.176 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002759/0.4736, allocations: 60.75 kB / 0.686 GB, free: 1.113 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.4737, allocations: 25.41 kB / 0.686 GB, free: 1.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.4759, allocations: 2.786 MB / 0.6888 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4759, allocations: 0 / 0.6888 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.4773, allocations: 0.9957 MB / 0.6897 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002358/0.4776, allocations: 200.2 kB / 0.6899 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.324e-05/0.4777, allocations: 12 kB / 0.6899 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.4781, allocations: 27.98 kB / 0.69 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.4781, allocations: 47.89 kB / 0.69 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.4782, allocations: 16 kB / 0.69 GB, free: 12.69 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004333/0.4786, allocations: 394.8 kB / 0.6904 GB, free: 12.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4786, allocations: 0 / 0.6904 GB, free: 12.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0006881/0.4793, allocations: 207.9 kB / 0.6906 GB, free: 12.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004141/0.4797, allocations: 237.2 kB / 0.6908 GB, free: 11.88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.4808, allocations: 0.6005 MB / 0.6914 GB, free: 11.28 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4808, allocations: 0 / 0.6914 GB, free: 11.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.4818, allocations: 485.7 kB / 0.6919 GB, free: 10.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.4833, allocations: 332.1 kB / 0.6922 GB, free: 10.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.4854, allocations: 1.695 MB / 0.6938 GB, free: 8.723 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.4859, allocations: 0.9348 MB / 0.6948 GB, free: 7.762 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.4861, allocations: 63.44 kB / 0.6948 GB, free: 7.699 MB / 490.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4861, allocations: 2.734 kB / 0.6948 GB, free: 7.699 MB / 490.7 MB Notification: Performance of Templates: time 0.01728/0.5034, allocations: 15.17 MB / 0.7096 GB, free: 8.621 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearWater_pT/LinearWater_pT.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches