Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.DryAirNasa,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_DryAirNasa",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.DryAirNasa,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_DryAirNasa",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008758/0.0008758, allocations: 175.4 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006466/0.0006467, allocations: 89.36 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2963/0.2963, allocations: 43.56 MB / 363.1 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 16 kB / 432.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0988/0.09916, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.DryAirNasa): time 0.2872/0.3864, allocations: 138.9 MB / 0.6151 GB, free: 11.91 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003567/0.39, allocations: 3.364 MB / 0.6184 GB, free: 8.551 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.428e-05/0.3901, allocations: 4 kB / 0.6184 GB, free: 8.547 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.3902, allocations: 27.86 kB / 0.6184 GB, free: 8.52 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 4.16e-05/0.3903, allocations: 31.77 kB / 0.6184 GB, free: 8.488 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.3914, allocations: 362.4 kB / 0.6188 GB, free: 8.133 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 8.37e-05/0.3915, allocations: 71.53 kB / 0.6188 GB, free: 8.062 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.3915, allocations: 9.672 kB / 0.6189 GB, free: 8.055 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.149e-05/0.3916, allocations: 31.86 kB / 0.6189 GB, free: 8.023 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.788e-05/0.3916, allocations: 23.92 kB / 0.6189 GB, free: 8 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.3917, allocations: 4 kB / 0.6189 GB, free: 7.996 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009908/0.3927, allocations: 482.8 kB / 0.6194 GB, free: 7.523 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.3927, allocations: 11.98 kB / 0.6194 GB, free: 7.512 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 5.073e-05/0.3927, allocations: 53.56 kB / 0.6194 GB, free: 7.453 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003499/0.3931, allocations: 213.6 kB / 0.6196 GB, free: 7.246 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3931, allocations: 0 / 0.6196 GB, free: 7.246 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3931, allocations: 3.938 kB / 0.6196 GB, free: 7.242 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.556e-06/0.3931, allocations: 0 / 0.6196 GB, free: 7.242 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000479/0.3936, allocations: 395.1 kB / 0.62 GB, free: 6.812 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.3937, allocations: 8.031 kB / 0.62 GB, free: 6.805 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.3937, allocations: 42.73 kB / 0.6201 GB, free: 6.754 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.549e-05/0.3937, allocations: 8.844 kB / 0.6201 GB, free: 6.746 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.949e-05/0.3938, allocations: 171.5 kB / 0.6202 GB, free: 6.539 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.3938, allocations: 4 kB / 0.6202 GB, free: 6.535 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.3939, allocations: 8 kB / 0.6202 GB, free: 6.527 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.394, allocations: 73.61 kB / 0.6203 GB, free: 6.449 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.394, allocations: 7.844 kB / 0.6203 GB, free: 6.441 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.986e-06/0.394, allocations: 4 kB / 0.6203 GB, free: 6.438 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.394, allocations: 0 / 0.6203 GB, free: 6.438 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.561e-05/0.3941, allocations: 51.95 kB / 0.6204 GB, free: 6.387 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003902/0.3945, allocations: 373.9 kB / 0.6207 GB, free: 5.953 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.362e-05/0.3946, allocations: 62.5 kB / 0.6208 GB, free: 5.883 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.3947, allocations: 24.84 kB / 0.6208 GB, free: 5.855 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001667/0.3963, allocations: 1.237 MB / 0.622 GB, free: 4.383 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.3964, allocations: 34.55 kB / 0.6221 GB, free: 4.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=9): time 1.173e-06/0.3964, allocations: 0 / 0.6221 GB, free: 4.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=14): time 0.00654/0.4029, allocations: 0.6648 MB / 0.6227 GB, free: 3.668 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.403, allocations: 51.41 kB / 0.6228 GB, free: 3.605 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.811e-05/0.4031, allocations: 101.8 kB / 0.6229 GB, free: 3.496 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/0.4031, allocations: 33.7 kB / 0.6229 GB, free: 3.457 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.49e-05/0.4031, allocations: 92.2 kB / 0.623 GB, free: 3.363 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.571e-05/0.4032, allocations: 47.36 kB / 0.623 GB, free: 3.316 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-05/0.4032, allocations: 0 / 0.623 GB, free: 3.316 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.4033, allocations: 318.8 kB / 0.6233 GB, free: 2.996 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.4035, allocations: 87.88 kB / 0.6234 GB, free: 2.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.4037, allocations: 103.1 kB / 0.6235 GB, free: 2.801 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.4041, allocations: 198.6 kB / 0.6237 GB, free: 2.598 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4041, allocations: 0 / 0.6237 GB, free: 2.598 MB / 442.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005093/0.4046, allocations: 257.3 kB / 0.6239 GB, free: 2.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.4047, allocations: 8 kB / 0.6239 GB, free: 2.332 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.4047, allocations: 4.547 kB / 0.624 GB, free: 2.328 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.4047, allocations: 0 / 0.624 GB, free: 2.328 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006538/0.4053, allocations: 51.94 kB / 0.624 GB, free: 2.277 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.4054, allocations: 0 / 0.624 GB, free: 2.277 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005274/0.4059, allocations: 16 kB / 0.624 GB, free: 2.262 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-05/0.4059, allocations: 15.97 kB / 0.624 GB, free: 2.246 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 9.937e-05/0.4061, allocations: 125.8 kB / 0.6242 GB, free: 2.113 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.4061, allocations: 7.844 kB / 0.6242 GB, free: 2.105 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007597/0.4069, allocations: 343.2 kB / 0.6245 GB, free: 1.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4069, allocations: 0.75 kB / 0.6245 GB, free: 1.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.4069, allocations: 7.875 kB / 0.6245 GB, free: 1.762 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.4069, allocations: 0 / 0.6245 GB, free: 1.762 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000994/0.4079, allocations: 0.7569 MB / 0.6252 GB, free: 0.918 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4079, allocations: 4 kB / 0.6252 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005912/0.4085, allocations: 48.58 kB / 0.6253 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4085, allocations: 0 / 0.6253 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.4086, allocations: 7.984 kB / 0.6253 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4086, allocations: 7.047 kB / 0.6253 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4086, allocations: 0 / 0.6253 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005339/0.4091, allocations: 362.3 kB / 0.6256 GB, free: 500 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.201e-05/0.4092, allocations: 109 kB / 0.6257 GB, free: 372 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/0.4093, allocations: 0 / 0.6257 GB, free: 372 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005211/0.4098, allocations: 8 kB / 0.6258 GB, free: 364 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/0.4099, allocations: 15.97 kB / 0.6258 GB, free: 348 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.4099, allocations: 23.86 kB / 0.6258 GB, free: 324 kB / 442.7 MB Notification: Performance of sorting global known variables: time 3.654e-05/0.4099, allocations: 81.41 kB / 0.6259 GB, free: 244 kB / 442.7 MB Notification: Performance of sort global known variables: time 9e-08/0.41, allocations: 0 / 0.6259 GB, free: 244 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003869/0.4103, allocations: 95.98 kB / 0.626 GB, free: 148 kB / 442.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001086/0.4114, allocations: 1.014 MB / 0.627 GB, free: 15.11 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004576/0.4119, allocations: 207.8 kB / 0.6272 GB, free: 14.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4119, allocations: 4 kB / 0.6272 GB, free: 14.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.4121, allocations: 115.9 kB / 0.6273 GB, free: 14.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.4125, allocations: 36.95 kB / 0.6273 GB, free: 14.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00077/0.4133, allocations: 408.4 kB / 0.6277 GB, free: 14.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.4135, allocations: 0.6972 MB / 0.6284 GB, free: 13.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.4138, allocations: 47.39 kB / 0.6284 GB, free: 13.55 MB / 458.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4138, allocations: 0 / 0.6284 GB, free: 13.55 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.837/3.25, allocations: 3.536 MB / 0.6319 GB, free: 10.02 MB / 458.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_DryAirNasa_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_DryAirNasa.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/DryAirNasa/DryAirNasa.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches