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: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_R134a_setState_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_R134a_setState_pTX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009598/0.0009598, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 226.5 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007583/0.0007583, allocations: 93.78 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2669/0.2669, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002282/0.0002282, allocations: 4 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.282, allocations: 62.97 MB / 0.516 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_setState_pTX): time 0.006931/0.289, allocations: 7.81 MB / 0.5236 GB, free: 32.73 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00689/0.2959, allocations: 10.2 MB / 0.5336 GB, free: 25.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.198e-05/0.2959, allocations: 3.938 kB / 0.5336 GB, free: 25.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.2961, allocations: 31.95 kB / 0.5336 GB, free: 25.36 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002798/0.2989, allocations: 1.378 MB / 0.5349 GB, free: 24.7 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.186e-06/0.2989, allocations: 0 / 0.5349 GB, free: 24.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.401e-05/0.299, allocations: 44.67 kB / 0.535 GB, free: 24.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.177e-05/0.299, allocations: 3 kB / 0.535 GB, free: 24.68 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.667e-05/0.2991, allocations: 26.92 kB / 0.535 GB, free: 24.67 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.832e-05/0.2991, allocations: 19.67 kB / 0.535 GB, free: 24.66 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.092e-06/0.2991, allocations: 0 / 0.535 GB, free: 24.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02207/0.3212, allocations: 19.61 MB / 0.5542 GB, free: 18.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.3213, allocations: 7.922 kB / 0.5542 GB, free: 18.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.513e-05/0.3213, allocations: 37.64 kB / 0.5542 GB, free: 18.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.3324, allocations: 4.29 MB / 0.5584 GB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3325, allocations: 0 / 0.5584 GB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3325, allocations: 0 / 0.5584 GB, free: 13.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.3325, allocations: 7.938 kB / 0.5584 GB, free: 13.9 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.002002/0.3345, allocations: 0.5461 MB / 0.5589 GB, free: 13.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3346, allocations: 11.97 kB / 0.559 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.672e-05/0.3346, allocations: 42.73 kB / 0.559 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.961e-05/0.3347, allocations: 8.844 kB / 0.559 GB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.338e-05/0.3348, allocations: 168.3 kB / 0.5592 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.3348, allocations: 4.375 kB / 0.5592 GB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.3348, allocations: 8.375 kB / 0.5592 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.3349, allocations: 77.61 kB / 0.5593 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.3349, allocations: 0 / 0.5593 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.3349, allocations: 0 / 0.5593 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/0.3349, allocations: 8 kB / 0.5593 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.171e-05/0.335, allocations: 71.91 kB / 0.5593 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002914/0.3353, allocations: 312.7 kB / 0.5596 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.164e-05/0.3354, allocations: 46.56 kB / 0.5597 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.609e-05/0.3354, allocations: 32.92 kB / 0.5597 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00234/0.3378, allocations: 1.82 MB / 0.5615 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.3378, allocations: 42.59 kB / 0.5615 GB, free: 10.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.3378, allocations: 4 kB / 0.5615 GB, free: 10.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002141/0.338, allocations: 101.7 kB / 0.5616 GB, free: 10.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.7e-05/0.3381, allocations: 55.34 kB / 0.5617 GB, free: 10.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.836e-05/0.3381, allocations: 93.86 kB / 0.5618 GB, free: 10.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.324e-06/0.3381, allocations: 25.7 kB / 0.5618 GB, free: 9.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.736e-05/0.3381, allocations: 91.98 kB / 0.5619 GB, free: 9.887 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.3382, allocations: 35.53 kB / 0.5619 GB, free: 9.852 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-06/0.3382, allocations: 0 / 0.5619 GB, free: 9.852 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.419e-05/0.3382, allocations: 322.9 kB / 0.5622 GB, free: 9.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.761e-05/0.3382, allocations: 19.98 kB / 0.5622 GB, free: 9.508 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.42e-05/0.3383, allocations: 41.77 kB / 0.5623 GB, free: 9.461 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.366e-05/0.3383, allocations: 61.97 kB / 0.5623 GB, free: 9.395 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.3383, allocations: 0 / 0.5623 GB, free: 9.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001114/0.3385, allocations: 93.62 kB / 0.5624 GB, free: 9.297 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.3385, allocations: 4 kB / 0.5624 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.3385, allocations: 8.031 kB / 0.5624 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.3385, allocations: 3.984 kB / 0.5624 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.83e-05/0.3386, allocations: 8 kB / 0.5624 GB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.3386, allocations: 3.938 kB / 0.5625 GB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.482e-05/0.3386, allocations: 3.938 kB / 0.5625 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.3386, allocations: 4 kB / 0.5625 GB, free: 9.262 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.587e-05/0.3387, allocations: 113.8 kB / 0.5626 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.3387, allocations: 3.906 kB / 0.5626 GB, free: 9.137 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.3389, allocations: 156.9 kB / 0.5627 GB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.412e-05/0.339, allocations: 113.7 kB / 0.5628 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.339, allocations: 0 / 0.5628 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.339, allocations: 11.92 kB / 0.5628 GB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002993/0.3393, allocations: 426.2 kB / 0.5632 GB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3393, allocations: 4 kB / 0.5633 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-05/0.3394, allocations: 15.94 kB / 0.5633 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3394, allocations: 0 / 0.5633 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.3394, allocations: 8 kB / 0.5633 GB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3394, allocations: 0 / 0.5633 GB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3394, allocations: 0 / 0.5633 GB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.3396, allocations: 223.4 kB / 0.5635 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.66e-05/0.3396, allocations: 84.98 kB / 0.5636 GB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.3396, allocations: 0 / 0.5636 GB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.968e-05/0.3397, allocations: 8 kB / 0.5636 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.722e-05/0.3397, allocations: 11.98 kB / 0.5636 GB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.3397, allocations: 0 / 0.5636 GB, free: 7.996 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.201e-05/0.3397, allocations: 79.28 kB / 0.5637 GB, free: 7.918 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3397, allocations: 0 / 0.5637 GB, free: 7.918 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001491/0.3412, allocations: 347.8 kB / 0.564 GB, free: 7.578 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.01578/0.357, allocations: 4.381 MB / 0.5683 GB, free: 3.164 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001981/0.3572, allocations: 109.7 kB / 0.5684 GB, free: 3.051 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3572, allocations: 0 / 0.5684 GB, free: 3.051 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.016e-05/0.3573, allocations: 55.86 kB / 0.5684 GB, free: 2.996 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.3577, allocations: 39 kB / 0.5685 GB, free: 2.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.3589, allocations: 451.4 kB / 0.5689 GB, free: 2.469 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.639e-05/0.359, allocations: 0.6887 MB / 0.5696 GB, free: 1.754 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.359, allocations: 31.44 kB / 0.5696 GB, free: 1.723 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.359, allocations: 0 / 0.5696 GB, free: 1.723 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.092/4.451, allocations: 19.49 MB / 0.5886 GB, free: 14.2 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.R134a_setState_pTX_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_R134a_setState_pTX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_R134a_setState_pTX.fmu > 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/jenkins1/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