Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 105.1 kB / 21.22 MB, free: 0.6211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001966/0.001966, allocations: 211.8 kB / 24.52 MB, free: 3.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 43.92 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2339, allocations: 53.37 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03633/0.2702, allocations: 33.96 MB / 465.8 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00534/0.2756, allocations: 4.175 MB / 470 MB, free: 392 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/0.2758, allocations: 7.938 kB / 470 MB, free: 384 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007388/0.2765, allocations: 274.2 kB / 470.3 MB, free: 108 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008213/0.2773, allocations: 497.3 kB / 470.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003954/0.2813, allocations: 1.635 MB / 472.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.2828, allocations: 1.292 MB / 473.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.2831, allocations: 126.9 kB / 473.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006036/0.2837, allocations: 490.5 kB / 474.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005472/0.2842, allocations: 426.3 kB / 474.7 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.019e-05/0.2843, allocations: 51.94 kB / 474.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.2857, allocations: 0.7571 MB / 475.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.2859, allocations: 139.5 kB / 475.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002795/0.2861, allocations: 235.2 kB / 475.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.2875, allocations: 1.063 MB / 477 MB, free: 9.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2875, allocations: 4 kB / 477 MB, free: 9.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2875, allocations: 0 / 477 MB, free: 9.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2875, allocations: 4 kB / 477 MB, free: 9.402 MB / 382.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.001143/0.2887, allocations: 0.7141 MB / 477.7 MB, free: 8.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.2887, allocations: 8.031 kB / 477.7 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.165e-05/0.2888, allocations: 13.19 kB / 477.7 MB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.775e-05/0.2888, allocations: 78.7 kB / 477.8 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005753/0.2894, allocations: 84.62 kB / 477.9 MB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.2899, allocations: 285.7 kB / 478.1 MB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.29, allocations: 29.38 kB / 478.2 MB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.166e-05/0.29, allocations: 44.06 kB / 478.2 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008643/0.2909, allocations: 0.6574 MB / 478.9 MB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.2909, allocations: 0 / 478.9 MB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.883e-05/0.291, allocations: 16 kB / 478.9 MB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.291, allocations: 16 kB / 478.9 MB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004865/0.2915, allocations: 303.7 kB / 479.2 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01293/0.3044, allocations: 4.643 MB / 483.8 MB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.3049, allocations: 258.5 kB / 484.1 MB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.3051, allocations: 132.8 kB / 484.2 MB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/0.3154, allocations: 2.692 MB / 486.9 MB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.3155, allocations: 34.56 kB / 486.9 MB, free: 15.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.144e-06/0.3155, allocations: 4 kB / 486.9 MB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.0122/0.3277, allocations: 2.31 MB / 489.3 MB, free: 12.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.3277, allocations: 59.34 kB / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003922/0.3281, allocations: 300.5 kB / 489.6 MB, free: 12.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.3281, allocations: 41.64 kB / 489.7 MB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.3284, allocations: 236.5 kB / 489.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.3285, allocations: 170.6 kB / 490 MB, free: 11.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.3287, allocations: 94.3 kB / 490.1 MB, free: 11.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.3289, allocations: 350.8 kB / 490.5 MB, free: 11.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.3291, allocations: 153.2 kB / 490.6 MB, free: 11.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000388/0.3295, allocations: 272.7 kB / 490.9 MB, free: 11.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007339/0.3303, allocations: 476.2 kB / 491.4 MB, free: 10.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3303, allocations: 0 / 491.4 MB, free: 10.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001167/0.3314, allocations: 0.5918 MB / 492 MB, free: 9.938 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3315, allocations: 8.453 kB / 492 MB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3315, allocations: 4 kB / 492 MB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008418/0.3399, allocations: 1.854 MB / 493.8 MB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.3403, allocations: 107.8 kB / 493.9 MB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.3426, allocations: 2.45 MB / 496.4 MB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.3429, allocations: 12 kB / 496.4 MB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.894e-05/0.343, allocations: 24.25 kB / 496.4 MB, free: 5.324 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.0002406/0.3432, allocations: 181.6 kB / 496.6 MB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.638e-05/0.3433, allocations: 39.77 kB / 496.6 MB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.3446, allocations: 0.8766 MB / 497.5 MB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.3446, allocations: 8 kB / 497.5 MB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3446, allocations: 4 kB / 497.5 MB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001106/0.3457, allocations: 0.9784 MB / 498.5 MB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.3477, allocations: 1.42 MB / 499.9 MB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3478, allocations: 0 / 499.9 MB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.3481, allocations: 75.89 kB / 500 MB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003405/0.3515, allocations: 0.6218 MB / 0.4889 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/0.3515, allocations: 12 kB / 0.4889 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.3526, allocations: 1.3 MB / 0.4902 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.3526, allocations: 3.938 kB / 0.4902 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.3543, allocations: 1.247 MB / 0.4914 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.782e-05/0.3543, allocations: 43.69 kB / 0.4914 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.431e-05/0.3544, allocations: 15.94 kB / 0.4914 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.3546, allocations: 8 kB / 0.4914 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.047e-05/0.3547, allocations: 40 kB / 0.4915 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-05/0.3547, allocations: 19.98 kB / 0.4915 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002343/0.355, allocations: 207.1 kB / 0.4917 GB, free: 13.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.355, allocations: 0 / 0.4917 GB, free: 13.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007389/0.3557, allocations: 231.7 kB / 0.4919 GB, free: 13.77 MB / 414.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.002428/0.3581, allocations: 1.972 MB / 0.4938 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.3594, allocations: 0.6759 MB / 0.4945 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3594, allocations: 4 kB / 0.4945 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009284/0.3603, allocations: 424.3 kB / 0.4949 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.3615, allocations: 236.6 kB / 0.4951 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006109/0.3676, allocations: 4.509 MB / 0.4995 GB, free: 5.723 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.3678, allocations: 237.3 kB / 0.4998 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003025/0.3681, allocations: 72.33 kB / 0.4998 GB, free: 5.395 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.3684, allocations: 155.4 kB / 0.5 GB, free: 5.242 MB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3684, allocations: 0 / 0.5 GB, free: 5.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04537/0.4137, allocations: 18.35 MB / 0.5179 GB, free: 3.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.75, allocations: 6.75 kB / 0.5179 GB, free: 3.211 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 20.02619359199889]