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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001658/0.001658, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001953/0.001953, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 230.4 MB / 254.7 MB, free: 14.81 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 59.91 kB / 373.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1046, allocations: 53.37 MB / 427.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.232/0.3366, allocations: 37.71 MB / 464.8 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006149/0.3427, allocations: 4.593 MB / 469.4 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004237/0.3431, allocations: 9.688 kB / 469.4 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000913/0.344, allocations: 300.4 kB / 469.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.3451, allocations: 494.4 kB / 470.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005002/0.3501, allocations: 1.633 MB / 471.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.3521, allocations: 1.275 MB / 473.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.3524, allocations: 117.4 kB / 473.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008956/0.3533, allocations: 490.9 kB / 473.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000591/0.3539, allocations: 430.4 kB / 474.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.233e-05/0.3539, allocations: 49.25 kB / 474.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001772/0.3557, allocations: 0.7668 MB / 474.9 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.3559, allocations: 140.7 kB / 475 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003143/0.3562, allocations: 281.8 kB / 475.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001698/0.3579, allocations: 1.042 MB / 476.3 MB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3579, allocations: 0 / 476.3 MB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3579, allocations: 1 kB / 476.3 MB, free: 10.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.3579, allocations: 0 / 476.3 MB, free: 10.95 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.001327/0.3592, allocations: 0.795 MB / 477.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3593, allocations: 10.19 kB / 477.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.463e-05/0.3593, allocations: 10.09 kB / 477.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.517e-05/0.3594, allocations: 80.33 kB / 477.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005748/0.36, allocations: 78.47 kB / 477.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005448/0.3605, allocations: 348.1 kB / 477.7 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/0.3606, allocations: 29.66 kB / 477.7 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-05/0.3606, allocations: 39.08 kB / 477.7 MB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007227/0.3614, allocations: 478.3 kB / 478.2 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.3614, allocations: 5.188 kB / 478.2 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.3614, allocations: 18.25 kB / 478.2 MB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.3614, allocations: 10.19 kB / 478.2 MB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005247/0.362, allocations: 306.2 kB / 478.5 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.3759, allocations: 6.748 MB / 485.3 MB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004948/0.3764, allocations: 259.6 kB / 485.5 MB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.3766, allocations: 140.8 kB / 485.7 MB, free: 3.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01029/0.3869, allocations: 3.887 MB / 489.5 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.3869, allocations: 37.25 kB / 489.6 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 3.166e-06/0.3869, allocations: 5.078 kB / 489.6 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01197/0.3989, allocations: 2.46 MB / 492 MB, free: 14.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.3989, allocations: 59.41 kB / 492.1 MB, free: 14.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.3993, allocations: 303.2 kB / 492.4 MB, free: 14.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.3993, allocations: 41.7 kB / 492.4 MB, free: 14.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.3995, allocations: 224.5 kB / 492.7 MB, free: 13.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.3996, allocations: 166.6 kB / 492.8 MB, free: 13.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3998, allocations: 94.2 kB / 492.9 MB, free: 13.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3999, allocations: 346.8 kB / 493.3 MB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.4002, allocations: 157.1 kB / 493.4 MB, free: 13.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/0.4006, allocations: 279.7 kB / 493.7 MB, free: 12.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006539/0.4012, allocations: 472.2 kB / 494.1 MB, free: 12.3 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4012, allocations: 0 / 494.1 MB, free: 12.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001105/0.4023, allocations: 0.5956 MB / 494.7 MB, free: 11.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.4023, allocations: 4.625 kB / 494.7 MB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.4024, allocations: 7.984 kB / 494.7 MB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007869/0.4102, allocations: 1.851 MB / 496.6 MB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00042/0.4106, allocations: 103.9 kB / 496.7 MB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/0.4129, allocations: 2.571 MB / 499.3 MB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.4132, allocations: 12 kB / 499.3 MB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.4133, allocations: 24.12 kB / 499.3 MB, free: 6.949 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.0002508/0.4135, allocations: 177.6 kB / 499.5 MB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.032e-05/0.4136, allocations: 39.77 kB / 499.5 MB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.4149, allocations: 0.8476 MB / 0.4886 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.4149, allocations: 4 kB / 0.4886 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.4149, allocations: 0 / 0.4886 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001069/0.4159, allocations: 0.9689 MB / 0.4896 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/0.418, allocations: 1.483 MB / 0.491 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.418, allocations: 0 / 0.491 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.4183, allocations: 75.89 kB / 0.4911 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003272/0.4216, allocations: 0.6141 MB / 0.4917 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/0.4216, allocations: 15.92 kB / 0.4917 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.4226, allocations: 1.286 MB / 0.493 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4226, allocations: 7.938 kB / 0.493 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/0.4242, allocations: 1.221 MB / 0.4942 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.4244, allocations: 112.8 kB / 0.4943 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.616e-05/0.4244, allocations: 15.98 kB / 0.4943 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.4247, allocations: 7.938 kB / 0.4943 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.4247, allocations: 27.97 kB / 0.4943 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.4248, allocations: 19.98 kB / 0.4944 GB, free: 15.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002389/0.425, allocations: 209.9 kB / 0.4946 GB, free: 15.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.425, allocations: 0 / 0.4946 GB, free: 15.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008235/0.4258, allocations: 243.5 kB / 0.4948 GB, free: 15.32 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.002407/0.4282, allocations: 1.931 MB / 0.4967 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.4295, allocations: 0.676 MB / 0.4973 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4295, allocations: 0 / 0.4973 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009158/0.4304, allocations: 427.8 kB / 0.4977 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.4317, allocations: 242.6 kB / 0.498 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006037/0.4377, allocations: 4.492 MB / 0.5024 GB, free: 7.336 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.4382, allocations: 0.8324 MB / 0.5032 GB, free: 6.477 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002781/0.4384, allocations: 68.34 kB / 0.5032 GB, free: 6.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.4387, allocations: 159.4 kB / 0.5034 GB, free: 6.254 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4387, allocations: 0 / 0.5034 GB, free: 6.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/0.4804, allocations: 17.5 MB / 0.5205 GB, free: 4.871 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.79, allocations: 8.062 kB / 0.5205 GB, free: 4.863 MB / 430.1 MB " [Timeout remaining time 647] (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 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.256788821017835]