Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestAllProperties.LinearColdWater,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_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater") translateModel(ModelicaTest.Media.TestAllProperties.LinearColdWater,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_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001512/0.001512, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008714/0.0008716, allocations: 86.31 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4261/0.4261, allocations: 43.55 MB / 362.7 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003858, allocations: 15.94 kB / 431.4 MB, free: 5.914 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.13, allocations: 58.84 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.LinearColdWater): time 0.00493/0.135, allocations: 4.046 MB / 494.3 MB, free: 6.914 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003766/0.1388, allocations: 3.725 MB / 498 MB, free: 3.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.629e-05/0.1389, allocations: 0 / 498 MB, free: 3.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.1392, allocations: 35.78 kB / 498 MB, free: 3.145 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.1405, allocations: 0.575 MB / 498.6 MB, free: 2.566 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.1408, allocations: 127.8 kB / 498.7 MB, free: 2.441 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004828/0.1413, allocations: 386.1 kB / 499.1 MB, free: 2.062 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.309e-05/0.1414, allocations: 17.67 kB / 499.1 MB, free: 2.043 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.1416, allocations: 143.4 kB / 499.3 MB, free: 1.902 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.1418, allocations: 147.5 kB / 499.4 MB, free: 1.758 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.1418, allocations: 4 kB / 499.4 MB, free: 1.754 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006949/0.1425, allocations: 327.6 kB / 499.7 MB, free: 1.434 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.235e-05/0.1426, allocations: 43.75 kB / 499.8 MB, free: 1.391 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.1427, allocations: 69.58 kB / 499.9 MB, free: 1.316 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004186/0.1431, allocations: 287.7 kB / 0.4884 GB, free: 1.035 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1431, allocations: 0 / 0.4884 GB, free: 1.035 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1431, allocations: 3.938 kB / 0.4884 GB, free: 1.031 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1431, allocations: 0 / 0.4884 GB, free: 1.031 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.001048/0.1442, allocations: 0.5461 MB / 0.489 GB, free: 448 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1442, allocations: 15.97 kB / 0.489 GB, free: 432 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1444, allocations: 23.72 kB / 0.489 GB, free: 408 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002577/0.1446, allocations: 226.8 kB / 0.4892 GB, free: 140 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2019/0.3466, allocations: 120.7 kB / 0.4893 GB, free: 43.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.3467, allocations: 21.89 kB / 0.4893 GB, free: 43.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005889/0.3473, allocations: 326.5 kB / 0.4897 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3473, allocations: 0.5312 kB / 0.4897 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.3473, allocations: 9.531 kB / 0.4897 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.082e-05/0.3474, allocations: 10.33 kB / 0.4897 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009833/0.3484, allocations: 0.7367 MB / 0.4904 GB, free: 43.67 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.001272/0.3496, allocations: 1.303 MB / 0.4917 GB, free: 42.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.35, allocations: 162.9 kB / 0.4918 GB, free: 42.65 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.3501, allocations: 84 kB / 0.4919 GB, free: 42.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001968/0.3521, allocations: 2.818 MB / 0.4947 GB, free: 39.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.3522, allocations: 33.38 kB / 0.4947 GB, free: 39.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.924e-06/0.3522, allocations: 0 / 0.4947 GB, free: 39.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002857/0.3525, allocations: 115.9 kB / 0.4948 GB, free: 39.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.3525, allocations: 56.5 kB / 0.4948 GB, free: 39.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.3527, allocations: 221.7 kB / 0.4951 GB, free: 39.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.3527, allocations: 26.83 kB / 0.4951 GB, free: 39.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.989e-05/0.3528, allocations: 222.4 kB / 0.4953 GB, free: 39.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.3528, allocations: 43.38 kB / 0.4953 GB, free: 39.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.3529, allocations: 6.812 kB / 0.4953 GB, free: 39.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.011e-05/0.3529, allocations: 335 kB / 0.4957 GB, free: 38.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.67e-05/0.353, allocations: 44.3 kB / 0.4957 GB, free: 38.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.3532, allocations: 341.9 kB / 0.496 GB, free: 38.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.3533, allocations: 99 kB / 0.4961 GB, free: 38.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3534, allocations: 2.938 kB / 0.4961 GB, free: 38.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004985/0.3539, allocations: 382.2 kB / 0.4965 GB, free: 38.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.3539, allocations: 9.688 kB / 0.4965 GB, free: 38.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.3539, allocations: 11.33 kB / 0.4965 GB, free: 38.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.354, allocations: 15.62 kB / 0.4965 GB, free: 38.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.3542, allocations: 103.7 kB / 0.4966 GB, free: 38.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/0.3542, allocations: 20.02 kB / 0.4966 GB, free: 38.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.3545, allocations: 52.27 kB / 0.4967 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.411e-05/0.3545, allocations: 31.69 kB / 0.4967 GB, free: 38.43 MB / 378.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 9.508e-05/0.3546, allocations: 151.4 kB / 0.4969 GB, free: 38.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.142e-05/0.3547, allocations: 23.55 kB / 0.4969 GB, free: 38.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002595/0.3549, allocations: 146.7 kB / 0.497 GB, free: 38.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.3549, allocations: 5.594 kB / 0.497 GB, free: 38.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.355, allocations: 1.062 kB / 0.497 GB, free: 38.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.355, allocations: 0.75 kB / 0.497 GB, free: 38.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.3554, allocations: 414 kB / 0.4974 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3554, allocations: 1.25 kB / 0.4974 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.727e-05/0.3554, allocations: 11.7 kB / 0.4974 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.3554, allocations: 7.172 kB / 0.4975 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.3555, allocations: 4.75 kB / 0.4975 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3555, allocations: 1.031 kB / 0.4975 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3555, allocations: 3.562 kB / 0.4975 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001339/0.3556, allocations: 205.4 kB / 0.4977 GB, free: 37.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.098e-05/0.3557, allocations: 109.3 kB / 0.4978 GB, free: 37.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.3557, allocations: 10.48 kB / 0.4978 GB, free: 37.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.3559, allocations: 6.312 kB / 0.4978 GB, free: 37.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.878e-05/0.3559, allocations: 6.469 kB / 0.4978 GB, free: 37.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.3559, allocations: 12.22 kB / 0.4978 GB, free: 37.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.356, allocations: 154.2 kB / 0.4979 GB, free: 37.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.356, allocations: 0 / 0.4979 GB, free: 37.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004385/0.3565, allocations: 92 kB / 0.498 GB, free: 37.5 MB / 378.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.0001943/0.3567, allocations: 147.6 kB / 0.4982 GB, free: 37.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000253/0.3569, allocations: 171.4 kB / 0.4983 GB, free: 37.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3569, allocations: 0 / 0.4983 GB, free: 37.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.512e-05/0.357, allocations: 25.12 kB / 0.4984 GB, free: 37.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004144/0.3574, allocations: 44.03 kB / 0.4984 GB, free: 37.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009276/0.3583, allocations: 0.6651 MB / 0.4991 GB, free: 37.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.3585, allocations: 0.7232 MB / 0.4998 GB, free: 36.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.3586, allocations: 30.95 kB / 0.4998 GB, free: 36.32 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3586, allocations: 1.656 kB / 0.4998 GB, free: 36.32 MB / 378.7 MB Notification: Performance of Templates: time 0.004747/0.3633, allocations: 3.198 MB / 0.5029 GB, free: 35.99 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestAllProperties/LinearColdWater/LinearColdWater.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches