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.0009659/0.0009658, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006078/0.0006078, allocations: 94.97 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2863/0.2863, allocations: 44.83 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.0002501, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2813, allocations: 62.95 MB / 0.5159 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient): time 0.02187/0.3032, allocations: 24.9 MB / 0.5402 GB, free: 19.82 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.3055, allocations: 2.734 MB / 0.5429 GB, free: 17.85 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.3057, allocations: 3.938 kB / 0.5429 GB, free: 17.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002817/0.306, allocations: 44.72 kB / 0.5429 GB, free: 17.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.3076, allocations: 0.6209 MB / 0.5435 GB, free: 17.48 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.3079, allocations: 123.8 kB / 0.5436 GB, free: 17.42 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004595/0.3084, allocations: 393.5 kB / 0.544 GB, free: 17.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.298e-05/0.3084, allocations: 10 kB / 0.544 GB, free: 17.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04034/0.3488, allocations: 22.46 MB / 0.5659 GB, free: 6.148 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000327/0.3491, allocations: 147.5 kB / 0.5661 GB, free: 6.004 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.3492, allocations: 4 kB / 0.5661 GB, free: 6 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00913/0.3583, allocations: 5.707 MB / 0.5717 GB, free: 296 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.332e-05/0.3584, allocations: 43.81 kB / 0.5717 GB, free: 252 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.3586, allocations: 129.2 kB / 0.5718 GB, free: 116 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006595/0.3593, allocations: 315.3 kB / 0.5721 GB, free: 15.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3593, allocations: 0 / 0.5721 GB, free: 15.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3593, allocations: 4 kB / 0.5721 GB, free: 15.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.3593, allocations: 0 / 0.5721 GB, free: 15.8 MB / 394.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.001008/0.3603, allocations: 0.5501 MB / 0.5727 GB, free: 15.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3604, allocations: 8.031 kB / 0.5727 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.3605, allocations: 28.75 kB / 0.5727 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.3608, allocations: 228 kB / 0.5729 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.3609, allocations: 123.9 kB / 0.573 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.022e-05/0.3609, allocations: 28.12 kB / 0.5731 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.3614, allocations: 323.6 kB / 0.5734 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3614, allocations: 0 / 0.5734 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.3614, allocations: 15.98 kB / 0.5734 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.208e-05/0.3615, allocations: 8 kB / 0.5734 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007371/0.3622, allocations: 0.7273 MB / 0.5741 GB, free: 13.64 MB / 394.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.001251/0.3635, allocations: 1.304 MB / 0.5754 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.3638, allocations: 171.7 kB / 0.5756 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.3639, allocations: 81.48 kB / 0.5756 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002152/0.3661, allocations: 2.806 MB / 0.5784 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.3661, allocations: 34.56 kB / 0.5784 GB, free: 8.574 MB / 394.7 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.3661, allocations: 3.938 kB / 0.5784 GB, free: 8.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002501/0.3664, allocations: 125.6 kB / 0.5785 GB, free: 8.441 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.3664, allocations: 51.41 kB / 0.5786 GB, free: 8.379 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.3666, allocations: 222 kB / 0.5788 GB, free: 8.156 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.3667, allocations: 29.7 kB / 0.5788 GB, free: 8.121 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.3668, allocations: 214.6 kB / 0.579 GB, free: 7.906 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.3668, allocations: 39.45 kB / 0.5791 GB, free: 7.867 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.3668, allocations: 8 kB / 0.5791 GB, free: 7.859 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.3669, allocations: 326.8 kB / 0.5794 GB, free: 7.531 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.734e-05/0.367, allocations: 52.83 kB / 0.5794 GB, free: 7.48 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.3672, allocations: 339.2 kB / 0.5797 GB, free: 7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.3676, allocations: 440.6 kB / 0.5802 GB, free: 6.422 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.3676, allocations: 0 / 0.5802 GB, free: 6.422 MB / 394.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005125/0.3682, allocations: 389.1 kB / 0.5805 GB, free: 6.035 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3682, allocations: 8 kB / 0.5805 GB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3682, allocations: 12 kB / 0.5806 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.3682, allocations: 23.92 kB / 0.5806 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.3685, allocations: 91.84 kB / 0.5807 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/0.3685, allocations: 20.52 kB / 0.5807 GB, free: 5.883 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.3687, allocations: 63.31 kB / 0.5808 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.3688, allocations: 32 kB / 0.5808 GB, free: 5.789 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.0001148/0.3689, allocations: 157.6 kB / 0.5809 GB, free: 5.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.188e-05/0.3689, allocations: 19.81 kB / 0.5809 GB, free: 5.605 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002595/0.3692, allocations: 152.5 kB / 0.5811 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.3692, allocations: 4 kB / 0.5811 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3692, allocations: 3.938 kB / 0.5811 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3692, allocations: 0 / 0.5811 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004053/0.3696, allocations: 412.8 kB / 0.5815 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3696, allocations: 0 / 0.5815 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.681e-05/0.3697, allocations: 12 kB / 0.5815 GB, free: 4.961 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3697, allocations: 0 / 0.5815 GB, free: 4.961 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.3697, allocations: 4 kB / 0.5815 GB, free: 4.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3697, allocations: 3.938 kB / 0.5815 GB, free: 4.953 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3698, allocations: 0 / 0.5815 GB, free: 4.953 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.37, allocations: 213.8 kB / 0.5817 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.03e-05/0.3701, allocations: 100.9 kB / 0.5818 GB, free: 4.602 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.3701, allocations: 7.984 kB / 0.5818 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.3703, allocations: 7.984 kB / 0.5818 GB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.16e-05/0.3703, allocations: 4 kB / 0.5818 GB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.3703, allocations: 7.984 kB / 0.5818 GB, free: 4.574 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000113/0.3704, allocations: 156.5 kB / 0.582 GB, free: 4.422 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3704, allocations: 0 / 0.582 GB, free: 4.422 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004639/0.3709, allocations: 95.94 kB / 0.5821 GB, free: 4.328 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.0002779/0.3712, allocations: 159.1 kB / 0.5822 GB, free: 4.164 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002561/0.3714, allocations: 176.6 kB / 0.5824 GB, free: 3.992 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3715, allocations: 0 / 0.5824 GB, free: 3.992 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.503e-05/0.3715, allocations: 21.81 kB / 0.5824 GB, free: 3.973 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.3719, allocations: 51.52 kB / 0.5825 GB, free: 3.922 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008779/0.3728, allocations: 0.6551 MB / 0.5831 GB, free: 3.215 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.373, allocations: 0.7287 MB / 0.5838 GB, free: 2.461 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.3731, allocations: 35.42 kB / 0.5839 GB, free: 2.43 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3731, allocations: 0 / 0.5839 GB, free: 2.43 MB / 394.7 MB Notification: Performance of Templates: time 0.004938/0.378, allocations: 3.257 MB / 0.587 GB, free: 15.17 MB / 410.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