Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.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 3.2.3+maint.om/package.mo", uses=false) 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 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(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir1",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.001392/0.001392, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001524/0.001524, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.147/1.147, allocations: 205.1 MB / 224 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 56.39 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0745/0.0756, allocations: 46.63 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.04483/0.1205, allocations: 50.61 MB / 377.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1437/0.2642, allocations: 5.169 MB / 382.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002007/0.2644, allocations: 5.969 kB / 382.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006216/0.2651, allocations: 223.8 kB / 382.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005251/0.2656, allocations: 342.9 kB / 383.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01327/0.2789, allocations: 6.095 MB / 389.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.28, allocations: 1.098 MB / 390.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.2803, allocations: 145.1 kB / 390.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005195/0.2855, allocations: 3.75 MB / 394.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004034/0.2859, allocations: 431.2 kB / 394.7 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.279e-05/0.286, allocations: 57.56 kB / 394.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01343/0.2994, allocations: 9.777 MB / 404.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002666/0.2997, allocations: 228.5 kB / 404.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000433/0.3001, allocations: 312.5 kB / 405.1 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008811/0.309, allocations: 5.597 MB / 410.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.309, allocations: 0 / 410.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.309, allocations: 0 / 410.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.309, allocations: 0 / 410.7 MB, free: 5.074 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002373/0.3114, allocations: 1.354 MB / 412 MB, free: 4.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.3114, allocations: 12.03 kB / 412 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.34e-05/0.3115, allocations: 86.52 kB / 412.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002696/0.3118, allocations: 51.53 kB / 412.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.3121, allocations: 363.4 kB / 412.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.3121, allocations: 33 kB / 412.6 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.3122, allocations: 41.69 kB / 412.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009809/0.3132, allocations: 0.5903 MB / 413.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.3132, allocations: 0 / 413.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.75e-05/0.3132, allocations: 24 kB / 413.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3133, allocations: 12 kB / 413.2 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009846/0.3142, allocations: 0.7447 MB / 414 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01332/0.3276, allocations: 11.96 MB / 425.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.3287, allocations: 0.528 MB / 426.5 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.329, allocations: 262 kB / 426.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01265/0.3417, allocations: 11.89 MB / 438.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.3417, allocations: 39 kB / 438.6 MB, free: 5.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.765e-06/0.3417, allocations: 7.031 kB / 438.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005276/0.347, allocations: 2.119 MB / 440.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.3471, allocations: 59.97 kB / 440.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003099/0.3474, allocations: 322.8 kB / 441.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.3474, allocations: 37.7 kB / 441.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.3476, allocations: 196.4 kB / 441.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.3477, allocations: 188.8 kB / 441.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.3478, allocations: 120.1 kB / 441.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.348, allocations: 346.8 kB / 442 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.3483, allocations: 248.5 kB / 442.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/0.3489, allocations: 342.5 kB / 442.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.3499, allocations: 0.5887 MB / 443.2 MB, free: 372 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3499, allocations: 8 kB / 443.2 MB, free: 364 kB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001639/0.3516, allocations: 0.7542 MB / 443.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3516, allocations: 7.938 kB / 444 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3516, allocations: 4 kB / 444 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004409/0.3521, allocations: 102.8 kB / 444.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.3526, allocations: 128.9 kB / 444.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/0.3547, allocations: 3.473 MB / 447.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.3551, allocations: 36.02 kB / 447.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.387e-05/0.3551, allocations: 31.98 kB / 447.7 MB, free: 11.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000223/0.3554, allocations: 191 kB / 447.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/0.3556, allocations: 47.53 kB / 448 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.357, allocations: 0.8219 MB / 448.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3571, allocations: 4 kB / 448.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.3571, allocations: 0 / 448.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001006/0.3581, allocations: 0.7596 MB / 449.5 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.3599, allocations: 1.31 MB / 450.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3599, allocations: 0 / 450.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.3603, allocations: 95.05 kB / 450.9 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008768/0.3612, allocations: 148.6 kB / 451.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/0.3613, allocations: 19.98 kB / 451.1 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003449/0.3616, allocations: 0.6444 MB / 451.8 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3617, allocations: 8.125 kB / 451.8 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.3631, allocations: 0.9036 MB / 452.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.763e-05/0.3632, allocations: 120.6 kB / 452.8 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.974e-05/0.3633, allocations: 12 kB / 452.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004132/0.3637, allocations: 39.81 kB / 452.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/0.3638, allocations: 32.39 kB / 452.9 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.156e-05/0.3639, allocations: 35.97 kB / 452.9 MB, free: 6.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002355/0.3641, allocations: 249.9 kB / 453.1 MB, free: 5.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3641, allocations: 0 / 453.1 MB, free: 5.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003387/0.3675, allocations: 1.312 MB / 454.5 MB, free: 4.609 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006839/0.3744, allocations: 3.046 MB / 457.5 MB, free: 1.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3759, allocations: 0.8598 MB / 458.4 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3759, allocations: 0 / 458.4 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004841/0.3764, allocations: 287 kB / 458.6 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.3777, allocations: 282.3 kB / 458.9 MB, free: 260 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007948/0.3857, allocations: 5.501 MB / 464.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.3861, allocations: 0.8326 MB / 465.2 MB, free: 9.762 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005305/0.3866, allocations: 144.2 kB / 465.4 MB, free: 9.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.3868, allocations: 155.4 kB / 465.5 MB, free: 9.469 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3868, allocations: 0 / 465.5 MB, free: 9.469 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5027/0.8895, allocations: 51.57 MB / 0.505 GB, free: 5.867 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002691/0.8898, allocations: 265.3 kB / 0.5052 GB, free: 5.512 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.364/5.254, allocations: 0 / 0.5052 GB, free: 5.512 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches