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.001258/0.001258, allocations: 101.5 kB / 21.21 MB, free: 0.5078 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.001332/0.001332, allocations: 191.6 kB / 24.49 MB, free: 3.711 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.332/1.332, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 179] 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.001412/0.001412, allocations: 43.92 kB / 371.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2269, allocations: 52.18 MB / 423.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03783/0.2647, allocations: 33.87 MB / 457.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00557/0.2703, allocations: 4.163 MB / 461.4 MB, free: 8.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004211/0.2707, allocations: 7.938 kB / 461.4 MB, free: 8.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008933/0.2716, allocations: 278.3 kB / 461.7 MB, free: 7.957 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.2726, allocations: 493.3 kB / 462.2 MB, free: 7.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00433/0.2769, allocations: 1.628 MB / 463.8 MB, free: 5.844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001575/0.2785, allocations: 1.304 MB / 465.1 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.2787, allocations: 119 kB / 465.2 MB, free: 4.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007833/0.2795, allocations: 498.4 kB / 465.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007122/0.2802, allocations: 438.3 kB / 466.1 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.155e-05/0.2803, allocations: 48 kB / 466.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.2819, allocations: 0.7648 MB / 466.9 MB, free: 2.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.2821, allocations: 139.6 kB / 467.1 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003145/0.2824, allocations: 247.1 kB / 467.3 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001421/0.2838, allocations: 1.052 MB / 468.4 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2838, allocations: 0 / 468.4 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2838, allocations: 0 / 468.4 MB, free: 1.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.2838, allocations: 4 kB / 468.4 MB, free: 1.242 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.001123/0.2849, allocations: 0.7074 MB / 469.1 MB, free: 0.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.285, allocations: 12.03 kB / 469.1 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.151e-05/0.285, allocations: 9.188 kB / 469.1 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.157e-05/0.2851, allocations: 74.72 kB / 469.2 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005672/0.2857, allocations: 84.62 kB / 469.2 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004803/0.2861, allocations: 285.7 kB / 469.5 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.353e-05/0.2862, allocations: 29.45 kB / 469.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.167e-05/0.2862, allocations: 40.12 kB / 469.6 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008155/0.2871, allocations: 0.6652 MB / 470.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.2871, allocations: 3.938 kB / 470.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.034e-05/0.2871, allocations: 20 kB / 470.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.2871, allocations: 8 kB / 470.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004778/0.2876, allocations: 303.7 kB / 470.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01295/0.3006, allocations: 4.635 MB / 475.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004968/0.3011, allocations: 257.7 kB / 475.5 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.3013, allocations: 140.8 kB / 475.6 MB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0104/0.3117, allocations: 2.696 MB / 478.3 MB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.3117, allocations: 46.36 kB / 478.4 MB, free: 6.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.984e-06/0.3117, allocations: 0 / 478.4 MB, free: 6.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01173/0.3235, allocations: 2.308 MB / 480.7 MB, free: 4.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.3235, allocations: 59.41 kB / 480.7 MB, free: 4.562 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.3238, allocations: 304.5 kB / 481 MB, free: 4.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/0.3239, allocations: 37.7 kB / 481.1 MB, free: 4.219 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.324, allocations: 224.5 kB / 481.3 MB, free: 3.992 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.3242, allocations: 174.5 kB / 481.4 MB, free: 3.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.3243, allocations: 94.34 kB / 481.5 MB, free: 3.723 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3245, allocations: 346.8 kB / 481.9 MB, free: 3.375 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.3247, allocations: 149.2 kB / 482 MB, free: 3.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/0.3251, allocations: 280.7 kB / 482.3 MB, free: 2.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006581/0.3257, allocations: 468.2 kB / 482.7 MB, free: 2.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3257, allocations: 4 kB / 482.8 MB, free: 2.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001076/0.3268, allocations: 0.5956 MB / 483.3 MB, free: 1.781 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3268, allocations: 4 kB / 483.4 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3268, allocations: 4 kB / 483.4 MB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008216/0.3351, allocations: 1.847 MB / 485.2 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004045/0.3355, allocations: 107.9 kB / 485.3 MB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.3376, allocations: 2.454 MB / 487.8 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.3378, allocations: 12 kB / 487.8 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.3379, allocations: 27.98 kB / 487.8 MB, free: 13.17 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.0002274/0.3381, allocations: 185.7 kB / 488 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-05/0.3382, allocations: 43.77 kB / 488 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.3394, allocations: 0.8724 MB / 488.9 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.3394, allocations: 15.92 kB / 488.9 MB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.3394, allocations: 0 / 488.9 MB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001048/0.3405, allocations: 0.9746 MB / 489.9 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.3424, allocations: 1.42 MB / 491.3 MB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3425, allocations: 0 / 491.3 MB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.3428, allocations: 83.92 kB / 491.4 MB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003414/0.3462, allocations: 0.6217 MB / 492 MB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.3462, allocations: 15.98 kB / 492 MB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.3472, allocations: 1.292 MB / 493.3 MB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.954e-06/0.3473, allocations: 3.938 kB / 493.3 MB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.3488, allocations: 1.25 MB / 494.6 MB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.938e-05/0.3489, allocations: 43.66 kB / 494.6 MB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.538e-05/0.3489, allocations: 11.94 kB / 494.6 MB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.3492, allocations: 16.03 kB / 494.6 MB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.3492, allocations: 23.95 kB / 494.7 MB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.683e-05/0.3493, allocations: 19.98 kB / 494.7 MB, free: 6.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002157/0.3495, allocations: 219.1 kB / 494.9 MB, free: 5.828 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3495, allocations: 0 / 494.9 MB, free: 5.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006822/0.3502, allocations: 227.7 kB / 495.1 MB, free: 5.605 MB / 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.002315/0.3525, allocations: 1.973 MB / 497.1 MB, free: 3.602 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.3537, allocations: 0.6758 MB / 497.8 MB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3537, allocations: 0 / 497.8 MB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009242/0.3546, allocations: 425.3 kB / 498.2 MB, free: 2.496 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.3557, allocations: 236.8 kB / 498.4 MB, free: 2.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005921/0.3617, allocations: 4.491 MB / 0.4911 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.3619, allocations: 237 kB / 0.4913 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002537/0.3621, allocations: 68.34 kB / 0.4914 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.3624, allocations: 167.4 kB / 0.4916 GB, free: 13.1 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3624, allocations: 0 / 0.4916 GB, free: 13.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0438/0.4062, allocations: 18.37 MB / 0.5095 GB, free: 11.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.58, allocations: 6.875 kB / 0.5095 GB, free: 11.04 MB / 430.1 MB " [Timeout remaining time 646] (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.768004602054134]