Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",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.001281/0.001281, allocations: 102.2 kB / 17.06 MB, free: 6.016 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.00118/0.001181, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 47.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2404, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.1493/0.3897, allocations: 149.2 MB / 0.5366 GB, free: 3.016 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002514/0.3923, allocations: 2.526 MB / 0.539 GB, free: 492 kB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.71e-05/0.3923, allocations: 0 / 0.539 GB, free: 492 kB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.3926, allocations: 31.81 kB / 0.5391 GB, free: 460 kB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008573/0.3934, allocations: 318.3 kB / 0.5394 GB, free: 140 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.3936, allocations: 51.75 kB / 0.5394 GB, free: 88 kB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.3937, allocations: 79.53 kB / 0.5395 GB, free: 8 kB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.223/0.6168, allocations: 12.06 kB / 0.5395 GB, free: 2.059 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.617, allocations: 27.47 kB / 0.5395 GB, free: 2.059 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.278e-05/0.6171, allocations: 28.42 kB / 0.5395 GB, free: 2.059 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.6171, allocations: 2.125 kB / 0.5395 GB, free: 2.059 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009913/0.6181, allocations: 362.7 kB / 0.5399 GB, free: 2.059 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 1.714e-05/0.6181, allocations: 11.33 kB / 0.5399 GB, free: 2.059 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.6182, allocations: 29.58 kB / 0.5399 GB, free: 2.059 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.6188, allocations: 289.9 kB / 0.5402 GB, free: 2.055 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.6188, allocations: 1.391 kB / 0.5402 GB, free: 2.055 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6188, allocations: 0 / 0.5402 GB, free: 2.055 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.6188, allocations: 0.5625 kB / 0.5402 GB, free: 2.055 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009047/0.6197, allocations: 442.6 kB / 0.5406 GB, free: 17.68 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.6197, allocations: 9 kB / 0.5406 GB, free: 17.68 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.6198, allocations: 42.22 kB / 0.5407 GB, free: 17.64 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006234/0.626, allocations: 456.4 kB / 0.5411 GB, free: 17.64 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.6262, allocations: 166 kB / 0.5413 GB, free: 17.44 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.6262, allocations: 9.25 kB / 0.5413 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.6263, allocations: 9.938 kB / 0.5413 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000798/0.6271, allocations: 299.7 kB / 0.5416 GB, free: 17.4 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.6272, allocations: 0.5312 kB / 0.5416 GB, free: 17.4 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.6272, allocations: 7.062 kB / 0.5416 GB, free: 17.4 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.6272, allocations: 1.875 kB / 0.5416 GB, free: 17.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008584/0.6281, allocations: 273.8 kB / 0.5418 GB, free: 17.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009681/0.6291, allocations: 428.3 kB / 0.5423 GB, free: 17.11 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009982/0.6301, allocations: 206.3 kB / 0.5425 GB, free: 17.09 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.6303, allocations: 70.53 kB / 0.5425 GB, free: 17.08 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.6303, allocations: 3.625 kB / 0.5425 GB, free: 17.08 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.6303, allocations: 37 kB / 0.5426 GB, free: 17.04 MB / 478.1 MB Notification: Performance of pre-optimization done (n=13): time 1.924e-06/0.6303, allocations: 0.9062 kB / 0.5426 GB, free: 17.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.001716/0.6321, allocations: 426.1 kB / 0.543 GB, free: 16.99 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.6321, allocations: 55.25 kB / 0.543 GB, free: 16.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.928e-05/0.6322, allocations: 102.7 kB / 0.5431 GB, free: 16.83 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.6322, allocations: 28.36 kB / 0.5431 GB, free: 16.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.739e-05/0.6323, allocations: 97.97 kB / 0.5432 GB, free: 16.71 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.6323, allocations: 58.16 kB / 0.5433 GB, free: 16.67 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.493e-05/0.6324, allocations: 48.92 kB / 0.5433 GB, free: 16.65 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.6325, allocations: 320.7 kB / 0.5436 GB, free: 16.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.6328, allocations: 75.41 kB / 0.5437 GB, free: 16.34 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.633, allocations: 116.4 kB / 0.5438 GB, free: 16.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.6335, allocations: 201.1 kB / 0.544 GB, free: 16.26 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.6336, allocations: 5.906 kB / 0.544 GB, free: 16.26 MB / 478.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006408/0.6342, allocations: 249 kB / 0.5443 GB, free: 16.22 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.6342, allocations: 5.875 kB / 0.5443 GB, free: 16.22 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.6342, allocations: 0 / 0.5443 GB, free: 16.22 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.6343, allocations: 2.531 kB / 0.5443 GB, free: 16.22 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/0.6346, allocations: 56.81 kB / 0.5443 GB, free: 16.22 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.6347, allocations: 4.75 kB / 0.5443 GB, free: 16.22 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.6349, allocations: 8.797 kB / 0.5443 GB, free: 16.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.6349, allocations: 17.62 kB / 0.5444 GB, free: 16.22 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.0001044/0.6351, allocations: 120.8 kB / 0.5445 GB, free: 16.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.294e-05/0.6351, allocations: 5.859 kB / 0.5445 GB, free: 16.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007603/0.6359, allocations: 288.5 kB / 0.5448 GB, free: 16.06 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.6359, allocations: 2.781 kB / 0.5448 GB, free: 16.06 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6359, allocations: 2 kB / 0.5448 GB, free: 16.06 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.6359, allocations: 0 / 0.5448 GB, free: 16.06 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.6371, allocations: 0.5812 MB / 0.5453 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.6371, allocations: 0 / 0.5453 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.6374, allocations: 43.52 kB / 0.5454 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.6375, allocations: 4 kB / 0.5454 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.6375, allocations: 9.859 kB / 0.5454 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.6375, allocations: 4 kB / 0.5454 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.6375, allocations: 10.25 kB / 0.5454 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006141/0.6381, allocations: 326.1 kB / 0.5457 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.21e-05/0.6382, allocations: 86.17 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.6382, allocations: 4.781 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.6385, allocations: 15.5 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.6385, allocations: 20 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.6386, allocations: 13.22 kB / 0.5458 GB, free: 15.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 3.628e-05/0.6386, allocations: 83.38 kB / 0.5459 GB, free: 15.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6386, allocations: 0 / 0.5459 GB, free: 15.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.639, allocations: 44.67 kB / 0.546 GB, free: 15.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0009802/0.6399, allocations: 0.8835 MB / 0.5468 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0006327/0.6406, allocations: 202.5 kB / 0.547 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6406, allocations: 0.9375 kB / 0.547 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.6409, allocations: 101.6 kB / 0.5471 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.6413, allocations: 44.2 kB / 0.5472 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000954/0.6423, allocations: 310 kB / 0.5475 GB, free: 14.53 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.6425, allocations: 0.6967 MB / 0.5481 GB, free: 13.83 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.6428, allocations: 53.69 kB / 0.5482 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.6429, allocations: 42.2 kB / 0.5482 GB, free: 13.82 MB / 478.1 MB Notification: Performance of SimCode: time 4.41e-07/0.6429, allocations: 1 kB / 0.5482 GB, free: 13.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.6619, allocations: 4.39 MB / 0.5525 GB, free: 13.39 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.275/7.937, allocations: 3.688 kB / 0.5525 GB, free: 13.39 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches