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.00185/0.00185, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002065/0.002065, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.384/1.384, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001434/0.001434, allocations: 51.88 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2361, allocations: 53.37 MB / 431.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.0413/0.2774, allocations: 37.98 MB / 469.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005869/0.2832, allocations: 4.627 MB / 474.5 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.2835, allocations: 11.94 kB / 474.6 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008896/0.2844, allocations: 298.1 kB / 474.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009097/0.2853, allocations: 493.3 kB / 475.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004226/0.2896, allocations: 1.654 MB / 477 MB, free: 9.648 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.2911, allocations: 1.292 MB / 478.3 MB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.2913, allocations: 119 kB / 478.4 MB, free: 8.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006791/0.292, allocations: 486.5 kB / 478.9 MB, free: 7.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.2926, allocations: 438.3 kB / 479.3 MB, free: 7.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-05/0.2927, allocations: 44 kB / 479.3 MB, free: 7.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.2942, allocations: 0.7571 MB / 480.1 MB, free: 6.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.2943, allocations: 139.5 kB / 480.2 MB, free: 6.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000307/0.2946, allocations: 282.9 kB / 480.5 MB, free: 6.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001511/0.2961, allocations: 1.055 MB / 481.6 MB, free: 5.047 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2961, allocations: 0 / 481.6 MB, free: 5.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2961, allocations: 0 / 481.6 MB, free: 5.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.2962, allocations: 4 kB / 481.6 MB, free: 5.043 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.00125/0.2974, allocations: 0.7075 MB / 482.3 MB, free: 4.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2974, allocations: 8.031 kB / 482.3 MB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.553e-05/0.2975, allocations: 13.19 kB / 482.3 MB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.694e-05/0.2976, allocations: 82.59 kB / 482.4 MB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005549/0.2981, allocations: 80.62 kB / 482.5 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005181/0.2986, allocations: 289.7 kB / 482.7 MB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.2987, allocations: 33.31 kB / 482.8 MB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.087e-05/0.2987, allocations: 40.12 kB / 482.8 MB, free: 3.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006987/0.2994, allocations: 467.6 kB / 483.3 MB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.2994, allocations: 3.938 kB / 483.3 MB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.229e-05/0.2995, allocations: 19.98 kB / 483.3 MB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.2995, allocations: 15.98 kB / 483.3 MB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.3, allocations: 311.7 kB / 483.6 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01318/0.3132, allocations: 5.495 MB / 489.1 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.3136, allocations: 254.5 kB / 489.3 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002558/0.3139, allocations: 147.2 kB / 489.5 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009877/0.3238, allocations: 2.66 MB / 492.2 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.148e-05/0.3238, allocations: 43.16 kB / 492.2 MB, free: 9.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.255e-06/0.3238, allocations: 0 / 492.2 MB, free: 9.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.01166/0.3355, allocations: 2.314 MB / 494.5 MB, free: 7.645 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.3355, allocations: 55.41 kB / 494.6 MB, free: 7.578 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000357/0.3359, allocations: 304.5 kB / 494.9 MB, free: 7.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.3359, allocations: 37.7 kB / 494.9 MB, free: 7.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.3361, allocations: 232.4 kB / 495.1 MB, free: 6.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3362, allocations: 166.6 kB / 495.3 MB, free: 6.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.3364, allocations: 98.3 kB / 495.4 MB, free: 6.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.3366, allocations: 346.8 kB / 495.7 MB, free: 6.383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.3368, allocations: 149.2 kB / 495.9 MB, free: 6.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.3372, allocations: 280.6 kB / 496.1 MB, free: 5.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006621/0.3379, allocations: 472.3 kB / 496.6 MB, free: 5.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3379, allocations: 0 / 496.6 MB, free: 5.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001119/0.339, allocations: 0.5956 MB / 497.2 MB, free: 4.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.339, allocations: 8 kB / 497.2 MB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.339, allocations: 4.469 kB / 497.2 MB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007848/0.3469, allocations: 1.848 MB / 499.1 MB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004193/0.3473, allocations: 107.8 kB / 499.2 MB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.3496, allocations: 2.462 MB / 0.4899 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.3499, allocations: 24.12 kB / 0.4899 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.35, allocations: 20 kB / 0.4899 GB, free: 172 kB / 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.0002745/0.3502, allocations: 177.8 kB / 0.4901 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.975e-05/0.3503, allocations: 39.77 kB / 0.4901 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.3516, allocations: 0.8763 MB / 0.491 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3516, allocations: 8 kB / 0.491 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.3516, allocations: 0 / 0.491 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001122/0.3527, allocations: 0.9747 MB / 0.4919 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.3548, allocations: 1.475 MB / 0.4934 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3548, allocations: 4 kB / 0.4934 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.3551, allocations: 71.89 kB / 0.4934 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003249/0.3584, allocations: 0.6296 MB / 0.4941 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.3584, allocations: 12.03 kB / 0.4941 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.3595, allocations: 1.304 MB / 0.4953 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3595, allocations: 3.938 kB / 0.4953 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.3612, allocations: 1.254 MB / 0.4966 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.081e-05/0.3613, allocations: 43.69 kB / 0.4966 GB, free: 9.055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.077e-05/0.3613, allocations: 12 kB / 0.4966 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.3615, allocations: 15.88 kB / 0.4966 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.3616, allocations: 27.94 kB / 0.4967 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.332e-05/0.3616, allocations: 19.98 kB / 0.4967 GB, free: 8.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002237/0.3619, allocations: 207.1 kB / 0.4969 GB, free: 8.777 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3619, allocations: 4 kB / 0.4969 GB, free: 8.773 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007337/0.3626, allocations: 231.7 kB / 0.4971 GB, free: 8.547 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.002451/0.365, allocations: 1.98 MB / 0.499 GB, free: 6.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.3663, allocations: 0.672 MB / 0.4997 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3663, allocations: 0 / 0.4997 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009091/0.3672, allocations: 428.3 kB / 0.5001 GB, free: 5.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.3684, allocations: 241 kB / 0.5003 GB, free: 5.195 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006269/0.3747, allocations: 4.497 MB / 0.5047 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.3752, allocations: 0.8323 MB / 0.5055 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003161/0.3755, allocations: 68.34 kB / 0.5056 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.3757, allocations: 155.4 kB / 0.5058 GB, free: 15.42 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3757, allocations: 8 kB / 0.5058 GB, free: 15.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04475/0.4205, allocations: 18.07 MB / 0.5234 GB, free: 13.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.58, allocations: 11.75 kB / 0.5234 GB, free: 13.54 MB / 446.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.032879163045436]