Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 94.91 kB / 16.65 MB, free: 6.27 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.001213/0.001213, allocations: 180.4 kB / 17.56 MB, free: 5.883 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.502/1.502, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002533/0.0002533, allocations: 5.969 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09263/0.0929, allocations: 50.42 MB / 351.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.6235/0.7164, allocations: 201.7 MB / 0.5406 GB, free: 1.152 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.7286, allocations: 10.63 MB / 0.551 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.7299, allocations: 30.08 kB / 0.551 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.7311, allocations: 410.4 kB / 0.5514 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007783/0.7389, allocations: 2.817 MB / 0.5541 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007423/0.7464, allocations: 2.317 MB / 0.5564 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004727/0.7511, allocations: 3.772 MB / 0.5601 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001296/0.7524, allocations: 0.6631 MB / 0.5607 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006394/0.7588, allocations: 2.493 MB / 0.5632 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.7614, allocations: 1.081 MB / 0.5642 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002141/0.7616, allocations: 62.81 kB / 0.5643 GB, free: 0.543 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01083/0.7725, allocations: 6.45 MB / 0.5706 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009679/0.7735, allocations: 490.6 kB / 0.571 GB, free: 15.63 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.7745, allocations: 0.6023 MB / 0.5716 GB, free: 15.55 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01074/0.7852, allocations: 4.68 MB / 0.5762 GB, free: 13.81 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.7853, allocations: 0 / 0.5762 GB, free: 13.81 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7853, allocations: 0 / 0.5762 GB, free: 13.81 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.7853, allocations: 3.938 kB / 0.5762 GB, free: 13.81 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.004272/0.7896, allocations: 1.822 MB / 0.578 GB, free: 12.56 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.7896, allocations: 10.47 kB / 0.578 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.79, allocations: 134.8 kB / 0.5781 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.7911, allocations: 0.6802 MB / 0.5788 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.7912, allocations: 134.2 kB / 0.5789 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.7913, allocations: 88.72 kB / 0.579 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.7934, allocations: 1.451 MB / 0.5804 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.7934, allocations: 14.22 kB / 0.5804 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.7936, allocations: 36.31 kB / 0.5805 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.401e-05/0.7937, allocations: 73.86 kB / 0.5805 GB, free: 11.53 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/0.7957, allocations: 1.46 MB / 0.582 GB, free: 11.29 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.007691/0.8034, allocations: 6.337 MB / 0.5881 GB, free: 7.102 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.8052, allocations: 0.9908 MB / 0.5891 GB, free: 6.922 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007392/0.8059, allocations: 0.5256 MB / 0.5896 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001303/0.8072, allocations: 1.797 MB / 0.5914 GB, free: 4.488 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.8073, allocations: 50.28 kB / 0.5914 GB, free: 4.441 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004883/0.8078, allocations: 109.2 kB / 0.5915 GB, free: 4.352 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 2.575e-06/0.8078, allocations: 0 / 0.5915 GB, free: 4.352 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.0167/0.8245, allocations: 4.949 MB / 0.5964 GB, free: 15.76 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.8246, allocations: 111.8 kB / 0.5965 GB, free: 15.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.8256, allocations: 0.7738 MB / 0.5972 GB, free: 14.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.8258, allocations: 49.7 kB / 0.5973 GB, free: 14.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003211/0.8261, allocations: 449.8 kB / 0.5977 GB, free: 14.35 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002768/0.8264, allocations: 342.5 kB / 0.598 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.8266, allocations: 105.7 kB / 0.5981 GB, free: 13.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.8267, allocations: 402.7 kB / 0.5985 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.8279, allocations: 0.6116 MB / 0.5991 GB, free: 12.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.8294, allocations: 0.9689 MB / 0.6001 GB, free: 11.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/0.832, allocations: 1.668 MB / 0.6017 GB, free: 10 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.832, allocations: 2.906 kB / 0.6017 GB, free: 10 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003818/0.8359, allocations: 1.953 MB / 0.6036 GB, free: 8.082 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002806/0.8361, allocations: 452.7 kB / 0.604 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.8362, allocations: 11.94 kB / 0.604 GB, free: 7.477 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/0.8379, allocations: 330.2 kB / 0.6044 GB, free: 7.156 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.8389, allocations: 277.7 kB / 0.6046 GB, free: 6.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.8406, allocations: 0.9267 MB / 0.6055 GB, free: 5.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.8418, allocations: 111.8 kB / 0.6056 GB, free: 5.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.8419, allocations: 67.23 kB / 0.6057 GB, free: 5.785 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/0.842, allocations: 4 kB / 0.6057 GB, free: 5.781 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003617/0.8456, allocations: 1.828 MB / 0.6075 GB, free: 4.004 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.8456, allocations: 14.44 kB / 0.6075 GB, free: 3.992 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/0.8472, allocations: 332 kB / 0.6078 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.8483, allocations: 269.8 kB / 0.6081 GB, free: 3.422 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.8499, allocations: 0.9267 MB / 0.609 GB, free: 2.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.851, allocations: 103.8 kB / 0.6091 GB, free: 2.375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/0.8512, allocations: 67.97 kB / 0.6091 GB, free: 2.309 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0007016/0.8519, allocations: 422 kB / 0.6095 GB, free: 1.906 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002592/0.8522, allocations: 98.81 kB / 0.6096 GB, free: 1.809 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004065/0.8563, allocations: 1.989 MB / 0.6116 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.8563, allocations: 8 kB / 0.6116 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.8563, allocations: 4 kB / 0.6116 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.8563, allocations: 7.984 kB / 0.6116 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005538/0.8619, allocations: 3.115 MB / 0.6146 GB, free: 12.61 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.8619, allocations: 4 kB / 0.6146 GB, free: 12.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008432/0.8627, allocations: 179.5 kB / 0.6148 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002/0.8648, allocations: 399 kB / 0.6152 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.8649, allocations: 39.97 kB / 0.6152 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.8663, allocations: 0.8886 MB / 0.6161 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.8663, allocations: 4.031 kB / 0.6161 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004369/0.8707, allocations: 2.405 MB / 0.6185 GB, free: 8.648 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007048/0.8714, allocations: 337.4 kB / 0.6188 GB, free: 8.301 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.8717, allocations: 27.98 kB / 0.6188 GB, free: 8.273 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.8729, allocations: 83.84 kB / 0.6189 GB, free: 8.191 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.873, allocations: 80.83 kB / 0.619 GB, free: 8.113 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.8732, allocations: 48.84 kB / 0.619 GB, free: 8.066 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008559/0.874, allocations: 0.5693 MB / 0.6196 GB, free: 7.504 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8741, allocations: 2.531 kB / 0.6196 GB, free: 7.504 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003389/0.8774, allocations: 1.132 MB / 0.6207 GB, free: 6.371 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * 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 (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003183/0.8806, allocations: 1.057 MB / 0.6217 GB, free: 5.402 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005279/0.8859, allocations: 2.631 MB / 0.6243 GB, free: 2.801 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.886, allocations: 0.5625 kB / 0.6243 GB, free: 2.801 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.8875, allocations: 0.7469 MB / 0.625 GB, free: 2.078 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/0.8909, allocations: 0.5276 MB / 0.6255 GB, free: 1.555 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005752/0.8966, allocations: 3.017 MB / 0.6285 GB, free: 14.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008652/0.8975, allocations: 1.12 MB / 0.6296 GB, free: 13.35 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003931/0.9015, allocations: 0.7032 MB / 0.6302 GB, free: 12.64 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006107/0.9021, allocations: 111.3 kB / 0.6303 GB, free: 12.54 MB / 494.1 MB Notification: Performance of SimCode: time 1.723e-06/0.9021, allocations: 4 kB / 0.6304 GB, free: 12.53 MB / 494.1 MB Notification: Performance of Templates: time 0.08869/0.9908, allocations: 38.77 MB / 0.6682 GB, free: 6.082 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches