Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001245, allocations: 94.97 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001557/0.001557, allocations: 193 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002628, allocations: 8 kB / 307.1 MB, free: 1.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09212, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.6097/0.7019, allocations: 190.9 MB / 0.5367 GB, free: 3.574 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01179/0.7137, allocations: 9.811 MB / 0.5462 GB, free: 3.484 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000878/0.7146, allocations: 26.12 kB / 0.5463 GB, free: 3.484 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009026/0.7155, allocations: 340 kB / 0.5466 GB, free: 3.48 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:729:36-730:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:727:36-728:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:783:36-784:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:781:36-782:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006469/0.722, allocations: 2.531 MB / 0.5491 GB, free: 3.375 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005615/0.7276, allocations: 1.992 MB / 0.551 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003611/0.7312, allocations: 3.134 MB / 0.5541 GB, free: 3.309 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009818/0.7322, allocations: 0.6334 MB / 0.5547 GB, free: 3.234 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005067/0.7373, allocations: 2.384 MB / 0.557 GB, free: 3.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001958/0.7393, allocations: 1.061 MB / 0.5581 GB, free: 3.176 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.7395, allocations: 57.84 kB / 0.5581 GB, free: 3.176 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00913/0.7486, allocations: 5.212 MB / 0.5632 GB, free: 3.117 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000653/0.7493, allocations: 489.8 kB / 0.5637 GB, free: 3.117 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006392/0.7499, allocations: 242.5 kB / 0.5639 GB, free: 19.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005097/0.755, allocations: 3.078 MB / 0.5669 GB, free: 18.85 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.7551, allocations: 3.328 kB / 0.5669 GB, free: 18.85 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.7551, allocations: 4 kB / 0.5669 GB, free: 18.85 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.7551, allocations: 0 / 0.5669 GB, free: 18.85 MB / 462.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.003868/0.759, allocations: 1.842 MB / 0.5687 GB, free: 17.78 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.759, allocations: 9.562 kB / 0.5687 GB, free: 17.78 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003736/0.7594, allocations: 130.3 kB / 0.5688 GB, free: 17.72 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009534/0.7604, allocations: 0.6692 MB / 0.5695 GB, free: 17.45 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.7605, allocations: 133.4 kB / 0.5696 GB, free: 17.38 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.7606, allocations: 88.83 kB / 0.5697 GB, free: 17.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/0.7625, allocations: 1.448 MB / 0.5711 GB, free: 16.89 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.7625, allocations: 2.906 kB / 0.5711 GB, free: 16.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.7626, allocations: 38.3 kB / 0.5712 GB, free: 16.89 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.532e-05/0.7627, allocations: 72.38 kB / 0.5712 GB, free: 16.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.7646, allocations: 1.456 MB / 0.5727 GB, free: 16.62 MB / 462.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.007066/0.7717, allocations: 6.345 MB / 0.5788 GB, free: 12.43 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.7733, allocations: 0.9827 MB / 0.5798 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008176/0.7741, allocations: 0.5183 MB / 0.5803 GB, free: 12.17 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001332/0.7755, allocations: 1.805 MB / 0.5821 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.7755, allocations: 43.22 kB / 0.5821 GB, free: 10.1 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003586/0.7759, allocations: 105 kB / 0.5822 GB, free: 10.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 2.935e-06/0.7759, allocations: 5.969 kB / 0.5822 GB, free: 10.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01411/0.79, allocations: 4.944 MB / 0.5871 GB, free: 8.676 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.7901, allocations: 113.8 kB / 0.5872 GB, free: 8.547 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008534/0.7909, allocations: 0.7708 MB / 0.5879 GB, free: 8.289 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.743e-05/0.791, allocations: 49.34 kB / 0.588 GB, free: 8.258 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.7913, allocations: 448 kB / 0.5884 GB, free: 7.988 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.7916, allocations: 344.5 kB / 0.5887 GB, free: 7.742 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.673e-05/0.7917, allocations: 26.66 kB / 0.5887 GB, free: 7.742 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.7918, allocations: 402 kB / 0.5891 GB, free: 7.402 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.7929, allocations: 0.6057 MB / 0.5897 GB, free: 7.297 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.7941, allocations: 0.957 MB / 0.5907 GB, free: 6.785 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.7954, allocations: 0.7913 MB / 0.5914 GB, free: 6.621 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.7954, allocations: 2.406 kB / 0.5914 GB, free: 6.621 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003207/0.7986, allocations: 1.914 MB / 0.5933 GB, free: 6.207 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002595/0.7989, allocations: 456 kB / 0.5937 GB, free: 5.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.7989, allocations: 8.125 kB / 0.5937 GB, free: 5.676 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.8003, allocations: 332 kB / 0.5941 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009814/0.8013, allocations: 271.9 kB / 0.5943 GB, free: 5.543 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.8028, allocations: 0.924 MB / 0.5952 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009983/0.8038, allocations: 107.3 kB / 0.5953 GB, free: 4.918 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.8039, allocations: 68.25 kB / 0.5954 GB, free: 4.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-06/0.8039, allocations: 9.312 kB / 0.5954 GB, free: 4.906 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003087/0.807, allocations: 1.803 MB / 0.5972 GB, free: 4.586 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.807, allocations: 9.688 kB / 0.5972 GB, free: 4.586 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.8084, allocations: 330.7 kB / 0.5975 GB, free: 4.484 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009319/0.8093, allocations: 268.9 kB / 0.5977 GB, free: 4.449 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.8107, allocations: 0.9239 MB / 0.5986 GB, free: 3.852 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009219/0.8116, allocations: 114.2 kB / 0.5987 GB, free: 3.816 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.8117, allocations: 76.89 kB / 0.5988 GB, free: 3.805 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 (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.0006138/0.8124, allocations: 412.1 kB / 0.5992 GB, free: 3.586 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.8125, allocations: 99.09 kB / 0.5993 GB, free: 3.539 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.8161, allocations: 1.977 MB / 0.6012 GB, free: 2.184 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.8162, allocations: 12 kB / 0.6012 GB, free: 2.172 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.8162, allocations: 0 / 0.6012 GB, free: 2.172 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.8162, allocations: 7.969 kB / 0.6013 GB, free: 2.164 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004756/0.821, allocations: 3.113 MB / 0.6043 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.821, allocations: 0 / 0.6043 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008352/0.8218, allocations: 188.5 kB / 0.6045 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001775/0.8236, allocations: 389.2 kB / 0.6048 GB, free: 15.39 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.438e-05/0.8237, allocations: 46.06 kB / 0.6049 GB, free: 15.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.825, allocations: 0.8842 MB / 0.6058 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.8251, allocations: 7.984 kB / 0.6058 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003964/0.829, allocations: 2.386 MB / 0.6081 GB, free: 12.87 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005227/0.8296, allocations: 341.7 kB / 0.6084 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000203/0.8298, allocations: 29.83 kB / 0.6084 GB, free: 12.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008716/0.8307, allocations: 89.45 kB / 0.6085 GB, free: 12.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.8308, allocations: 71.75 kB / 0.6086 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.831, allocations: 58.45 kB / 0.6087 GB, free: 12.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007486/0.8317, allocations: 0.5456 MB / 0.6092 GB, free: 12 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8317, allocations: 0 / 0.6092 GB, free: 12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003432/0.8352, allocations: 1.138 MB / 0.6103 GB, free: 10.95 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 (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.00268/0.8379, allocations: 1.06 MB / 0.6113 GB, free: 10.01 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004639/0.8425, allocations: 2.611 MB / 0.6139 GB, free: 8.105 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.8425, allocations: 3.344 kB / 0.6139 GB, free: 8.105 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.8439, allocations: 0.7412 MB / 0.6146 GB, free: 7.602 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/0.8464, allocations: 0.5254 MB / 0.6151 GB, free: 7.184 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005236/0.8516, allocations: 2.917 MB / 0.618 GB, free: 4.551 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007267/0.8523, allocations: 1.12 MB / 0.6191 GB, free: 3.434 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002224/0.8546, allocations: 0.7018 MB / 0.6198 GB, free: 2.73 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/0.8549, allocations: 109.8 kB / 0.6199 GB, free: 2.629 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/0.855, allocations: 0 / 0.6199 GB, free: 2.629 MB / 478.1 MB Notification: Performance of Templates: time 0.0573/0.9123, allocations: 37.54 MB / 0.6565 GB, free: 13.39 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches