Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.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) 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: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000896/0.000896, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.268/1.268, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007379/0.0007378, allocations: 92.02 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002904/0.0002905, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.189, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.03369/0.2228, allocations: 46.84 MB / 421.4 MB, free: 1.895 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004824/0.2276, allocations: 4.857 MB / 426.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003124/0.228, allocations: 4 kB / 426.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005502/0.2285, allocations: 167 kB / 426.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006039/0.2291, allocations: 346.2 kB / 426.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01309/0.2422, allocations: 4.96 MB / 431.7 MB, free: 7.559 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.2436, allocations: 1.329 MB / 433 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.2438, allocations: 105.5 kB / 433.1 MB, free: 6.121 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007747/0.2516, allocations: 6.116 MB / 439.3 MB, free: 0 / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005415/0.2522, allocations: 398.7 kB / 439.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.925e-05/0.2523, allocations: 24 kB / 439.7 MB, free: 15.58 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0144/0.2667, allocations: 8.386 MB / 448.1 MB, free: 7.184 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003215/0.2671, allocations: 195.5 kB / 448.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.2673, allocations: 125.5 kB / 448.4 MB, free: 6.863 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005949/0.2732, allocations: 3.536 MB / 451.9 MB, free: 3.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2733, allocations: 0 / 451.9 MB, free: 3.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2733, allocations: 4 kB / 451.9 MB, free: 3.316 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.2733, allocations: 0 / 451.9 MB, free: 3.316 MB / 330.7 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.003152/0.2765, allocations: 1.24 MB / 453.2 MB, free: 2.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2765, allocations: 15.97 kB / 453.2 MB, free: 2.012 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003238/0.2768, allocations: 67.42 kB / 453.2 MB, free: 1.945 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.2773, allocations: 354.2 kB / 453.6 MB, free: 1.559 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.2774, allocations: 29 kB / 453.6 MB, free: 1.531 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/0.2774, allocations: 44 kB / 453.7 MB, free: 1.488 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.2787, allocations: 0.5842 MB / 454.2 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.2788, allocations: 0 / 454.2 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.2788, allocations: 16 kB / 454.3 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.2788, allocations: 12 kB / 454.3 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.2801, allocations: 0.7456 MB / 455 MB, free: 128 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01565/0.2958, allocations: 12.01 MB / 467 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.2971, allocations: 0.5274 MB / 467.5 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/0.2975, allocations: 258.6 kB / 467.8 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01427/0.3118, allocations: 11.95 MB / 479.7 MB, free: 3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.3118, allocations: 42.95 kB / 479.8 MB, free: 2.949 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.965e-06/0.3118, allocations: 0 / 479.8 MB, free: 2.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.005937/0.3178, allocations: 2.136 MB / 481.9 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.3179, allocations: 59.97 kB / 482 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.3182, allocations: 318.8 kB / 482.3 MB, free: 332 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.412e-05/0.3183, allocations: 37.7 kB / 482.3 MB, free: 288 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.3185, allocations: 200.4 kB / 482.5 MB, free: 80 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.3186, allocations: 189.4 kB / 482.7 MB, free: 15.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.3187, allocations: 8 kB / 482.7 MB, free: 15.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3188, allocations: 354.7 kB / 483.1 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003816/0.3192, allocations: 237 kB / 483.3 MB, free: 15.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000599/0.3198, allocations: 339.4 kB / 483.6 MB, free: 14.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.3204, allocations: 292.5 kB / 483.9 MB, free: 14.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3204, allocations: 3.938 kB / 483.9 MB, free: 14.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00171/0.3222, allocations: 0.7442 MB / 484.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.3222, allocations: 8.031 kB / 484.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3222, allocations: 7.984 kB / 484.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004919/0.3227, allocations: 98.52 kB / 484.8 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004827/0.3232, allocations: 131.8 kB / 484.9 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.3254, allocations: 3.267 MB / 488.2 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.3259, allocations: 48.11 kB / 488.2 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.275e-05/0.3259, allocations: 27.98 kB / 488.2 MB, free: 10 MB / 378.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000277/0.3262, allocations: 197.6 kB / 488.4 MB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/0.3265, allocations: 43.62 kB / 488.5 MB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/0.3281, allocations: 0.8227 MB / 489.3 MB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3281, allocations: 4 kB / 489.3 MB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.3281, allocations: 4 kB / 489.3 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001058/0.3291, allocations: 0.7596 MB / 490.1 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.3312, allocations: 1.301 MB / 491.4 MB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3313, allocations: 0 / 491.4 MB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004485/0.3317, allocations: 103.9 kB / 491.5 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008898/0.3326, allocations: 148.7 kB / 491.6 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.3327, allocations: 15.98 kB / 491.6 MB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003748/0.3331, allocations: 0.6484 MB / 492.3 MB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3331, allocations: 3.938 kB / 492.3 MB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.3346, allocations: 0.9121 MB / 493.2 MB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.3348, allocations: 120.8 kB / 493.3 MB, free: 4.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.498e-05/0.3349, allocations: 15.98 kB / 493.3 MB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.3354, allocations: 31.89 kB / 493.4 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.826e-05/0.3354, allocations: 36.34 kB / 493.4 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.661e-05/0.3355, allocations: 35.97 kB / 493.4 MB, free: 4.562 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002819/0.3358, allocations: 253.9 kB / 493.7 MB, free: 4.312 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3358, allocations: 0 / 493.7 MB, free: 4.312 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00361/0.3394, allocations: 1.3 MB / 495 MB, free: 3.012 MB / 378.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005595/0.3451, allocations: 1.559 MB / 496.5 MB, free: 1.441 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.3467, allocations: 0.8001 MB / 497.3 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.3467, allocations: 4 kB / 497.3 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005871/0.3473, allocations: 287.2 kB / 497.6 MB, free: 336 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.3489, allocations: 269.6 kB / 497.9 MB, free: 64 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.3509, allocations: 1.344 MB / 499.2 MB, free: 14.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.3513, allocations: 0.8365 MB / 0.4883 GB, free: 13.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.3515, allocations: 67.42 kB / 0.4884 GB, free: 13.75 MB / 394.7 MB Notification: Performance of SimCode: time 7.22e-07/0.3516, allocations: 0 / 0.4884 GB, free: 13.75 MB / 394.7 MB Notification: Performance of Templates: time 0.1828/0.5344, allocations: 34.84 MB / 0.5224 GB, free: 114.5 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins/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_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches