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.001615/0.001615, allocations: 197.1 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, 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.0008016/0.0008016, allocations: 90.44 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2811/0.2811, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000253/0.000253, allocations: 4 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2609, allocations: 62.96 MB / 0.5159 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_setState_pTX): time 0.007223/0.2682, allocations: 7.817 MB / 0.5235 GB, free: 32.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007404/0.2756, allocations: 10.21 MB / 0.5335 GB, free: 25.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.447e-05/0.2757, allocations: 0 / 0.5335 GB, free: 25.51 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.2759, allocations: 31.84 kB / 0.5335 GB, free: 25.49 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003384/0.2793, allocations: 1.387 MB / 0.5349 GB, free: 24.83 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.308e-06/0.2793, allocations: 0 / 0.5349 GB, free: 24.83 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.99e-05/0.2794, allocations: 39.94 kB / 0.5349 GB, free: 24.8 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.518e-05/0.2794, allocations: 6.672 kB / 0.5349 GB, free: 24.8 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.998e-05/0.2795, allocations: 28.14 kB / 0.5349 GB, free: 24.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.055e-05/0.2796, allocations: 9.812 kB / 0.5349 GB, free: 24.79 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.792e-06/0.2796, allocations: 2.906 kB / 0.5349 GB, free: 24.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02351/0.3031, allocations: 19.6 MB / 0.5541 GB, free: 18.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.37e-05/0.3032, allocations: 4 kB / 0.5541 GB, free: 18.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.444e-05/0.3032, allocations: 45.62 kB / 0.5541 GB, free: 18.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.3151, allocations: 4.286 MB / 0.5583 GB, free: 13.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3151, allocations: 3.938 kB / 0.5583 GB, free: 13.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3152, allocations: 4 kB / 0.5583 GB, free: 13.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.3152, allocations: 0 / 0.5583 GB, free: 13.95 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.002224/0.3174, allocations: 0.55 MB / 0.5589 GB, free: 13.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.3174, allocations: 8.031 kB / 0.5589 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.3175, allocations: 20.83 kB / 0.5589 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.102e-05/0.3176, allocations: 164.3 kB / 0.559 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.066e-06/0.3176, allocations: 384 / 0.559 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.3176, allocations: 4.375 kB / 0.559 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.3178, allocations: 81.8 kB / 0.5591 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3178, allocations: 4 kB / 0.5591 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.3178, allocations: 0 / 0.5591 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3178, allocations: 0 / 0.5591 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.623e-05/0.3179, allocations: 79.89 kB / 0.5592 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003078/0.3182, allocations: 308.7 kB / 0.5595 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.316e-05/0.3183, allocations: 46.56 kB / 0.5595 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.684e-05/0.3183, allocations: 32.92 kB / 0.5596 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002425/0.3207, allocations: 1.832 MB / 0.5614 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.3208, allocations: 34.59 kB / 0.5614 GB, free: 10.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.3208, allocations: 0 / 0.5614 GB, free: 10.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002171/0.321, allocations: 113.6 kB / 0.5615 GB, free: 10.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.064e-05/0.321, allocations: 55.34 kB / 0.5616 GB, free: 10.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.676e-05/0.3211, allocations: 97.84 kB / 0.5617 GB, free: 10.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.665e-06/0.3211, allocations: 25.7 kB / 0.5617 GB, free: 10.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.9e-05/0.3211, allocations: 91.98 kB / 0.5618 GB, free: 9.969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.3211, allocations: 27.56 kB / 0.5618 GB, free: 9.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.3211, allocations: 0 / 0.5618 GB, free: 9.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.65e-05/0.3212, allocations: 322.8 kB / 0.5621 GB, free: 9.617 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.79e-05/0.3212, allocations: 20 kB / 0.5621 GB, free: 9.598 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.31e-05/0.3212, allocations: 37.83 kB / 0.5622 GB, free: 9.555 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.556e-05/0.3213, allocations: 65.64 kB / 0.5622 GB, free: 9.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3213, allocations: 0 / 0.5622 GB, free: 9.484 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001191/0.3214, allocations: 93.62 kB / 0.5623 GB, free: 9.387 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.3215, allocations: 4 kB / 0.5623 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.3215, allocations: 0 / 0.5623 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.3215, allocations: 0 / 0.5623 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.95e-05/0.3215, allocations: 8 kB / 0.5623 GB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.3216, allocations: 8.031 kB / 0.5623 GB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.729e-05/0.3216, allocations: 4.312 kB / 0.5623 GB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.3216, allocations: 11.92 kB / 0.5623 GB, free: 9.352 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 4.627e-05/0.3217, allocations: 109.8 kB / 0.5624 GB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.3217, allocations: 7.906 kB / 0.5625 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000188/0.3219, allocations: 145.5 kB / 0.5626 GB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.721e-05/0.322, allocations: 117.7 kB / 0.5627 GB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.322, allocations: 4 kB / 0.5627 GB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.322, allocations: 0 / 0.5627 GB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.3223, allocations: 430.1 kB / 0.5631 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3223, allocations: 0 / 0.5631 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.937e-05/0.3224, allocations: 20.17 kB / 0.5631 GB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3224, allocations: 3.938 kB / 0.5631 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.3224, allocations: 7.938 kB / 0.5631 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3224, allocations: 4 kB / 0.5632 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3224, allocations: 0 / 0.5632 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001501/0.3226, allocations: 226.6 kB / 0.5634 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.896e-05/0.3226, allocations: 88.98 kB / 0.5635 GB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.3226, allocations: 4 kB / 0.5635 GB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.239e-05/0.3227, allocations: 3.984 kB / 0.5635 GB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.896e-05/0.3227, allocations: 4 kB / 0.5635 GB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.3227, allocations: 15.98 kB / 0.5635 GB, free: 8.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.237e-05/0.3227, allocations: 75.28 kB / 0.5636 GB, free: 7.996 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3227, allocations: 0 / 0.5636 GB, free: 7.996 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001513/0.3243, allocations: 347.8 kB / 0.5639 GB, free: 7.656 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.01622/0.3405, allocations: 3.715 MB / 0.5675 GB, free: 3.926 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.3407, allocations: 113.5 kB / 0.5676 GB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3408, allocations: 0 / 0.5676 GB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.521e-05/0.3408, allocations: 52.02 kB / 0.5677 GB, free: 3.758 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.3412, allocations: 48.14 kB / 0.5677 GB, free: 3.711 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003225/0.3416, allocations: 266 kB / 0.568 GB, free: 3.414 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.171e-05/0.3417, allocations: 0.6887 MB / 0.5686 GB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.3417, allocations: 19.44 kB / 0.5687 GB, free: 2.684 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3417, allocations: 4 kB / 0.5687 GB, free: 2.68 MB / 378.7 MB Notification: Performance of Templates: time 0.02348/0.3652, allocations: 19.3 MB / 0.5875 GB, free: 15.36 MB / 410.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