Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.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.TestOnly.R134a_setState_pTX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h|rho|mu|cp|k",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX") translateModel(ModelicaTest.Media.TestOnly.R134a_setState_pTX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h|rho|mu|cp|k",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 201.6 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.232/1.232, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007095/0.0007095, allocations: 104.9 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1704/0.1704, allocations: 44.83 MB / 392 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002606, allocations: 7.984 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09916, allocations: 62.96 MB / 0.5153 GB, free: 2.785 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_setState_pTX): time 0.2068/0.306, allocations: 7.788 MB / 0.5229 GB, free: 9.152 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.009432/0.3154, allocations: 10.2 MB / 0.5329 GB, free: 2.582 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.366e-05/0.3155, allocations: 0 / 0.5329 GB, free: 2.582 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.3157, allocations: 34.38 kB / 0.5329 GB, free: 2.562 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004818/0.3205, allocations: 1.367 MB / 0.5343 GB, free: 1.906 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.509e-06/0.3206, allocations: 0 / 0.5343 GB, free: 1.906 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.9e-05/0.3206, allocations: 39.23 kB / 0.5343 GB, free: 1.887 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.3207, allocations: 6.875 kB / 0.5343 GB, free: 1.883 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.3208, allocations: 27.98 kB / 0.5343 GB, free: 1.871 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.478e-05/0.3209, allocations: 16.31 kB / 0.5343 GB, free: 1.863 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-06/0.3209, allocations: 1.75 kB / 0.5343 GB, free: 1.863 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02771/0.3486, allocations: 19.59 MB / 0.5535 GB, free: 6.738 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.846e-05/0.3487, allocations: 0 / 0.5535 GB, free: 6.738 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.158e-05/0.3487, allocations: 33.7 kB / 0.5535 GB, free: 6.699 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01314/0.3619, allocations: 4.286 MB / 0.5577 GB, free: 2.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3619, allocations: 0 / 0.5577 GB, free: 2.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.3619, allocations: 4 kB / 0.5577 GB, free: 2.406 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.362, allocations: 3.938 kB / 0.5577 GB, free: 2.402 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.002363/0.3643, allocations: 0.546 MB / 0.5582 GB, free: 1.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3644, allocations: 12.03 kB / 0.5582 GB, free: 1.797 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.3645, allocations: 11.91 kB / 0.5583 GB, free: 1.785 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.168e-05/0.3646, allocations: 163 kB / 0.5584 GB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.3646, allocations: 4 kB / 0.5584 GB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.3646, allocations: 3.984 kB / 0.5584 GB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/0.3648, allocations: 80.88 kB / 0.5585 GB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3648, allocations: 4 kB / 0.5585 GB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.3648, allocations: 3.938 kB / 0.5585 GB, free: 1.488 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.3649, allocations: 7.984 kB / 0.5585 GB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001044/0.365, allocations: 75.91 kB / 0.5586 GB, free: 1.406 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003969/0.3654, allocations: 316.8 kB / 0.5589 GB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.418e-05/0.3654, allocations: 38.58 kB / 0.5589 GB, free: 1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.544e-05/0.3655, allocations: 32.91 kB / 0.559 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00301/0.3685, allocations: 1.819 MB / 0.5607 GB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.3686, allocations: 38.59 kB / 0.5608 GB, free: 14.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.3686, allocations: 4 kB / 0.5608 GB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003126/0.3689, allocations: 105.7 kB / 0.5609 GB, free: 14.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.3689, allocations: 59.45 kB / 0.5609 GB, free: 14.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.334e-05/0.369, allocations: 97.8 kB / 0.561 GB, free: 14.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.369, allocations: 25.7 kB / 0.561 GB, free: 14.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.3691, allocations: 92.17 kB / 0.5611 GB, free: 14.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.3691, allocations: 31.53 kB / 0.5612 GB, free: 14.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.3691, allocations: 4 kB / 0.5612 GB, free: 14.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.11e-05/0.3692, allocations: 310.8 kB / 0.5615 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.174e-05/0.3693, allocations: 23.98 kB / 0.5615 GB, free: 14.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.209e-05/0.3693, allocations: 38.12 kB / 0.5615 GB, free: 14.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.291e-05/0.3694, allocations: 31.97 kB / 0.5616 GB, free: 13.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3694, allocations: 0 / 0.5616 GB, free: 13.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001385/0.3695, allocations: 93.62 kB / 0.5616 GB, free: 13.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.3695, allocations: 4 kB / 0.5617 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3695, allocations: 0 / 0.5617 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.3696, allocations: 4 kB / 0.5617 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.335e-05/0.3696, allocations: 8 kB / 0.5617 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.3696, allocations: 7.969 kB / 0.5617 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.857e-05/0.3697, allocations: 3.906 kB / 0.5617 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.3697, allocations: 11.92 kB / 0.5617 GB, free: 13.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 7.721e-05/0.3698, allocations: 113.8 kB / 0.5618 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.3698, allocations: 4 kB / 0.5618 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.37, allocations: 148.1 kB / 0.5619 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001217/0.3702, allocations: 117.6 kB / 0.5621 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3702, allocations: 4 kB / 0.5621 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3702, allocations: 0 / 0.5621 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004134/0.3706, allocations: 430.2 kB / 0.5625 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3706, allocations: 0 / 0.5625 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.249e-05/0.3707, allocations: 15.98 kB / 0.5625 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3707, allocations: 0 / 0.5625 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.3707, allocations: 7.938 kB / 0.5625 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.3707, allocations: 11.94 kB / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3707, allocations: 0 / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.3709, allocations: 215.4 kB / 0.5627 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.602e-05/0.371, allocations: 88.95 kB / 0.5628 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.371, allocations: 0 / 0.5628 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.365e-05/0.371, allocations: 3.984 kB / 0.5628 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.3711, allocations: 4 kB / 0.5628 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.3711, allocations: 8 kB / 0.5628 GB, free: 12.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.516e-05/0.3711, allocations: 79.28 kB / 0.5629 GB, free: 12.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3711, allocations: 0 / 0.5629 GB, free: 12.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001864/0.373, allocations: 351.8 kB / 0.5632 GB, free: 12.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (state.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.01717/0.3902, allocations: 3.717 MB / 0.5668 GB, free: 8.434 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002588/0.3905, allocations: 110.2 kB / 0.5669 GB, free: 8.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3905, allocations: 4 kB / 0.567 GB, free: 8.316 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.427e-05/0.3905, allocations: 51.92 kB / 0.567 GB, free: 8.266 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.391, allocations: 44.02 kB / 0.567 GB, free: 8.223 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000401/0.3914, allocations: 262.8 kB / 0.5673 GB, free: 7.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.3916, allocations: 0.6887 MB / 0.568 GB, free: 7.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.3917, allocations: 15.44 kB / 0.568 GB, free: 7.203 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3917, allocations: 0 / 0.568 GB, free: 7.203 MB / 378.7 MB Notification: Performance of Templates: time 0.02574/0.4174, allocations: 19.32 MB / 0.5868 GB, free: 3.863 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/R134a_setState_pTX/R134a_setState_pTX.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches