Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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 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: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001104/0.001104, allocations: 88.39 kB / 16.31 MB, free: 6.453 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.001424/0.001424, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.601/1.601, allocations: 205.4 MB / 223.4 MB, free: 5.793 MB / 174.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.0005138/0.0005141, allocations: 14.66 kB / 280.1 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2839, allocations: 47.58 MB / 327.7 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4907/0.7747, allocations: 194.3 MB / 0.5098 GB, free: 28 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01697/0.7917, allocations: 12.39 MB / 0.5219 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001533/0.7933, allocations: 27.69 kB / 0.5219 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.7949, allocations: 338.7 kB / 0.5222 GB, free: 14.39 MB / 398.1 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.01131/0.8062, allocations: 2.881 MB / 0.525 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007866/0.8141, allocations: 2.145 MB / 0.5271 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004546/0.8187, allocations: 3.132 MB / 0.5302 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/0.8204, allocations: 0.6229 MB / 0.5308 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01021/0.8306, allocations: 2.642 MB / 0.5334 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002599/0.8332, allocations: 1.055 MB / 0.5344 GB, free: 8.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000533/0.8338, allocations: 60 kB / 0.5345 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01323/0.847, allocations: 5.6 MB / 0.5399 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001247/0.8483, allocations: 490.3 kB / 0.5404 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000956/0.8493, allocations: 241.4 kB / 0.5406 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008468/0.8578, allocations: 3.245 MB / 0.5438 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.8578, allocations: 0 / 0.5438 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.8578, allocations: 1.969 kB / 0.5438 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.372e-05/0.8579, allocations: 0 / 0.5438 GB, free: 0.7773 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.007374/0.8653, allocations: 1.911 MB / 0.5457 GB, free: 14.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.8654, allocations: 8.031 kB / 0.5457 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008705/0.8662, allocations: 130.7 kB / 0.5458 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.868, allocations: 0.668 MB / 0.5465 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.8682, allocations: 136 kB / 0.5466 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/0.8684, allocations: 91.62 kB / 0.5467 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/0.8712, allocations: 1.448 MB / 0.5481 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.8713, allocations: 0 / 0.5481 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001439/0.8714, allocations: 43.67 kB / 0.5481 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.8716, allocations: 72.7 kB / 0.5482 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.874, allocations: 1.474 MB / 0.5496 GB, free: 11.82 MB / 414.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.009337/0.8834, allocations: 6.341 MB / 0.5558 GB, free: 6.207 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.8852, allocations: 0.9864 MB / 0.5568 GB, free: 5.539 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007863/0.886, allocations: 0.5236 MB / 0.5573 GB, free: 5.203 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001802/0.8878, allocations: 2.069 MB / 0.5593 GB, free: 2.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/0.8879, allocations: 44.94 kB / 0.5594 GB, free: 2.727 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005374/0.8884, allocations: 102.6 kB / 0.5595 GB, free: 2.637 MB / 414.1 MB Notification: Performance of pre-optimization done (n=84): time 5.33e-06/0.8884, allocations: 0 / 0.5595 GB, free: 2.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.01535/0.9038, allocations: 4.953 MB / 0.5643 GB, free: 14.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.536e-05/0.9039, allocations: 117.6 kB / 0.5644 GB, free: 14.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.9051, allocations: 0.7675 MB / 0.5652 GB, free: 14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.9053, allocations: 43.7 kB / 0.5652 GB, free: 13.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004532/0.9057, allocations: 455.5 kB / 0.5656 GB, free: 13.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003345/0.9061, allocations: 347 kB / 0.566 GB, free: 13.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-05/0.9062, allocations: 26.81 kB / 0.566 GB, free: 13.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.9064, allocations: 406.9 kB / 0.5664 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.9076, allocations: 0.611 MB / 0.567 GB, free: 12.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.909, allocations: 0.9562 MB / 0.5679 GB, free: 11.69 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.9104, allocations: 0.793 MB / 0.5687 GB, free: 11.15 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.9104, allocations: 4 kB / 0.5687 GB, free: 11.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003719/0.9142, allocations: 1.917 MB / 0.5706 GB, free: 9.742 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003532/0.9145, allocations: 456.3 kB / 0.571 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.9146, allocations: 12 kB / 0.571 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.916, allocations: 338.4 kB / 0.5713 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.9171, allocations: 273.9 kB / 0.5716 GB, free: 8.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.9186, allocations: 0.9269 MB / 0.5725 GB, free: 7.668 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.9198, allocations: 103.9 kB / 0.5726 GB, free: 7.566 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.92, allocations: 79.97 kB / 0.5727 GB, free: 7.488 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.9201, allocations: 4 kB / 0.5727 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003527/0.9236, allocations: 1.815 MB / 0.5745 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/0.9236, allocations: 8.078 kB / 0.5745 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.925, allocations: 332.9 kB / 0.5748 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.9261, allocations: 275.6 kB / 0.575 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.9276, allocations: 0.9225 MB / 0.5759 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.9287, allocations: 111.8 kB / 0.5761 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.9289, allocations: 71.98 kB / 0.5761 GB, free: 3.93 MB / 430.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.0007616/0.9297, allocations: 420.6 kB / 0.5765 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.93, allocations: 94.88 kB / 0.5766 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/0.9339, allocations: 1.942 MB / 0.5785 GB, free: 1.441 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.9339, allocations: 15.95 kB / 0.5785 GB, free: 1.426 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.9339, allocations: 0 / 0.5785 GB, free: 1.426 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.9339, allocations: 11.95 kB / 0.5785 GB, free: 1.414 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00551/0.9395, allocations: 3.045 MB / 0.5815 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.9395, allocations: 8.188 kB / 0.5815 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000813/0.9403, allocations: 179.8 kB / 0.5817 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.9421, allocations: 396.3 kB / 0.5821 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.9422, allocations: 31.98 kB / 0.5821 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/0.9435, allocations: 0.8988 MB / 0.583 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.9435, allocations: 0 / 0.583 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004401/0.9479, allocations: 2.422 MB / 0.5853 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007018/0.9486, allocations: 331.8 kB / 0.5857 GB, free: 9.988 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/0.9489, allocations: 28 kB / 0.5857 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.95, allocations: 97.62 kB / 0.5858 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.9501, allocations: 80.78 kB / 0.5859 GB, free: 9.789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.9503, allocations: 55.97 kB / 0.5859 GB, free: 9.734 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008679/0.9511, allocations: 0.5459 MB / 0.5864 GB, free: 9.195 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9511, allocations: 0 / 0.5864 GB, free: 9.195 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004357/0.9555, allocations: 1.163 MB / 0.5876 GB, free: 8.031 MB / 446.1 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.004026/0.9595, allocations: 1.131 MB / 0.5887 GB, free: 6.977 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004974/0.9645, allocations: 2.625 MB / 0.5912 GB, free: 4.309 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.9646, allocations: 448 / 0.5912 GB, free: 4.309 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.966, allocations: 0.7438 MB / 0.592 GB, free: 3.562 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/0.9685, allocations: 0.5068 MB / 0.5925 GB, free: 3.059 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006192/0.9747, allocations: 2.914 MB / 0.5953 GB, free: 100 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008954/0.9756, allocations: 1.119 MB / 0.5964 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002329/0.9779, allocations: 0.6093 MB / 0.597 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004183/0.9784, allocations: 123.4 kB / 0.5971 GB, free: 14.21 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.9784, allocations: 1.859 kB / 0.5971 GB, free: 14.21 MB / 462.1 MB Notification: Performance of Templates: time 0.2424/1.221, allocations: 38.81 MB / 0.635 GB, free: 205.2 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)