Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 115.7 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 194.5 kB / 21.43 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 43.94 kB / 366.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09219/0.09365, allocations: 52.15 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.2088/0.3024, allocations: 37.59 MB / 456.1 MB, free: 6.902 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004169/0.3066, allocations: 4.594 MB / 460.7 MB, free: 6.773 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.3068, allocations: 9.75 kB / 460.7 MB, free: 6.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006814/0.3075, allocations: 297 kB / 461 MB, free: 6.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007327/0.3082, allocations: 492.7 kB / 461.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003828/0.3121, allocations: 1.649 MB / 463.1 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.3134, allocations: 1.279 MB / 464.4 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.3136, allocations: 126.6 kB / 464.5 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005794/0.3142, allocations: 484.3 kB / 465 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004716/0.3147, allocations: 431.2 kB / 465.4 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.665e-05/0.3147, allocations: 45.5 kB / 465.5 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001441/0.3162, allocations: 0.7566 MB / 466.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.3163, allocations: 142 kB / 466.3 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.3165, allocations: 272.9 kB / 466.6 MB, free: 6.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.3178, allocations: 1.059 MB / 467.7 MB, free: 5.988 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3178, allocations: 5.344 kB / 467.7 MB, free: 5.984 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3178, allocations: 0 / 467.7 MB, free: 5.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.3178, allocations: 0.75 kB / 467.7 MB, free: 5.984 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001016/0.3188, allocations: 0.7869 MB / 468.5 MB, free: 5.453 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3189, allocations: 13.45 kB / 468.5 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.36e-05/0.3189, allocations: 11.47 kB / 468.5 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.558e-05/0.319, allocations: 74.83 kB / 468.6 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005449/0.3195, allocations: 87.64 kB / 468.7 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.32, allocations: 344.1 kB / 469 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.32, allocations: 27.47 kB / 469 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.272e-05/0.32, allocations: 40.38 kB / 469.1 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/0.3206, allocations: 476 kB / 469.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.3207, allocations: 6.891 kB / 469.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.105e-05/0.3207, allocations: 20.84 kB / 469.5 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.3207, allocations: 10.34 kB / 469.6 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004401/0.3211, allocations: 303.5 kB / 469.9 MB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.3329, allocations: 6.731 MB / 476.6 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.3334, allocations: 265.8 kB / 476.8 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002122/0.3336, allocations: 135.9 kB / 477 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009976/0.3436, allocations: 3.903 MB / 480.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.3436, allocations: 38.66 kB / 480.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.994e-06/0.3436, allocations: 0 / 480.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01198/0.3556, allocations: 2.446 MB / 483.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.3556, allocations: 56.91 kB / 483.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003846/0.356, allocations: 304.9 kB / 483.7 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.492e-05/0.3561, allocations: 31.98 kB / 483.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.3562, allocations: 228 kB / 484 MB, free: 13.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.3564, allocations: 168.2 kB / 484.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.3565, allocations: 101.6 kB / 484.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.3567, allocations: 351.3 kB / 484.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.357, allocations: 153.8 kB / 484.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003594/0.3573, allocations: 283.6 kB / 485 MB, free: 12.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.3579, allocations: 466.9 kB / 485.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.3579, allocations: 5.312 kB / 485.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00106/0.359, allocations: 0.5876 MB / 486.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.359, allocations: 7.219 kB / 486.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.359, allocations: 4.344 kB / 486.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007837/0.3669, allocations: 1.85 MB / 487.9 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.3673, allocations: 113.6 kB / 488 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.3694, allocations: 2.561 MB / 490.6 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003377/0.3698, allocations: 16.09 kB / 490.6 MB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.3698, allocations: 27.05 kB / 490.6 MB, free: 8.141 MB / 382.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.0002394/0.37, allocations: 175.2 kB / 490.8 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.342e-05/0.3701, allocations: 42.23 kB / 490.8 MB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.3713, allocations: 0.8497 MB / 491.7 MB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.3713, allocations: 13.33 kB / 491.7 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.3713, allocations: 0 / 491.7 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001045/0.3723, allocations: 0.9543 MB / 492.7 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.3743, allocations: 1.487 MB / 494.1 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3743, allocations: 0 / 494.1 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.3746, allocations: 83.11 kB / 494.2 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003232/0.3779, allocations: 0.6177 MB / 494.8 MB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.3779, allocations: 17.22 kB / 494.9 MB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.3789, allocations: 1.28 MB / 496.1 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.3789, allocations: 6.438 kB / 496.1 MB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.3805, allocations: 1.22 MB / 497.4 MB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.3806, allocations: 122.5 kB / 497.5 MB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.548e-05/0.3807, allocations: 10.44 kB / 497.5 MB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.3809, allocations: 16.34 kB / 497.5 MB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.588e-05/0.381, allocations: 29.66 kB / 497.5 MB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.381, allocations: 18.73 kB / 497.6 MB, free: 3.273 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.3812, allocations: 211.3 kB / 497.8 MB, free: 3.137 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3812, allocations: 0 / 497.8 MB, free: 3.137 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009163/0.3821, allocations: 234.9 kB / 498 MB, free: 3.094 MB / 382.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.002444/0.3846, allocations: 1.935 MB / 499.9 MB, free: 1.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.3859, allocations: 0.672 MB / 0.4889 GB, free: 1.074 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3859, allocations: 0 / 0.4889 GB, free: 1.074 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009203/0.3868, allocations: 416.3 kB / 0.4893 GB, free: 0.668 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.3881, allocations: 247.4 kB / 0.4895 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006203/0.3943, allocations: 4.496 MB / 0.4939 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.3947, allocations: 0.8439 MB / 0.4947 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002768/0.395, allocations: 68.34 kB / 0.4948 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.3952, allocations: 159.4 kB / 0.4949 GB, free: 10.66 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3952, allocations: 0 / 0.4949 GB, free: 10.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04072/0.4359, allocations: 17.5 MB / 0.512 GB, free: 9.344 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.78, allocations: 7.938 kB / 0.512 GB, free: 9.336 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.1015845760121]