Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.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.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2559, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03465/0.2906, allocations: 37.52 MB / 446.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005324/0.296, allocations: 4.584 MB / 450.9 MB, free: 7.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004643/0.2965, allocations: 4 kB / 450.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008935/0.2974, allocations: 294.2 kB / 451.2 MB, free: 6.996 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.2984, allocations: 485.3 kB / 451.6 MB, free: 6.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004358/0.3028, allocations: 1.646 MB / 453.3 MB, free: 4.871 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.3043, allocations: 1.272 MB / 454.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.3045, allocations: 158.6 kB / 454.7 MB, free: 3.434 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005604/0.3051, allocations: 474.5 kB / 455.2 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004536/0.3056, allocations: 414.3 kB / 455.6 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.277e-05/0.3056, allocations: 48 kB / 455.6 MB, free: 2.516 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.3071, allocations: 0.7532 MB / 456.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.3073, allocations: 139.6 kB / 456.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002808/0.3075, allocations: 274.9 kB / 456.8 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.3088, allocations: 1.048 MB / 457.8 MB, free: 312 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3088, allocations: 0 / 457.8 MB, free: 312 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3088, allocations: 0 / 457.8 MB, free: 312 kB / 366.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.3088, allocations: 0 / 457.8 MB, free: 312 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001068/0.3099, allocations: 0.78 MB / 458.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3099, allocations: 12.03 kB / 458.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.721e-05/0.31, allocations: 74.72 kB / 458.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005515/0.3106, allocations: 84.34 kB / 458.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004878/0.3111, allocations: 331.5 kB / 459.1 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.3111, allocations: 37.36 kB / 459.1 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.3112, allocations: 40.28 kB / 459.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006388/0.3118, allocations: 475.4 kB / 459.6 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.3118, allocations: 4 kB / 459.6 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.3119, allocations: 24 kB / 459.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.3119, allocations: 8 kB / 459.7 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000441/0.3124, allocations: 303.7 kB / 460 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0133/0.3257, allocations: 6.746 MB / 466.7 MB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/0.3262, allocations: 274.4 kB / 467 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.3264, allocations: 152.8 kB / 467.1 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01078/0.3372, allocations: 3.889 MB / 471 MB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.3372, allocations: 34.56 kB / 471.1 MB, free: 2.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.124e-06/0.3372, allocations: 0 / 471.1 MB, free: 2.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.0121/0.3493, allocations: 2.457 MB / 473.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.3494, allocations: 59.41 kB / 473.6 MB, free: 15.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003525/0.3498, allocations: 299.2 kB / 473.9 MB, free: 15.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/0.3498, allocations: 37.7 kB / 473.9 MB, free: 15.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.35, allocations: 224 kB / 474.1 MB, free: 14.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.3501, allocations: 169.6 kB / 474.3 MB, free: 14.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.3503, allocations: 98.14 kB / 474.4 MB, free: 14.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3504, allocations: 342.8 kB / 474.7 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.3506, allocations: 157.1 kB / 474.9 MB, free: 14.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.351, allocations: 275.7 kB / 475.1 MB, free: 13.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006133/0.3516, allocations: 476.2 kB / 475.6 MB, free: 13.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3516, allocations: 0 / 475.6 MB, free: 13.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001054/0.3527, allocations: 0.5839 MB / 476.2 MB, free: 12.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3527, allocations: 11.98 kB / 476.2 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3527, allocations: 4 kB / 476.2 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008368/0.3611, allocations: 1.848 MB / 478.1 MB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.3615, allocations: 107.8 kB / 478.2 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.3635, allocations: 2.564 MB / 480.7 MB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002961/0.3638, allocations: 15.98 kB / 480.7 MB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.726e-05/0.3639, allocations: 24 kB / 480.8 MB, free: 7.895 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,1), (2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002235/0.3641, allocations: 185.7 kB / 480.9 MB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.491e-05/0.3642, allocations: 39.53 kB / 481 MB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.3654, allocations: 0.8513 MB / 481.8 MB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.3655, allocations: 20.02 kB / 481.9 MB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-06/0.3655, allocations: 0 / 481.9 MB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009732/0.3664, allocations: 0.9573 MB / 482.8 MB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.3685, allocations: 1.49 MB / 484.3 MB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.3685, allocations: 3.984 kB / 484.3 MB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/0.3688, allocations: 71.91 kB / 484.4 MB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003404/0.3722, allocations: 0.6218 MB / 485 MB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.3723, allocations: 15.94 kB / 485 MB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.3733, allocations: 1.284 MB / 486.3 MB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3733, allocations: 3.938 kB / 486.3 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.3748, allocations: 1.209 MB / 487.5 MB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.3749, allocations: 120.6 kB / 487.6 MB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.316e-05/0.375, allocations: 16 kB / 487.6 MB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.3752, allocations: 11.94 kB / 487.7 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.3753, allocations: 27.95 kB / 487.7 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.3753, allocations: 19.98 kB / 487.7 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002211/0.3755, allocations: 206 kB / 487.9 MB, free: 500 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3755, allocations: 0 / 487.9 MB, free: 500 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007215/0.3763, allocations: 231.9 kB / 488.1 MB, free: 268 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002234/0.3785, allocations: 1.947 MB / 490.1 MB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.3797, allocations: 0.6948 MB / 490.8 MB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.3797, allocations: 0 / 490.8 MB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008707/0.3806, allocations: 432.2 kB / 491.2 MB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.3817, allocations: 240.3 kB / 491.4 MB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005939/0.3877, allocations: 4.467 MB / 495.9 MB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.3881, allocations: 0.844 MB / 496.7 MB, free: 7.387 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002965/0.3884, allocations: 76.33 kB / 496.8 MB, free: 7.312 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.3886, allocations: 155.4 kB / 497 MB, free: 7.16 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3886, allocations: 0 / 497 MB, free: 7.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04212/0.4308, allocations: 17.57 MB / 0.5025 GB, free: 5.723 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.13, allocations: 15.52 kB / 0.5025 GB, free: 5.711 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches