Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_R134a_setState_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_R134a_setState_pTX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 105.9 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 241.8 MB, free: 15.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2001/0.2001, allocations: 44.16 MB / 336.1 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002357/0.002357, allocations: 66.28 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1171, allocations: 60.81 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_setState_pTX): time 0.01087/0.1281, allocations: 8.248 MB / 476.9 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.1407, allocations: 11.46 MB / 488.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.059e-05/0.1408, allocations: 0 / 488.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.141, allocations: 35.8 kB / 488.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004827/0.1459, allocations: 1.458 MB / 489.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.611e-06/0.1459, allocations: 0 / 489.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.666e-05/0.146, allocations: 51.61 kB / 489.9 MB, free: 9.445 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.541e-05/0.146, allocations: 0 / 489.9 MB, free: 9.445 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.1462, allocations: 31.84 kB / 489.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.574e-05/0.1462, allocations: 19.94 kB / 489.9 MB, free: 9.395 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.1462, allocations: 4 kB / 489.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01923/0.1655, allocations: 14.37 MB / 0.4925 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.446e-05/0.1655, allocations: 11.97 kB / 0.4925 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.419e-05/0.1656, allocations: 11.94 kB / 0.4925 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0228/0.1884, allocations: 8.168 MB / 0.5005 GB, free: 2.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.1885, allocations: 0 / 0.5005 GB, free: 2.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1885, allocations: 0 / 0.5005 GB, free: 2.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1885, allocations: 0 / 0.5005 GB, free: 2.746 MB / 382.1 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.0029/0.1914, allocations: 0.5499 MB / 0.501 GB, free: 2.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.1914, allocations: 8.031 kB / 0.501 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.769e-05/0.1915, allocations: 42.5 kB / 0.501 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.1917, allocations: 11.89 kB / 0.5011 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.1918, allocations: 167 kB / 0.5012 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.1918, allocations: 11.94 kB / 0.5012 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.1918, allocations: 0 / 0.5012 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.192, allocations: 73.67 kB / 0.5013 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1921, allocations: 0 / 0.5013 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.1921, allocations: 4 kB / 0.5013 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.1921, allocations: 8 kB / 0.5013 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.1922, allocations: 71.95 kB / 0.5014 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000464/0.1927, allocations: 328.5 kB / 0.5017 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.268e-05/0.1928, allocations: 42.56 kB / 0.5017 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.406e-05/0.1929, allocations: 36.91 kB / 0.5018 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1824/0.3752, allocations: 1.695 MB / 0.5034 GB, free: 49.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3753, allocations: 37.2 kB / 0.5035 GB, free: 49.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.864e-06/0.3753, allocations: 0 / 0.5035 GB, free: 49.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003263/0.3756, allocations: 110.8 kB / 0.5036 GB, free: 49.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/0.3757, allocations: 54.94 kB / 0.5036 GB, free: 49.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.588e-05/0.3757, allocations: 93.67 kB / 0.5037 GB, free: 48.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.365e-06/0.3757, allocations: 26.52 kB / 0.5037 GB, free: 48.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.637e-05/0.3758, allocations: 89.3 kB / 0.5038 GB, free: 48.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.3758, allocations: 28.42 kB / 0.5038 GB, free: 48.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.3758, allocations: 25.14 kB / 0.5039 GB, free: 48.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.046e-05/0.3759, allocations: 317.4 kB / 0.5042 GB, free: 48.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.27e-05/0.376, allocations: 18.41 kB / 0.5042 GB, free: 48.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.384e-05/0.376, allocations: 40.02 kB / 0.5042 GB, free: 48.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.623e-05/0.3761, allocations: 64.55 kB / 0.5043 GB, free: 48.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3761, allocations: 9.219 kB / 0.5043 GB, free: 48.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000142/0.3763, allocations: 97.11 kB / 0.5044 GB, free: 48.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3763, allocations: 5.344 kB / 0.5044 GB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3763, allocations: 1.469 kB / 0.5044 GB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3763, allocations: 0.6094 kB / 0.5044 GB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.733e-05/0.3764, allocations: 10.48 kB / 0.5044 GB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3764, allocations: 0 / 0.5044 GB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.157e-05/0.3764, allocations: 2.875 kB / 0.5044 GB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.3764, allocations: 6.656 kB / 0.5044 GB, free: 48.43 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/0.3765, allocations: 123.1 kB / 0.5045 GB, free: 48.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.3765, allocations: 1.375 kB / 0.5045 GB, free: 48.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/0.3768, allocations: 154.9 kB / 0.5047 GB, free: 48.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001394/0.3769, allocations: 111.8 kB / 0.5048 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.377, allocations: 0 / 0.5048 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.377, allocations: 1.516 kB / 0.5048 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004229/0.3774, allocations: 436.3 kB / 0.5052 GB, free: 47.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3774, allocations: 1.281 kB / 0.5052 GB, free: 47.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.094e-05/0.3775, allocations: 17.38 kB / 0.5052 GB, free: 47.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.3775, allocations: 1.172 kB / 0.5052 GB, free: 47.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.3775, allocations: 7.531 kB / 0.5052 GB, free: 47.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.3775, allocations: 5.75 kB / 0.5052 GB, free: 47.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3775, allocations: 0 / 0.5052 GB, free: 47.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.3777, allocations: 218.8 kB / 0.5054 GB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.3777, allocations: 90.3 kB / 0.5055 GB, free: 47.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.3778, allocations: 4.547 kB / 0.5055 GB, free: 47.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.59e-05/0.3778, allocations: 3.938 kB / 0.5055 GB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.999e-05/0.3779, allocations: 10.95 kB / 0.5056 GB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.3779, allocations: 3.062 kB / 0.5056 GB, free: 47.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.656e-05/0.3779, allocations: 76.59 kB / 0.5056 GB, free: 47.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.52e-07/0.3779, allocations: 3.969 kB / 0.5056 GB, free: 47.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002011/0.3799, allocations: 346 kB / 0.506 GB, free: 47.6 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01746/0.3974, allocations: 4.37 MB / 0.5102 GB, free: 45.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002525/0.3977, allocations: 117.4 kB / 0.5103 GB, free: 45.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3977, allocations: 0 / 0.5103 GB, free: 45.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.003e-05/0.3977, allocations: 55.64 kB / 0.5104 GB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.3982, allocations: 44.53 kB / 0.5104 GB, free: 45.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.3998, allocations: 411.5 kB / 0.5108 GB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.4, allocations: 0.6902 MB / 0.5115 GB, free: 44.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.054e-05/0.4, allocations: 14.14 kB / 0.5115 GB, free: 44.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.749e-05/0.4001, allocations: 28.31 kB / 0.5115 GB, free: 44.19 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4001, allocations: 0 / 0.5115 GB, free: 44.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.4361, allocations: 19.54 MB / 0.5306 GB, free: 33.42 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001249/0.4362, allocations: 199 kB / 0.5308 GB, free: 33.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.885/3.322, allocations: 0 / 0.5308 GB, free: 33.16 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_R134a_setState_pTX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_R134a_setState_pTX.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.R134a_setState_pTX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches