Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_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.001305/0.001305, allocations: 111.8 kB / 17.06 MB, free: 6.016 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.001393/0.001393, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001564, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2292, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.05785/0.2871, allocations: 50.54 MB / 450.8 MB, free: 6.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006352/0.2935, allocations: 5.199 MB / 456 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.2937, allocations: 8 kB / 456 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006902/0.2944, allocations: 242.6 kB / 456.2 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006106/0.2951, allocations: 361.9 kB / 456.6 MB, free: 272 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01644/0.3115, allocations: 7.112 MB / 463.7 MB, free: 9.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001366/0.3129, allocations: 1.095 MB / 464.8 MB, free: 8.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.3132, allocations: 137.6 kB / 464.9 MB, free: 7.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00655/0.3197, allocations: 3.605 MB / 468.5 MB, free: 4.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005565/0.3203, allocations: 398.7 kB / 468.9 MB, free: 3.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.3204, allocations: 60 kB / 469 MB, free: 3.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01763/0.3381, allocations: 9.92 MB / 478.9 MB, free: 9.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003302/0.3385, allocations: 227.4 kB / 479.1 MB, free: 9.699 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004336/0.3389, allocations: 303 kB / 479.4 MB, free: 9.402 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.35, allocations: 5.511 MB / 484.9 MB, free: 3.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.35, allocations: 0 / 484.9 MB, free: 3.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.35, allocations: 0 / 484.9 MB, free: 3.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.3501, allocations: 0 / 484.9 MB, free: 3.879 MB / 398.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.003113/0.3532, allocations: 1.406 MB / 486.3 MB, free: 2.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3532, allocations: 8.031 kB / 486.3 MB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.3533, allocations: 86.52 kB / 486.4 MB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.3537, allocations: 59.72 kB / 486.5 MB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.3542, allocations: 378.1 kB / 486.9 MB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.3542, allocations: 29 kB / 486.9 MB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.352e-05/0.3543, allocations: 47.98 kB / 486.9 MB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.3556, allocations: 0.5842 MB / 487.5 MB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3556, allocations: 7.922 kB / 487.5 MB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.3557, allocations: 20 kB / 487.5 MB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.3557, allocations: 16 kB / 487.6 MB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3571, allocations: 0.7378 MB / 488.3 MB, free: 408 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01687/0.374, allocations: 11.98 MB / 0.4885 GB, free: 2.348 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.3754, allocations: 0.5311 MB / 0.4891 GB, free: 1.809 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.3758, allocations: 258 kB / 0.4893 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/0.3912, allocations: 11.9 MB / 0.5009 GB, free: 3.352 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.3913, allocations: 39 kB / 0.501 GB, free: 3.305 MB / 430.1 MB Notification: Performance of pre-optimization done (n=50): time 2.044e-06/0.3913, allocations: 4 kB / 0.501 GB, free: 3.301 MB / 430.1 MB Notification: Performance of matching and sorting (n=55): time 0.005856/0.3972, allocations: 2.121 MB / 0.503 GB, free: 1.086 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.3972, allocations: 55.97 kB / 0.5031 GB, free: 1.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.3976, allocations: 318.9 kB / 0.5034 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.3977, allocations: 37.7 kB / 0.5034 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.3978, allocations: 204.7 kB / 0.5036 GB, free: 468 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.398, allocations: 202.2 kB / 0.5038 GB, free: 264 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.3982, allocations: 114.2 kB / 0.5039 GB, free: 144 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3984, allocations: 342.8 kB / 0.5043 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004089/0.3988, allocations: 248.9 kB / 0.5045 GB, free: 15.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006628/0.3995, allocations: 343.4 kB / 0.5048 GB, free: 15.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.4007, allocations: 0.6034 MB / 0.5054 GB, free: 14.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4007, allocations: 0 / 0.5054 GB, free: 14.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001839/0.4025, allocations: 0.7519 MB / 0.5061 GB, free: 13.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.4026, allocations: 7.938 kB / 0.5062 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.4026, allocations: 7.984 kB / 0.5062 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004643/0.4031, allocations: 110.7 kB / 0.5063 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004984/0.4036, allocations: 119.9 kB / 0.5064 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00275/0.4063, allocations: 3.48 MB / 0.5098 GB, free: 9.742 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.4066, allocations: 12 kB / 0.5098 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.145e-05/0.4067, allocations: 36.17 kB / 0.5098 GB, free: 9.695 MB / 446.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.0002633/0.407, allocations: 191.3 kB / 0.51 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.4073, allocations: 51.75 kB / 0.5101 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.4089, allocations: 0.8151 MB / 0.5108 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.4089, allocations: 8 kB / 0.5109 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.4089, allocations: 0 / 0.5109 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001172/0.4101, allocations: 0.7635 MB / 0.5116 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.4122, allocations: 1.294 MB / 0.5129 GB, free: 6.402 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.4122, allocations: 3.938 kB / 0.5129 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.4126, allocations: 95.89 kB / 0.513 GB, free: 6.305 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000898/0.4135, allocations: 156.6 kB / 0.5131 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.4136, allocations: 19.98 kB / 0.5131 GB, free: 6.129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004458/0.414, allocations: 0.6407 MB / 0.5138 GB, free: 5.465 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.4141, allocations: 7.969 kB / 0.5138 GB, free: 5.457 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.4157, allocations: 0.9056 MB / 0.5146 GB, free: 4.523 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.4159, allocations: 121 kB / 0.5148 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.948e-05/0.4159, allocations: 12 kB / 0.5148 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003782/0.4163, allocations: 23.97 kB / 0.5148 GB, free: 4.352 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.4164, allocations: 32.39 kB / 0.5148 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.125e-05/0.4165, allocations: 27.98 kB / 0.5149 GB, free: 4.293 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002861/0.4168, allocations: 253.9 kB / 0.5151 GB, free: 4.043 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4168, allocations: 3.938 kB / 0.5151 GB, free: 4.039 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003274/0.4201, allocations: 1.329 MB / 0.5164 GB, free: 2.707 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.007064/0.4271, allocations: 3.055 MB / 0.5194 GB, free: 15.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.4287, allocations: 0.8157 MB / 0.5202 GB, free: 14.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4287, allocations: 0 / 0.5202 GB, free: 14.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.4293, allocations: 291.2 kB / 0.5205 GB, free: 14.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/0.4307, allocations: 277.4 kB / 0.5207 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008775/0.4395, allocations: 5.316 MB / 0.5259 GB, free: 8.738 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.44, allocations: 0.8365 MB / 0.5267 GB, free: 7.875 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005283/0.4405, allocations: 140.2 kB / 0.5269 GB, free: 7.734 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.4408, allocations: 159.4 kB / 0.527 GB, free: 7.578 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4408, allocations: 0 / 0.527 GB, free: 7.578 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2812/0.722, allocations: 50.4 MB / 0.5762 GB, free: 101.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.85, allocations: 10.67 kB / 0.5762 GB, free: 101.9 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches