Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_R134a_setState_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_setState_pTX,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001408/0.001408, allocations: 113.6 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 246.4 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2338/0.2338, allocations: 46.1 MB / 343.8 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 79.31 kB / 417.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1281, allocations: 62.44 MB / 479.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_setState_pTX): time 0.01202/0.1402, allocations: 8.417 MB / 488 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.1516, allocations: 11.07 MB / 499.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.477e-05/0.1517, allocations: 4 kB / 499.1 MB, free: 2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.152, allocations: 31.86 kB / 499.1 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005184/0.1572, allocations: 1.583 MB / 0.489 GB, free: 392 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.015e-06/0.1572, allocations: 0 / 0.489 GB, free: 392 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.656e-05/0.1573, allocations: 51.67 kB / 0.489 GB, free: 340 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.471e-05/0.1573, allocations: 7.984 kB / 0.489 GB, free: 332 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.1575, allocations: 35.86 kB / 0.4891 GB, free: 296 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.922e-05/0.1575, allocations: 11.94 kB / 0.4891 GB, free: 284 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-06/0.1576, allocations: 0 / 0.4891 GB, free: 284 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01879/0.1764, allocations: 14.59 MB / 0.5033 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.464e-05/0.1764, allocations: 3.938 kB / 0.5033 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.345e-05/0.1765, allocations: 19.92 kB / 0.5033 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2393/0.4158, allocations: 8.171 MB / 0.5113 GB, free: 23.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.4158, allocations: 0 / 0.5113 GB, free: 23.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4158, allocations: 3.125 kB / 0.5113 GB, free: 23.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.4159, allocations: 0 / 0.5113 GB, free: 23.6 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.006797/0.4227, allocations: 0.5603 MB / 0.5119 GB, free: 23.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4227, allocations: 10.47 kB / 0.5119 GB, free: 23.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.8e-05/0.4228, allocations: 35.5 kB / 0.5119 GB, free: 23.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.4229, allocations: 14.95 kB / 0.5119 GB, free: 23.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.03e-05/0.423, allocations: 168.5 kB / 0.5121 GB, free: 22.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.423, allocations: 6.062 kB / 0.5121 GB, free: 22.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.423, allocations: 2.75 kB / 0.5121 GB, free: 22.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.4232, allocations: 77.97 kB / 0.5122 GB, free: 22.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4232, allocations: 5.219 kB / 0.5122 GB, free: 22.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.4232, allocations: 4.703 kB / 0.5122 GB, free: 22.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4232, allocations: 1.469 kB / 0.5122 GB, free: 22.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.4233, allocations: 80.06 kB / 0.5123 GB, free: 22.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003879/0.4237, allocations: 319.2 kB / 0.5126 GB, free: 22.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.032e-05/0.4238, allocations: 45.3 kB / 0.5126 GB, free: 22.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.239e-05/0.4239, allocations: 32.77 kB / 0.5126 GB, free: 22.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003162/0.427, allocations: 1.851 MB / 0.5144 GB, free: 21.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.4271, allocations: 37.97 kB / 0.5145 GB, free: 21.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.4271, allocations: 0.7812 kB / 0.5145 GB, free: 21.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002648/0.4273, allocations: 111.6 kB / 0.5146 GB, free: 21.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.4274, allocations: 55.62 kB / 0.5146 GB, free: 21.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.131e-05/0.4274, allocations: 100.1 kB / 0.5147 GB, free: 21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.775e-06/0.4274, allocations: 26.2 kB / 0.5148 GB, free: 20.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.335e-05/0.4275, allocations: 88.03 kB / 0.5148 GB, free: 20.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.4275, allocations: 27.86 kB / 0.5149 GB, free: 20.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.4275, allocations: 22.86 kB / 0.5149 GB, free: 20.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.938e-05/0.4276, allocations: 321.3 kB / 0.5152 GB, free: 20.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.641e-05/0.4276, allocations: 19.66 kB / 0.5152 GB, free: 20.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.514e-05/0.4277, allocations: 39.53 kB / 0.5153 GB, free: 20.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.708e-05/0.4278, allocations: 62.77 kB / 0.5153 GB, free: 20.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4278, allocations: 0.8125 kB / 0.5153 GB, free: 20.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001515/0.4279, allocations: 99.98 kB / 0.5154 GB, free: 20.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.428, allocations: 6.484 kB / 0.5154 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.428, allocations: 1.312 kB / 0.5154 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.428, allocations: 1 kB / 0.5154 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.742e-05/0.4281, allocations: 10.03 kB / 0.5154 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.4281, allocations: 2.609 kB / 0.5154 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.354e-05/0.4281, allocations: 3.391 kB / 0.5154 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.4281, allocations: 2.719 kB / 0.5154 GB, free: 20.47 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.898e-05/0.4282, allocations: 118.2 kB / 0.5156 GB, free: 20.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.4283, allocations: 6.594 kB / 0.5156 GB, free: 20.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003065/0.4286, allocations: 162.1 kB / 0.5157 GB, free: 20.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000131/0.4287, allocations: 117.6 kB / 0.5158 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.4287, allocations: 1.438 kB / 0.5158 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.4287, allocations: 1.344 kB / 0.5158 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000385/0.4291, allocations: 436.2 kB / 0.5162 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.4291, allocations: 0 / 0.5162 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.385e-05/0.4292, allocations: 12.62 kB / 0.5163 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.4292, allocations: 6.875 kB / 0.5163 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.4292, allocations: 2.672 kB / 0.5163 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.4292, allocations: 3.688 kB / 0.5163 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4292, allocations: 0 / 0.5163 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.4295, allocations: 233.3 kB / 0.5165 GB, free: 19.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.924e-05/0.4295, allocations: 79.27 kB / 0.5166 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.4295, allocations: 6.781 kB / 0.5166 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.769e-05/0.4296, allocations: 1.062 kB / 0.5166 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.362e-05/0.4296, allocations: 14.61 kB / 0.5166 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.4296, allocations: 2.688 kB / 0.5166 GB, free: 19.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.895e-05/0.4296, allocations: 82.52 kB / 0.5167 GB, free: 19.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4296, allocations: 0 / 0.5167 GB, free: 19.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004156/0.4338, allocations: 354.4 kB / 0.517 GB, free: 19.59 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.02188/0.4557, allocations: 4.379 MB / 0.5213 GB, free: 17.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002541/0.456, allocations: 123.2 kB / 0.5214 GB, free: 17.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.456, allocations: 0 / 0.5214 GB, free: 17.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.887e-05/0.4561, allocations: 55 kB / 0.5215 GB, free: 17.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.4565, allocations: 41.44 kB / 0.5215 GB, free: 17.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.4599, allocations: 420.7 kB / 0.5219 GB, free: 16.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.4601, allocations: 0.6939 MB / 0.5226 GB, free: 16.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.21e-05/0.4601, allocations: 15.47 kB / 0.5226 GB, free: 16.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.4602, allocations: 24.97 kB / 0.5226 GB, free: 16.21 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4602, allocations: 0 / 0.5226 GB, free: 16.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03652/0.4967, allocations: 19.86 MB / 0.542 GB, free: 5.227 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003229/0.4971, allocations: 202.6 kB / 0.5422 GB, free: 4.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.902/3.4, allocations: 0 / 0.5422 GB, free: 4.969 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_R134a_setState_pTX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_R134a_setState_pTX.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestOnly.R134a_setState_pTX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches