Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.MoistAir1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 104.2 kB / 17.58 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002361/0.002361, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.593/2.593, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB 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.002599/0.002599, allocations: 47.92 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1586, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.09918/0.2578, allocations: 50.69 MB / 378.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3308/0.5887, allocations: 5.183 MB / 383.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000458/0.5892, allocations: 6.75 kB / 383.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.5904, allocations: 245.5 kB / 383.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001371/0.5918, allocations: 363.3 kB / 383.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02029/0.6121, allocations: 6.758 MB / 390.6 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001945/0.6141, allocations: 1.091 MB / 391.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004023/0.6145, allocations: 142.6 kB / 391.8 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008288/0.6228, allocations: 3.587 MB / 395.4 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007304/0.6236, allocations: 404.2 kB / 395.8 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.6237, allocations: 60.72 kB / 395.9 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03023/0.654, allocations: 9.655 MB / 405.5 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005838/0.6546, allocations: 225.2 kB / 405.8 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000772/0.6554, allocations: 302.5 kB / 406.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02049/0.6759, allocations: 5.487 MB / 411.5 MB, free: 4.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.676, allocations: 4 kB / 411.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.676, allocations: 0 / 411.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.115e-05/0.6761, allocations: 0 / 411.5 MB, free: 4.453 MB / 318.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.004932/0.681, allocations: 1.35 MB / 412.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.6811, allocations: 8.031 kB / 412.9 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001296/0.6812, allocations: 86.53 kB / 413 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005948/0.6818, allocations: 59.52 kB / 413 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006265/0.6825, allocations: 358.5 kB / 413.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.6825, allocations: 37 kB / 413.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.873e-05/0.6826, allocations: 41.69 kB / 413.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002139/0.6848, allocations: 0.5873 MB / 414.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.6848, allocations: 1.031 kB / 414.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.078e-05/0.6849, allocations: 20 kB / 414.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.685, allocations: 8 kB / 414.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002306/0.6873, allocations: 0.7501 MB / 414.8 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02882/0.7161, allocations: 11.98 MB / 426.8 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.7183, allocations: 0.5271 MB / 427.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006157/0.719, allocations: 254.1 kB / 427.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02052/0.7395, allocations: 11.89 MB / 439.5 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.746e-05/0.7397, allocations: 46.19 kB / 439.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.896e-06/0.7397, allocations: 3.938 kB / 439.5 MB, free: 4.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.01042/0.7501, allocations: 2.125 MB / 441.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.7502, allocations: 59.95 kB / 441.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006303/0.7509, allocations: 318.8 kB / 442 MB, free: 1.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.751, allocations: 37.7 kB / 442.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.7512, allocations: 200.4 kB / 442.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.7515, allocations: 191.5 kB / 442.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003261/0.7518, allocations: 118.1 kB / 442.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.7521, allocations: 346.8 kB / 442.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007051/0.7528, allocations: 237 kB / 443.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.754, allocations: 338.3 kB / 443.5 MB, free: 328 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0022/0.7562, allocations: 0.6089 MB / 444.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.7562, allocations: 0 / 444.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003576/0.7598, allocations: 0.7505 MB / 444.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.7599, allocations: 12.22 kB / 444.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.7599, allocations: 4 kB / 444.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009075/0.7608, allocations: 102.5 kB / 444.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000875/0.7617, allocations: 123.1 kB / 445.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004051/0.7658, allocations: 3.47 MB / 448.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000623/0.7665, allocations: 12 kB / 448.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/0.7667, allocations: 35.98 kB / 448.6 MB, free: 10.9 MB / 366.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.0005346/0.7672, allocations: 201.8 kB / 448.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006955/0.7679, allocations: 43.62 kB / 448.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002875/0.7708, allocations: 0.8178 MB / 449.6 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.7708, allocations: 8 kB / 449.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.7709, allocations: 3.984 kB / 449.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002025/0.7729, allocations: 0.7583 MB / 450.4 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003558/0.7765, allocations: 1.299 MB / 451.7 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.7765, allocations: 0 / 451.7 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007314/0.7773, allocations: 106.4 kB / 451.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001653/0.7789, allocations: 148.5 kB / 451.9 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.55e-05/0.779, allocations: 23.98 kB / 452 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006326/0.7797, allocations: 0.6368 MB / 452.6 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.7797, allocations: 0 / 452.6 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.7827, allocations: 0.9152 MB / 453.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.7829, allocations: 108.7 kB / 453.6 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.7831, allocations: 15.98 kB / 453.6 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000731/0.7838, allocations: 19.98 kB / 453.7 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.7839, allocations: 39.48 kB / 453.7 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.7841, allocations: 23.98 kB / 453.7 MB, free: 5.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004926/0.7846, allocations: 257.9 kB / 454 MB, free: 5.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7846, allocations: 4 kB / 454 MB, free: 5.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.007482/0.7921, allocations: 1.304 MB / 455.3 MB, free: 3.988 MB / 366.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.01472/0.8069, allocations: 3.052 MB / 458.3 MB, free: 1.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003097/0.81, allocations: 0.8576 MB / 459.2 MB, free: 176 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.81, allocations: 0 / 459.2 MB, free: 176 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007282/0.8108, allocations: 285.7 kB / 459.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002301/0.8131, allocations: 279.6 kB / 459.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01794/0.8311, allocations: 5.348 MB / 465.1 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.8323, allocations: 0.8403 MB / 465.9 MB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001421/0.8338, allocations: 144.2 kB / 466.1 MB, free: 9.148 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004805/0.8343, allocations: 155.4 kB / 466.2 MB, free: 8.996 MB / 382.1 MB Notification: Performance of SimCode: time 2.495e-06/0.8343, allocations: 0 / 466.2 MB, free: 8.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1666/1.001, allocations: 51.71 MB / 0.5058 GB, free: 5.188 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.9/22.9, allocations: 11.64 kB / 0.5058 GB, free: 5.176 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches