Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.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.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",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.001102/0.001102, allocations: 112.4 kB / 17.73 MB, free: 5.355 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.001137/0.001137, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.31/1.31, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001911/0.001911, allocations: 47.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08634, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.3345/0.4208, allocations: 150.6 MB / 0.5129 GB, free: 8.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.4222, allocations: 0.9645 MB / 0.5139 GB, free: 7.945 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.851e-05/0.4223, allocations: 4 kB / 0.5139 GB, free: 7.941 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.4226, allocations: 31.75 kB / 0.5139 GB, free: 7.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007591/0.4234, allocations: 250.6 kB / 0.5141 GB, free: 7.664 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004133/0.4238, allocations: 116.3 kB / 0.5143 GB, free: 7.551 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.4241, allocations: 171.3 kB / 0.5144 GB, free: 7.383 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.187e-05/0.4242, allocations: 4 kB / 0.5144 GB, free: 7.379 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.4244, allocations: 99.56 kB / 0.5145 GB, free: 7.281 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.4246, allocations: 47.83 kB / 0.5146 GB, free: 7.234 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.4246, allocations: 4 kB / 0.5146 GB, free: 7.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006254/0.4252, allocations: 263.7 kB / 0.5148 GB, free: 6.973 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.691e-05/0.4253, allocations: 15.98 kB / 0.5148 GB, free: 6.957 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.14e-05/0.4254, allocations: 51.73 kB / 0.5149 GB, free: 6.906 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005737/0.426, allocations: 281.8 kB / 0.5151 GB, free: 6.637 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.426, allocations: 0 / 0.5151 GB, free: 6.637 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.426, allocations: 7.875 kB / 0.5152 GB, free: 6.629 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.453e-06/0.426, allocations: 0 / 0.5152 GB, free: 6.629 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005792/0.4266, allocations: 415 kB / 0.5156 GB, free: 6.176 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.4267, allocations: 8.031 kB / 0.5156 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.438e-05/0.4267, allocations: 38.75 kB / 0.5156 GB, free: 6.121 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002152/0.4289, allocations: 188.6 kB / 0.5158 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.4292, allocations: 208.2 kB / 0.516 GB, free: 5.695 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.4292, allocations: 11.94 kB / 0.516 GB, free: 5.684 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.531e-05/0.4293, allocations: 11.95 kB / 0.516 GB, free: 5.672 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.4298, allocations: 220.1 kB / 0.5162 GB, free: 5.441 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.4298, allocations: 0 / 0.5162 GB, free: 5.441 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.309e-05/0.4299, allocations: 4 kB / 0.5162 GB, free: 5.438 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4299, allocations: 3.984 kB / 0.5162 GB, free: 5.434 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004329/0.4303, allocations: 175.8 kB / 0.5164 GB, free: 5.262 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.4314, allocations: 0.58 MB / 0.5169 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.4318, allocations: 142.4 kB / 0.5171 GB, free: 4.477 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.4319, allocations: 68.83 kB / 0.5172 GB, free: 4.406 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.4319, allocations: 8 kB / 0.5172 GB, free: 4.398 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.432, allocations: 31.44 kB / 0.5172 GB, free: 4.359 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.654e-06/0.432, allocations: 0 / 0.5172 GB, free: 4.359 MB / 446.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005572/0.4376, allocations: 1.3 MB / 0.5185 GB, free: 2.969 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.4376, allocations: 55.41 kB / 0.5185 GB, free: 2.902 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.825e-05/0.4377, allocations: 114.9 kB / 0.5186 GB, free: 2.781 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.4377, allocations: 25.7 kB / 0.5186 GB, free: 2.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/0.4378, allocations: 99.98 kB / 0.5187 GB, free: 2.648 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.65e-05/0.4379, allocations: 71.41 kB / 0.5188 GB, free: 2.578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.134e-05/0.438, allocations: 53.69 kB / 0.5189 GB, free: 2.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.757e-05/0.4381, allocations: 326.8 kB / 0.5192 GB, free: 2.191 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.4382, allocations: 67.91 kB / 0.5192 GB, free: 2.125 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.4384, allocations: 107.2 kB / 0.5193 GB, free: 2.008 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.4388, allocations: 191.2 kB / 0.5195 GB, free: 1.809 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.4388, allocations: 0 / 0.5195 GB, free: 1.809 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004893/0.4393, allocations: 254.2 kB / 0.5198 GB, free: 1.551 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.4393, allocations: 8 kB / 0.5198 GB, free: 1.543 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4393, allocations: 0 / 0.5198 GB, free: 1.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.4395, allocations: 52.92 kB / 0.5198 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.4398, allocations: 63.83 kB / 0.5199 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004103/0.4402, allocations: 0.5562 MB / 0.5204 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.4404, allocations: 12.52 kB / 0.5204 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.4405, allocations: 28.31 kB / 0.5205 GB, free: 0.8047 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.4406, allocations: 125.9 kB / 0.5206 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/0.4407, allocations: 11.94 kB / 0.5206 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007287/0.4414, allocations: 351.6 kB / 0.5209 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.4414, allocations: 3.938 kB / 0.5209 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4414, allocations: 0 / 0.5209 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.4414, allocations: 4 kB / 0.5209 GB, free: 312 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.4425, allocations: 0.6237 MB / 0.5215 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4425, allocations: 0 / 0.5215 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.4428, allocations: 55.95 kB / 0.5216 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.689e-05/0.4429, allocations: 28.78 kB / 0.5216 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.241e-05/0.443, allocations: 15.98 kB / 0.5216 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009321/0.4439, allocations: 1.367 MB / 0.523 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4439, allocations: 7.875 kB / 0.523 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006754/0.4446, allocations: 426.8 kB / 0.5234 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/0.4447, allocations: 97.08 kB / 0.5235 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.4447, allocations: 4 kB / 0.5235 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.4449, allocations: 8 kB / 0.5235 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.378e-05/0.445, allocations: 23.91 kB / 0.5235 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.3e-05/0.4451, allocations: 34.48 kB / 0.5236 GB, free: 13.37 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.244e-05/0.4451, allocations: 87.27 kB / 0.5236 GB, free: 13.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4451, allocations: 4 kB / 0.5236 GB, free: 13.28 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004015/0.4455, allocations: 71.94 kB / 0.5237 GB, free: 13.21 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001238/0.4468, allocations: 1.017 MB / 0.5247 GB, free: 12.15 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.4473, allocations: 212 kB / 0.5249 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4473, allocations: 0 / 0.5249 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.4477, allocations: 218.6 kB / 0.5251 GB, free: 11.72 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.4481, allocations: 48.31 kB / 0.5252 GB, free: 11.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.4508, allocations: 2.076 MB / 0.5272 GB, free: 9.48 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.4511, allocations: 0.7046 MB / 0.5279 GB, free: 8.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003025/0.4514, allocations: 73.39 kB / 0.5279 GB, free: 8.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.4516, allocations: 67.41 kB / 0.528 GB, free: 8.613 MB / 462.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4516, allocations: 0 / 0.528 GB, free: 8.613 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.4802, allocations: 7.315 MB / 0.5352 GB, free: 1.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.8, allocations: 11.98 kB / 0.5352 GB, free: 1.238 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches