Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001231/0.001231, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 61.88 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.09003, allocations: 50.52 MB / 356.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.1659/0.256, allocations: 27.36 MB / 384.2 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003606/0.2597, allocations: 4.216 MB / 388.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.2599, allocations: 3.5 kB / 388.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005473/0.2604, allocations: 179.6 kB / 388.6 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004787/0.2609, allocations: 321.5 kB / 388.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002901/0.2638, allocations: 1.236 MB / 390.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.2649, allocations: 1.344 MB / 391.5 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.2651, allocations: 80.12 kB / 391.6 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006274/0.2714, allocations: 4.204 MB / 395.8 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003057/0.2717, allocations: 295.9 kB / 396.1 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.249e-05/0.2717, allocations: 17.09 kB / 396.1 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.2728, allocations: 0.6943 MB / 396.8 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.156e-05/0.2729, allocations: 84.89 kB / 396.9 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.2731, allocations: 174.5 kB / 397.1 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007893/0.2739, allocations: 0.8378 MB / 397.9 MB, free: 44 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2739, allocations: 1.375 kB / 397.9 MB, free: 44 kB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2739, allocations: 3.938 kB / 397.9 MB, free: 40 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.2739, allocations: 4 kB / 397.9 MB, free: 36 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0008181/0.2747, allocations: 0.6426 MB / 398.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2748, allocations: 8.312 kB / 398.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.566e-05/0.2749, allocations: 68.69 kB / 398.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003911/0.2753, allocations: 57.44 kB / 398.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.2756, allocations: 286.6 kB / 399 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.2756, allocations: 20.41 kB / 399 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.2756, allocations: 33.88 kB / 399 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004523/0.2761, allocations: 338 kB / 399.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2761, allocations: 1.281 kB / 399.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.2762, allocations: 16.19 kB / 399.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.2762, allocations: 6.969 kB / 399.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003056/0.2765, allocations: 211.2 kB / 399.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.2881, allocations: 5.909 MB / 405.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.2883, allocations: 185.3 kB / 405.7 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.2885, allocations: 88.5 kB / 405.7 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009863/0.2983, allocations: 3.878 MB / 409.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.2984, allocations: 43.38 kB / 409.7 MB, free: 6.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.2984, allocations: 4 kB / 409.7 MB, free: 6.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.005847/0.3043, allocations: 1.41 MB / 411.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.3043, allocations: 59.34 kB / 411.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.3046, allocations: 262.5 kB / 411.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.3047, allocations: 29.7 kB / 411.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.3048, allocations: 184.1 kB / 411.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.652e-05/0.3049, allocations: 90.75 kB / 411.7 MB, free: 4.457 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.112e-05/0.305, allocations: 65.59 kB / 411.8 MB, free: 4.387 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3051, allocations: 342.8 kB / 412.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.3053, allocations: 87.97 kB / 412.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.3055, allocations: 182.9 kB / 412.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.3059, allocations: 315.5 kB / 412.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3059, allocations: 0 / 412.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006154/0.3065, allocations: 394.7 kB / 413.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.3065, allocations: 8 kB / 413.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3065, allocations: 7.922 kB / 413.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003872/0.3104, allocations: 0.9329 MB / 414 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.3107, allocations: 71.89 kB / 414.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.312, allocations: 1.879 MB / 415.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.3123, allocations: 27.89 kB / 416 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.3123, allocations: 19.98 kB / 416 MB, free: 15.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001348/0.3124, allocations: 149.8 kB / 416.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/0.3125, allocations: 39.62 kB / 416.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006533/0.3132, allocations: 0.4928 MB / 416.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3132, allocations: 4 kB / 416.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.3132, allocations: 0 / 416.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005892/0.3138, allocations: 0.7121 MB / 417.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.315, allocations: 0.9459 MB / 418.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.315, allocations: 0 / 418.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.3152, allocations: 43.97 kB / 418.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001594/0.3168, allocations: 316.3 kB / 418.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.3168, allocations: 15.98 kB / 418.7 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00043/0.3172, allocations: 0.6382 MB / 419.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.3173, allocations: 4.078 kB / 419.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000831/0.3181, allocations: 0.7209 MB / 420.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.415e-05/0.3182, allocations: 112.7 kB / 420.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.3182, allocations: 11.94 kB / 420.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.3184, allocations: 12 kB / 420.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.235e-05/0.3185, allocations: 15.97 kB / 420.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.3185, allocations: 16.06 kB / 420.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001565/0.3187, allocations: 182 kB / 420.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3187, allocations: 0 / 420.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005819/0.3193, allocations: 187.9 kB / 420.6 MB, free: 11.05 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001548/0.3208, allocations: 1.427 MB / 422 MB, free: 9.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006872/0.3215, allocations: 451.5 kB / 422.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3215, allocations: 4 kB / 422.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.322, allocations: 231.8 kB / 422.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008636/0.3229, allocations: 166.8 kB / 422.9 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/0.3267, allocations: 3.453 MB / 426.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.327, allocations: 0.776 MB / 427.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000211/0.3272, allocations: 46.95 kB / 427.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.3273, allocations: 107.4 kB / 427.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3273, allocations: 0 / 427.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.888/1.215, allocations: 12.85 MB / 440.1 MB, free: 7.453 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/1.216, allocations: 221.7 kB / 440.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.16/4.376, allocations: 7.375 kB / 440.3 MB, free: 7.195 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches