Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001303/0.001303, allocations: 179.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007901/0.0007902, allocations: 88.48 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002804/0.0002804, allocations: 16 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.1993, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.3944/0.5937, allocations: 194.3 MB / 0.5555 GB, free: 14.35 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01545/0.6092, allocations: 12.39 MB / 0.5676 GB, free: 12.13 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.6104, allocations: 25.75 kB / 0.5676 GB, free: 12.12 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.6118, allocations: 339.4 kB / 0.568 GB, free: 11.91 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.009492/0.6213, allocations: 2.88 MB / 0.5708 GB, free: 10.67 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006503/0.6278, allocations: 2.152 MB / 0.5729 GB, free: 9.906 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003385/0.6312, allocations: 3.131 MB / 0.5759 GB, free: 8.852 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.6325, allocations: 0.6226 MB / 0.5765 GB, free: 8.492 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007169/0.6397, allocations: 2.639 MB / 0.5791 GB, free: 6.434 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002208/0.6419, allocations: 1.055 MB / 0.5802 GB, free: 5.582 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004572/0.6424, allocations: 58.5 kB / 0.5802 GB, free: 5.527 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01127/0.6536, allocations: 5.6 MB / 0.5857 GB, free: 1.059 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008668/0.6545, allocations: 491.4 kB / 0.5862 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005809/0.6551, allocations: 242.1 kB / 0.5864 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005979/0.6611, allocations: 3.242 MB / 0.5895 GB, free: 13.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.6611, allocations: 0 / 0.5895 GB, free: 13.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6612, allocations: 0 / 0.5895 GB, free: 13.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.204e-05/0.6612, allocations: 1.75 kB / 0.5895 GB, free: 13.71 MB / 410.7 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.004873/0.6661, allocations: 1.908 MB / 0.5914 GB, free: 11.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.6662, allocations: 8.031 kB / 0.5914 GB, free: 11.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005737/0.6667, allocations: 122.7 kB / 0.5915 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.6681, allocations: 0.6728 MB / 0.5922 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.6683, allocations: 134 kB / 0.5923 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.6685, allocations: 94.84 kB / 0.5924 GB, free: 10.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002324/0.6708, allocations: 1.453 MB / 0.5938 GB, free: 9.867 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/0.6709, allocations: 4 kB / 0.5938 GB, free: 9.863 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/0.671, allocations: 38.28 kB / 0.5939 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.644e-05/0.6711, allocations: 68.41 kB / 0.5939 GB, free: 9.793 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002712/0.6738, allocations: 1.472 MB / 0.5954 GB, free: 8.773 MB / 410.7 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.008955/0.6828, allocations: 6.361 MB / 0.6016 GB, free: 3.141 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.6846, allocations: 0.977 MB / 0.6025 GB, free: 2.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008045/0.6854, allocations: 0.5173 MB / 0.603 GB, free: 2.148 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001698/0.6871, allocations: 2.065 MB / 0.6051 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.6872, allocations: 43.62 kB / 0.6051 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004713/0.6877, allocations: 105.8 kB / 0.6052 GB, free: 15.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 6.072e-06/0.6877, allocations: 0 / 0.6052 GB, free: 15.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.01641/0.7041, allocations: 4.966 MB / 0.6101 GB, free: 11.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.7042, allocations: 117.7 kB / 0.6102 GB, free: 11.53 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.7053, allocations: 0.7698 MB / 0.6109 GB, free: 10.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/0.7054, allocations: 50.08 kB / 0.611 GB, free: 10.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003265/0.7058, allocations: 454.5 kB / 0.6114 GB, free: 10.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.7061, allocations: 342.2 kB / 0.6117 GB, free: 10.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.804e-05/0.7062, allocations: 25 kB / 0.6117 GB, free: 10.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.7064, allocations: 404.1 kB / 0.6121 GB, free: 9.906 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.7076, allocations: 0.6102 MB / 0.6127 GB, free: 9.496 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.7091, allocations: 0.9568 MB / 0.6137 GB, free: 8.625 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.7105, allocations: 0.7857 MB / 0.6144 GB, free: 8.094 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/0.7105, allocations: 4 kB / 0.6144 GB, free: 8.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00385/0.7144, allocations: 1.924 MB / 0.6163 GB, free: 6.219 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000363/0.7147, allocations: 451 kB / 0.6167 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.7148, allocations: 12 kB / 0.6168 GB, free: 5.605 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001662/0.7165, allocations: 328.5 kB / 0.6171 GB, free: 5.281 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.7176, allocations: 285.5 kB / 0.6173 GB, free: 5.004 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.7193, allocations: 0.9217 MB / 0.6182 GB, free: 4.059 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.7206, allocations: 107.9 kB / 0.6183 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001652/0.7207, allocations: 75.97 kB / 0.6184 GB, free: 3.879 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.7207, allocations: 4 kB / 0.6184 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003475/0.7242, allocations: 1.808 MB / 0.6202 GB, free: 2.055 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/0.7243, allocations: 15.98 kB / 0.6202 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/0.7258, allocations: 327.9 kB / 0.6205 GB, free: 1.719 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.7269, allocations: 271.5 kB / 0.6208 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.7284, allocations: 0.9232 MB / 0.6217 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.7296, allocations: 107.8 kB / 0.6218 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.7297, allocations: 75.95 kB / 0.6219 GB, free: 332 kB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006807/0.7304, allocations: 424.6 kB / 0.6223 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002314/0.7307, allocations: 98.88 kB / 0.6223 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003906/0.7346, allocations: 1.942 MB / 0.6242 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/0.7346, allocations: 11.95 kB / 0.6243 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.7346, allocations: 0 / 0.6243 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.7347, allocations: 15.86 kB / 0.6243 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005366/0.74, allocations: 3.046 MB / 0.6272 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.7401, allocations: 4.188 kB / 0.6273 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000821/0.7409, allocations: 183.8 kB / 0.6274 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.7428, allocations: 398.9 kB / 0.6278 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.7429, allocations: 39.97 kB / 0.6278 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.7442, allocations: 0.8882 MB / 0.6287 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.7443, allocations: 4 kB / 0.6287 GB, free: 9.176 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004236/0.7485, allocations: 2.425 MB / 0.6311 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005973/0.7491, allocations: 331.8 kB / 0.6314 GB, free: 6.371 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.7493, allocations: 27.98 kB / 0.6314 GB, free: 6.344 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.7503, allocations: 97.59 kB / 0.6315 GB, free: 6.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.7505, allocations: 80.86 kB / 0.6316 GB, free: 6.172 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.7506, allocations: 63.95 kB / 0.6317 GB, free: 6.109 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006764/0.7513, allocations: 0.5419 MB / 0.6322 GB, free: 5.574 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7513, allocations: 0 / 0.6322 GB, free: 5.574 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003059/0.7544, allocations: 1.159 MB / 0.6333 GB, free: 4.414 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003053/0.7574, allocations: 1.136 MB / 0.6344 GB, free: 3.355 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004826/0.7623, allocations: 2.625 MB / 0.637 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.7623, allocations: 448 / 0.637 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.7637, allocations: 0.744 MB / 0.6377 GB, free: 15.95 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.7662, allocations: 0.4993 MB / 0.6382 GB, free: 15.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005323/0.7715, allocations: 2.993 MB / 0.6411 GB, free: 12.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006677/0.7722, allocations: 1.119 MB / 0.6422 GB, free: 11.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005072/0.7727, allocations: 139.4 kB / 0.6424 GB, free: 11.12 MB / 458.7 MB Notification: Performance of SimCode: time 7.61e-07/0.7727, allocations: 0 / 0.6424 GB, free: 11.12 MB / 458.7 MB Notification: Performance of Templates: time 0.1915/0.9642, allocations: 32.72 MB / 0.6743 GB, free: 203.4 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches