Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.001296/0.001296, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00146/0.00146, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.MoistAir1,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 43.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2264, allocations: 53.37 MB / 431.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.05345/0.2799, allocations: 45.52 MB / 476.6 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006045/0.2859, allocations: 4.705 MB / 481.3 MB, free: 4.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.2861, allocations: 7.938 kB / 481.3 MB, free: 4.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006883/0.2868, allocations: 230.7 kB / 481.5 MB, free: 4.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000612/0.2874, allocations: 377.9 kB / 481.9 MB, free: 3.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01713/0.3045, allocations: 7.128 MB / 489 MB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.3059, allocations: 1.111 MB / 490.2 MB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.3061, allocations: 93.84 kB / 490.2 MB, free: 11.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007175/0.3133, allocations: 3.603 MB / 493.8 MB, free: 7.824 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006289/0.3139, allocations: 430.5 kB / 494.3 MB, free: 7.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.179e-05/0.314, allocations: 60 kB / 494.3 MB, free: 7.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0173/0.3313, allocations: 9.635 MB / 0.4921 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.3317, allocations: 235.4 kB / 0.4924 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.3321, allocations: 271.1 kB / 0.4926 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.3423, allocations: 5.452 MB / 0.498 GB, free: 7.734 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3424, allocations: 0 / 0.498 GB, free: 7.734 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3424, allocations: 0 / 0.498 GB, free: 7.734 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.3424, allocations: 0 / 0.498 GB, free: 7.734 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002877/0.3452, allocations: 1.325 MB / 0.4992 GB, free: 6.375 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3453, allocations: 16.02 kB / 0.4993 GB, free: 6.359 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.3454, allocations: 90.53 kB / 0.4994 GB, free: 6.262 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.3457, allocations: 59.7 kB / 0.4994 GB, free: 6.203 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/0.3462, allocations: 296.4 kB / 0.4997 GB, free: 5.887 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.3463, allocations: 40.94 kB / 0.4997 GB, free: 5.848 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.435e-05/0.3464, allocations: 47.92 kB / 0.4998 GB, free: 5.801 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.3478, allocations: 0.8855 MB / 0.5006 GB, free: 4.836 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.3478, allocations: 0 / 0.5006 GB, free: 4.836 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.3479, allocations: 28 kB / 0.5007 GB, free: 4.809 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.3479, allocations: 8 kB / 0.5007 GB, free: 4.801 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3492, allocations: 0.7378 MB / 0.5014 GB, free: 4.062 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01297/0.3622, allocations: 3.669 MB / 0.505 GB, free: 356 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.3635, allocations: 0.5046 MB / 0.5055 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000363/0.3638, allocations: 242 kB / 0.5057 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/0.3749, allocations: 2.553 MB / 0.5082 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/0.3749, allocations: 43 kB / 0.5082 GB, free: 12.99 MB / 430.1 MB Notification: Performance of pre-optimization done (n=50): time 2.855e-06/0.3749, allocations: 3.938 kB / 0.5082 GB, free: 12.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=55): time 0.005864/0.3808, allocations: 1.901 MB / 0.5101 GB, free: 11.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.3808, allocations: 59.91 kB / 0.5102 GB, free: 10.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/0.3812, allocations: 320.1 kB / 0.5105 GB, free: 10.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.829e-05/0.3813, allocations: 37.7 kB / 0.5105 GB, free: 10.61 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.3815, allocations: 204.7 kB / 0.5107 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3816, allocations: 202.2 kB / 0.5109 GB, free: 10.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.3818, allocations: 122.2 kB / 0.511 GB, free: 10.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.382, allocations: 346.8 kB / 0.5113 GB, free: 9.738 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000393/0.3824, allocations: 237.2 kB / 0.5116 GB, free: 9.508 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006622/0.3831, allocations: 348.2 kB / 0.5119 GB, free: 9.137 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.3843, allocations: 0.5956 MB / 0.5125 GB, free: 8.508 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.3843, allocations: 0 / 0.5125 GB, free: 8.508 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001872/0.3861, allocations: 0.7519 MB / 0.5132 GB, free: 7.742 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3862, allocations: 11.94 kB / 0.5132 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3862, allocations: 0 / 0.5132 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000536/0.3867, allocations: 110.8 kB / 0.5133 GB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.3872, allocations: 127.8 kB / 0.5134 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002778/0.39, allocations: 3.261 MB / 0.5166 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003347/0.3904, allocations: 12 kB / 0.5166 GB, free: 3.961 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.941e-05/0.3904, allocations: 35.98 kB / 0.5167 GB, free: 3.926 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems 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,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002977/0.3907, allocations: 185.6 kB / 0.5169 GB, free: 3.734 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002914/0.391, allocations: 47.77 kB / 0.5169 GB, free: 3.688 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.3927, allocations: 0.823 MB / 0.5177 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.3927, allocations: 12 kB / 0.5177 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3927, allocations: 4 kB / 0.5177 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001151/0.3938, allocations: 0.7635 MB / 0.5185 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.3959, allocations: 1.176 MB / 0.5196 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3959, allocations: 0 / 0.5196 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004616/0.3964, allocations: 99.88 kB / 0.5197 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000934/0.3973, allocations: 156.6 kB / 0.5199 GB, free: 496 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.3974, allocations: 19.98 kB / 0.5199 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004487/0.3978, allocations: 0.6406 MB / 0.5205 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3978, allocations: 4.031 kB / 0.5205 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001655/0.3995, allocations: 0.9171 MB / 0.5214 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.425e-05/0.3996, allocations: 35.77 kB / 0.5214 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.277e-05/0.3997, allocations: 16.03 kB / 0.5214 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.4001, allocations: 23.98 kB / 0.5215 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.177e-05/0.4001, allocations: 32.38 kB / 0.5215 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.427e-05/0.4002, allocations: 31.97 kB / 0.5215 GB, free: 14.72 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002852/0.4005, allocations: 251 kB / 0.5218 GB, free: 14.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4005, allocations: 0 / 0.5218 GB, free: 14.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003655/0.4041, allocations: 1.345 MB / 0.5231 GB, free: 13.13 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007938/0.4121, allocations: 3.043 MB / 0.5261 GB, free: 10.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.4138, allocations: 0.7766 MB / 0.5268 GB, free: 9.242 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/0.4139, allocations: 0 / 0.5268 GB, free: 9.242 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005797/0.4144, allocations: 283.1 kB / 0.5271 GB, free: 8.965 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.4159, allocations: 269.3 kB / 0.5273 GB, free: 8.699 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009674/0.4256, allocations: 5.334 MB / 0.5326 GB, free: 3.184 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.4259, allocations: 225.6 kB / 0.5328 GB, free: 2.941 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005993/0.4265, allocations: 140.3 kB / 0.5329 GB, free: 2.801 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002946/0.4267, allocations: 155.4 kB / 0.533 GB, free: 2.648 MB / 446.1 MB Notification: Performance of SimCode: time 1.824e-06/0.4267, allocations: 0 / 0.533 GB, free: 2.648 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.28/0.7068, allocations: 52.52 MB / 0.5843 GB, free: 65.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/14.72, allocations: 14.81 kB / 0.5844 GB, free: 65.4 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.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: 29.270172516000457]