Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.001566/0.001566, allocations: 119 kB / 18.45 MB, free: 4.457 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.001577/0.001577, allocations: 189.2 kB / 21.39 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 207.6 MB / 231.8 MB, free: 4.215 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 55.92 kB / 342.3 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09167, allocations: 49.12 MB / 391.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.07655/0.1682, allocations: 66.03 MB / 457.4 MB, free: 6.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007557/0.1758, allocations: 5.472 MB / 462.9 MB, free: 1.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004498/0.1762, allocations: 11.94 kB / 462.9 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.1773, allocations: 358 kB / 463.2 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.1785, allocations: 0.5166 MB / 463.8 MB, free: 124 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2106/0.3891, allocations: 7.095 MB / 470.9 MB, free: 4.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.3909, allocations: 1.547 MB / 472.4 MB, free: 4.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002877/0.3912, allocations: 168.6 kB / 472.6 MB, free: 4.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009681/0.3921, allocations: 0.6302 MB / 473.2 MB, free: 4.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007701/0.3929, allocations: 0.6071 MB / 473.8 MB, free: 4.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.393, allocations: 85.41 kB / 473.9 MB, free: 4.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0172/0.4102, allocations: 10.27 MB / 484.2 MB, free: 4.035 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004604/0.4107, allocations: 320.4 kB / 484.5 MB, free: 4.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007116/0.4114, allocations: 444.8 kB / 484.9 MB, free: 4.035 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01283/0.4243, allocations: 5.933 MB / 490.8 MB, free: 1.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4243, allocations: 0 / 490.8 MB, free: 1.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4243, allocations: 0 / 490.8 MB, free: 1.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.4243, allocations: 0 / 490.8 MB, free: 1.855 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003419/0.4277, allocations: 1.6 MB / 492.4 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.4277, allocations: 10.69 kB / 492.5 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.4278, allocations: 107 kB / 492.6 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000391/0.4282, allocations: 90.16 kB / 492.6 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005765/0.4288, allocations: 453.4 kB / 493.1 MB, free: 424 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.4288, allocations: 43.38 kB / 493.1 MB, free: 420 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.328e-05/0.4289, allocations: 65.59 kB / 493.2 MB, free: 420 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.4304, allocations: 0.8063 MB / 494 MB, free: 228 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.4304, allocations: 6.812 kB / 494 MB, free: 224 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.424e-05/0.4305, allocations: 31.09 kB / 494 MB, free: 224 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.4305, allocations: 17.5 kB / 494.1 MB, free: 220 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.432, allocations: 1.028 MB / 495.1 MB, free: 44 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.4498, allocations: 12.78 MB / 0.496 GB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.4514, allocations: 0.7169 MB / 0.4967 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004771/0.4519, allocations: 384.4 kB / 0.497 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01628/0.4681, allocations: 12.24 MB / 0.509 GB, free: 5.625 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.749e-05/0.4682, allocations: 45.59 kB / 0.509 GB, free: 5.578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 2.625e-06/0.4682, allocations: 0 / 0.509 GB, free: 5.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=88): time 0.009779/0.478, allocations: 3.384 MB / 0.5123 GB, free: 2.551 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.478, allocations: 63.41 kB / 0.5124 GB, free: 2.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004231/0.4784, allocations: 356.5 kB / 0.5127 GB, free: 2.125 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.4786, allocations: 49.7 kB / 0.5128 GB, free: 2.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.4787, allocations: 243.8 kB / 0.513 GB, free: 1.832 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002652/0.479, allocations: 318.6 kB / 0.5133 GB, free: 1.523 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.4792, allocations: 158.6 kB / 0.5135 GB, free: 1.363 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4794, allocations: 362.8 kB / 0.5138 GB, free: 1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005892/0.48, allocations: 369.8 kB / 0.5142 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009551/0.481, allocations: 496.2 kB / 0.5146 GB, free: 128 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.4827, allocations: 0.9112 MB / 0.5155 GB, free: 15.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.4827, allocations: 4 kB / 0.5155 GB, free: 15.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002624/0.4854, allocations: 1.117 MB / 0.5166 GB, free: 14.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4854, allocations: 4 kB / 0.5166 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4854, allocations: 4 kB / 0.5166 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007859/0.4862, allocations: 166.9 kB / 0.5168 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000749/0.4869, allocations: 193 kB / 0.517 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003348/0.4903, allocations: 4.122 MB / 0.521 GB, free: 9.281 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005411/0.4908, allocations: 20 kB / 0.521 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.931e-05/0.4909, allocations: 43.98 kB / 0.5211 GB, free: 9.219 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {2, 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.0004133/0.4913, allocations: 219.4 kB / 0.5213 GB, free: 9.004 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004039/0.4917, allocations: 71.56 kB / 0.5213 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/0.4942, allocations: 1.281 MB / 0.5226 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.4942, allocations: 12 kB / 0.5226 GB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.4942, allocations: 0 / 0.5226 GB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001898/0.4961, allocations: 1.319 MB / 0.5239 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003339/0.4994, allocations: 1.966 MB / 0.5258 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.4994, allocations: 0 / 0.5258 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007081/0.5001, allocations: 165 kB / 0.526 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/0.5019, allocations: 297.3 kB / 0.5263 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.387e-05/0.5019, allocations: 27.98 kB / 0.5263 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000899/0.5028, allocations: 1.288 MB / 0.5275 GB, free: 2.352 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.5028, allocations: 4.031 kB / 0.5275 GB, free: 2.348 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.5055, allocations: 1.421 MB / 0.5289 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.5057, allocations: 124.8 kB / 0.529 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.5058, allocations: 24.06 kB / 0.5291 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005008/0.5063, allocations: 31.97 kB / 0.5291 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.5064, allocations: 56.42 kB / 0.5292 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-05/0.5064, allocations: 47.97 kB / 0.5292 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003217/0.5068, allocations: 287 kB / 0.5295 GB, free: 344 kB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5068, allocations: 0 / 0.5295 GB, free: 344 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.004119/0.5109, allocations: 1.407 MB / 0.5309 GB, free: 14.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008847/0.5197, allocations: 3.617 MB / 0.5344 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.522, allocations: 1.112 MB / 0.5355 GB, free: 10.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.522, allocations: 7.469 kB / 0.5355 GB, free: 10.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009095/0.5229, allocations: 470.3 kB / 0.5359 GB, free: 9.832 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.5248, allocations: 394.3 kB / 0.5363 GB, free: 9.445 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.5373, allocations: 7.063 MB / 0.5432 GB, free: 2.238 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000563/0.5379, allocations: 0.9167 MB / 0.5441 GB, free: 1.293 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007558/0.5387, allocations: 201.2 kB / 0.5443 GB, free: 1.094 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003534/0.539, allocations: 227.4 kB / 0.5445 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.539, allocations: 0 / 0.5445 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1119/0.6509, allocations: 58.4 MB / 0.6015 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.55, allocations: 0 / 0.6015 GB, free: 6.402 MB / 0.4981 GB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.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: 40.86112423380837]