Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.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.TestAllProperties.LinearWater_pT_Ambient,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eps_h_is|eta|lambda|Pr|p|T|d|h|u|s|g|f|cp|cp2|cv|cv2|h_is|a|beta|beta2|kappa|kappa2|ddpT|ddTp|dddX.1.|MM|h2|d2|err_T|err_d|err_u|s_is|err_h_is|eps",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient") translateModel(ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eps_h_is|eta|lambda|Pr|p|T|d|h|u|s|g|f|cp|cp2|cv|cv2|h_is|a|beta|beta2|kappa|kappa2|ddpT|ddTp|dddX.1.|MM|h2|d2|err_T|err_d|err_u|s_is|err_h_is|eps",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009763/0.0009763, allocations: 202.3 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 243.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006674/0.0006674, allocations: 88.95 kB / 295.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1984/0.1984, allocations: 44.83 MB / 392 MB, free: 9.363 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002407, allocations: 4 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08843, allocations: 62.95 MB / 0.5153 GB, free: 2.801 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient): time 0.1947/0.2832, allocations: 24.87 MB / 0.5396 GB, free: 12.8 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003006/0.2862, allocations: 2.742 MB / 0.5423 GB, free: 10.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.2864, allocations: 5.344 kB / 0.5423 GB, free: 10.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.2867, allocations: 34.27 kB / 0.5423 GB, free: 10.81 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001764/0.2885, allocations: 0.5719 MB / 0.5429 GB, free: 10.48 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.2888, allocations: 122.7 kB / 0.543 GB, free: 10.42 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005961/0.2894, allocations: 389.3 kB / 0.5434 GB, free: 10.25 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.766e-05/0.2895, allocations: 18.72 kB / 0.5434 GB, free: 10.25 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03903/0.3285, allocations: 22.46 MB / 0.5653 GB, free: 10.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.329, allocations: 151.4 kB / 0.5655 GB, free: 10.53 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/0.329, allocations: 4 kB / 0.5655 GB, free: 10.53 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008448/0.3375, allocations: 5.595 MB / 0.5709 GB, free: 4.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.81e-05/0.3376, allocations: 43.81 kB / 0.571 GB, free: 4.887 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.3377, allocations: 61.64 kB / 0.571 GB, free: 4.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006547/0.3384, allocations: 299.3 kB / 0.5713 GB, free: 4.527 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3384, allocations: 0 / 0.5713 GB, free: 4.527 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3384, allocations: 0 / 0.5713 GB, free: 4.527 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.3384, allocations: 0 / 0.5713 GB, free: 4.527 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001038/0.3395, allocations: 0.546 MB / 0.5718 GB, free: 3.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3395, allocations: 8.031 kB / 0.5719 GB, free: 3.922 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.3397, allocations: 27.8 kB / 0.5719 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002588/0.3399, allocations: 222.7 kB / 0.5721 GB, free: 3.637 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.3401, allocations: 135.3 kB / 0.5722 GB, free: 3.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.3401, allocations: 31.94 kB / 0.5723 GB, free: 3.449 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.3406, allocations: 319.6 kB / 0.5726 GB, free: 3.109 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3406, allocations: 0 / 0.5726 GB, free: 3.109 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.887e-05/0.3406, allocations: 12 kB / 0.5726 GB, free: 3.098 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.3407, allocations: 12 kB / 0.5726 GB, free: 3.086 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007077/0.3414, allocations: 0.7351 MB / 0.5733 GB, free: 2.352 MB / 378.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.001279/0.3427, allocations: 1.3 MB / 0.5746 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003068/0.343, allocations: 151.8 kB / 0.5747 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.3431, allocations: 89.47 kB / 0.5748 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002187/0.3453, allocations: 2.813 MB / 0.5775 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.3453, allocations: 30.56 kB / 0.5776 GB, free: 13.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.3453, allocations: 0 / 0.5776 GB, free: 13.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002563/0.3456, allocations: 113.4 kB / 0.5777 GB, free: 13.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.3457, allocations: 55.41 kB / 0.5777 GB, free: 13.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.3458, allocations: 228.5 kB / 0.578 GB, free: 12.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.3459, allocations: 25.7 kB / 0.578 GB, free: 12.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.346, allocations: 218.6 kB / 0.5782 GB, free: 12.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.346, allocations: 43.45 kB / 0.5782 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.346, allocations: 4 kB / 0.5782 GB, free: 12.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3461, allocations: 338.7 kB / 0.5786 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.428e-05/0.3462, allocations: 48.78 kB / 0.5786 GB, free: 12.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.3465, allocations: 343.2 kB / 0.5789 GB, free: 11.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.3466, allocations: 99.84 kB / 0.579 GB, free: 11.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3466, allocations: 4 kB / 0.579 GB, free: 11.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005168/0.3471, allocations: 381.1 kB / 0.5794 GB, free: 11.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3472, allocations: 8 kB / 0.5794 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.3472, allocations: 12 kB / 0.5794 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.753e-05/0.3472, allocations: 16.78 kB / 0.5794 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.3475, allocations: 99.77 kB / 0.5795 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-05/0.3475, allocations: 23.92 kB / 0.5795 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002615/0.3478, allocations: 55.38 kB / 0.5796 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.3478, allocations: 32 kB / 0.5796 GB, free: 11 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.3479, allocations: 149.6 kB / 0.5798 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.348, allocations: 19.81 kB / 0.5798 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002549/0.3482, allocations: 144.8 kB / 0.5799 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.3483, allocations: 4 kB / 0.5799 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3483, allocations: 1.562 kB / 0.5799 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3483, allocations: 0 / 0.5799 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000405/0.3487, allocations: 416.8 kB / 0.5803 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3487, allocations: 3.984 kB / 0.5803 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.541e-05/0.3488, allocations: 12 kB / 0.5803 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3488, allocations: 0 / 0.5803 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.3488, allocations: 4 kB / 0.5804 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3488, allocations: 0.625 kB / 0.5804 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3488, allocations: 3.953 kB / 0.5804 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001609/0.349, allocations: 205.9 kB / 0.5806 GB, free: 9.945 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.547e-05/0.3491, allocations: 104.9 kB / 0.5807 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.3491, allocations: 8.812 kB / 0.5807 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.3492, allocations: 7.984 kB / 0.5807 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.514e-05/0.3493, allocations: 15.89 kB / 0.5807 GB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.228e-06/0.3493, allocations: 4.188 kB / 0.5807 GB, free: 9.789 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001108/0.3494, allocations: 152.5 kB / 0.5808 GB, free: 9.641 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3494, allocations: 3.938 kB / 0.5808 GB, free: 9.637 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004531/0.3499, allocations: 99.83 kB / 0.5809 GB, free: 9.539 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * 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 (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002201/0.3501, allocations: 163.2 kB / 0.5811 GB, free: 9.371 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.3504, allocations: 168.6 kB / 0.5812 GB, free: 9.207 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3504, allocations: 0 / 0.5812 GB, free: 9.207 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.55e-05/0.3504, allocations: 21.75 kB / 0.5813 GB, free: 9.188 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.3508, allocations: 45.09 kB / 0.5813 GB, free: 9.141 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009657/0.3518, allocations: 0.652 MB / 0.5819 GB, free: 8.438 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.3521, allocations: 0.7209 MB / 0.5827 GB, free: 7.691 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.43e-05/0.3522, allocations: 35.42 kB / 0.5827 GB, free: 7.66 MB / 394.7 MB Notification: Performance of SimCode: time 2.154e-06/0.3522, allocations: 0 / 0.5827 GB, free: 7.66 MB / 394.7 MB Notification: Performance of Templates: time 0.005359/0.3575, allocations: 3.236 MB / 0.5858 GB, free: 4.445 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestAllProperties/LinearWater_pT_Ambient/LinearWater_pT_Ambient.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches