Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.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.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",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.0007399/0.0007402, allocations: 93.98 kB / 17.3 MB, free: 6.395 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.0008302/0.0008302, allocations: 177.6 kB / 18.21 MB, free: 5.547 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.176/1.176, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0003917/0.0003918, allocations: 8.422 kB / 281.5 MB, free: 3.336 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07015/0.07055, allocations: 47.59 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.2589/0.3295, allocations: 146.4 MB / 475.5 MB, free: 7.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.3307, allocations: 0.9975 MB / 476.5 MB, free: 6.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.547e-05/0.3307, allocations: 4 kB / 476.5 MB, free: 6.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.3309, allocations: 19.89 kB / 476.5 MB, free: 6.266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004402/0.3314, allocations: 219.8 kB / 476.7 MB, free: 6.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.3317, allocations: 99.78 kB / 476.8 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.3319, allocations: 207.2 kB / 477 MB, free: 5.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.3319, allocations: 4 kB / 477 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.3321, allocations: 93.52 kB / 477.1 MB, free: 5.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.612e-05/0.3322, allocations: 47.83 kB / 477.2 MB, free: 5.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.3322, allocations: 4 kB / 477.2 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000413/0.3326, allocations: 263.7 kB / 477.4 MB, free: 5.348 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.486e-05/0.3327, allocations: 23.8 kB / 477.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.107e-05/0.3328, allocations: 77.48 kB / 477.5 MB, free: 5.242 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003422/0.3331, allocations: 279.4 kB / 477.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.3331, allocations: 0 / 477.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3331, allocations: 0 / 477.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.3331, allocations: 0 / 477.8 MB, free: 4.969 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0003788/0.3335, allocations: 396 kB / 478.2 MB, free: 4.535 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.3336, allocations: 12.03 kB / 478.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.3336, allocations: 38.75 kB / 478.2 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001932/0.3356, allocations: 184.6 kB / 478.4 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.3357, allocations: 211.9 kB / 478.6 MB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.3358, allocations: 8.875 kB / 478.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.3358, allocations: 8 kB / 478.6 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000434/0.3363, allocations: 220.1 kB / 478.9 MB, free: 3.805 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3363, allocations: 3.938 kB / 478.9 MB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.3363, allocations: 0 / 478.9 MB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.3363, allocations: 4 kB / 478.9 MB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004013/0.3367, allocations: 171.9 kB / 479 MB, free: 3.629 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008694/0.3376, allocations: 0.5844 MB / 479.6 MB, free: 2.984 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.3379, allocations: 142.5 kB / 479.8 MB, free: 2.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.338, allocations: 68.83 kB / 479.8 MB, free: 2.766 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.3381, allocations: 4 kB / 479.8 MB, free: 2.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.3381, allocations: 32.25 kB / 479.9 MB, free: 2.723 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/0.3381, allocations: 7.984 kB / 479.9 MB, free: 2.715 MB / 366.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.004759/0.3429, allocations: 1.308 MB / 481.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.3429, allocations: 55.41 kB / 481.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.24e-05/0.343, allocations: 117.8 kB / 481.3 MB, free: 1.121 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.343, allocations: 25.7 kB / 481.4 MB, free: 1.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.199e-05/0.3431, allocations: 91.95 kB / 481.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.397e-05/0.3431, allocations: 75.02 kB / 481.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.3432, allocations: 29.7 kB / 481.6 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.265e-05/0.3433, allocations: 318.8 kB / 481.9 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.3434, allocations: 67.95 kB / 481.9 MB, free: 0.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.3436, allocations: 99.39 kB / 482 MB, free: 400 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003/0.3439, allocations: 187.3 kB / 482.2 MB, free: 200 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.3439, allocations: 3.938 kB / 482.2 MB, free: 196 kB / 366.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000444/0.3443, allocations: 266.1 kB / 482.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.3444, allocations: 4 kB / 482.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3444, allocations: 0 / 482.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001436/0.3445, allocations: 52.92 kB / 482.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.3448, allocations: 55.89 kB / 482.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003335/0.3452, allocations: 0.5717 MB / 483.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.3453, allocations: 8.016 kB / 483.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.3454, allocations: 24 kB / 483.2 MB, free: 15.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.3455, allocations: 125.9 kB / 483.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.3455, allocations: 7.906 kB / 483.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007271/0.3463, allocations: 343 kB / 483.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3463, allocations: 4 kB / 483.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3463, allocations: 0 / 483.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3463, allocations: 0 / 483.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008373/0.3471, allocations: 0.6312 MB / 484.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3472, allocations: 0 / 484.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.3475, allocations: 63.89 kB / 484.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.074e-05/0.3475, allocations: 20.84 kB / 484.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.3476, allocations: 20.08 kB / 484.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000713/0.3483, allocations: 1.269 MB / 485.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.3483, allocations: 8.016 kB / 485.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005904/0.3489, allocations: 426.5 kB / 486.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.349, allocations: 93.09 kB / 486.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.349, allocations: 8 kB / 486.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.3492, allocations: 7.938 kB / 486.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.3493, allocations: 27.97 kB / 486.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.3493, allocations: 27.98 kB / 486.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.043e-05/0.3493, allocations: 87.27 kB / 486.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3493, allocations: 0 / 486.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000344/0.3497, allocations: 87.98 kB / 486.4 MB, free: 11.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001001/0.3507, allocations: 1.001 MB / 487.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004192/0.3511, allocations: 204.6 kB / 487.6 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.3511, allocations: 4 kB / 487.6 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.3515, allocations: 226.5 kB / 487.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005929/0.3521, allocations: 49.28 kB / 487.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.3553, allocations: 2.172 MB / 490.1 MB, free: 7.867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.3556, allocations: 0.7126 MB / 490.8 MB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005907/0.3562, allocations: 77.39 kB / 490.9 MB, free: 7.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000294/0.3565, allocations: 75.39 kB / 490.9 MB, free: 6.98 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3565, allocations: 0 / 490.9 MB, free: 6.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6502/1.007, allocations: 6.903 MB / 497.8 MB, free: 76 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/1.007, allocations: 227.8 kB / 498.1 MB, free: 15.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.918/3.925, allocations: 8 kB / 498.1 MB, free: 15.81 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2/IdealGasN2.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches