Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0009017/0.0009017, allocations: 92 kB / 15.06 MB, free: 1.098 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.0009604/0.0009604, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004606/0.0004607, allocations: 8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2921, allocations: 47.58 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5006/0.7928, allocations: 194.3 MB / 0.5086 GB, free: 16 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01664/0.8094, allocations: 12.39 MB / 0.5207 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.811, allocations: 29.27 kB / 0.5207 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.8126, allocations: 333.4 kB / 0.521 GB, free: 14.34 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.01097/0.8236, allocations: 2.881 MB / 0.5238 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008203/0.8318, allocations: 2.141 MB / 0.5259 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004706/0.8365, allocations: 3.132 MB / 0.529 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001783/0.8383, allocations: 0.6213 MB / 0.5296 GB, free: 11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009022/0.8473, allocations: 2.645 MB / 0.5322 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002726/0.8501, allocations: 1.057 MB / 0.5332 GB, free: 8.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005734/0.8507, allocations: 56 kB / 0.5332 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01316/0.8639, allocations: 5.602 MB / 0.5387 GB, free: 4.094 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009514/0.8648, allocations: 491.1 kB / 0.5392 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007438/0.8656, allocations: 239.5 kB / 0.5394 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007396/0.873, allocations: 3.244 MB / 0.5426 GB, free: 0.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.873, allocations: 0 / 0.5426 GB, free: 0.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.873, allocations: 0 / 0.5426 GB, free: 0.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.009e-05/0.8731, allocations: 0 / 0.5426 GB, free: 0.75 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.005626/0.8787, allocations: 1.906 MB / 0.5444 GB, free: 14.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.8788, allocations: 12.03 kB / 0.5445 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006707/0.8795, allocations: 126.7 kB / 0.5446 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.881, allocations: 0.6737 MB / 0.5452 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.8811, allocations: 135.9 kB / 0.5454 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002422/0.8814, allocations: 89.16 kB / 0.5454 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002517/0.8839, allocations: 1.451 MB / 0.5469 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/0.884, allocations: 8 kB / 0.5469 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/0.8841, allocations: 35.12 kB / 0.5469 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.873e-05/0.8842, allocations: 73.66 kB / 0.547 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002349/0.8865, allocations: 1.469 MB / 0.5484 GB, free: 11.8 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.008536/0.8951, allocations: 6.352 MB / 0.5546 GB, free: 6.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.8969, allocations: 0.9911 MB / 0.5556 GB, free: 5.504 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007301/0.8976, allocations: 0.5179 MB / 0.5561 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001737/0.8994, allocations: 2.061 MB / 0.5581 GB, free: 2.746 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.8994, allocations: 45.56 kB / 0.5581 GB, free: 2.703 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004784/0.8999, allocations: 107.3 kB / 0.5582 GB, free: 2.613 MB / 414.1 MB Notification: Performance of pre-optimization done (n=84): time 4.578e-06/0.8999, allocations: 3.938 kB / 0.5582 GB, free: 2.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.0193/0.9192, allocations: 4.955 MB / 0.5631 GB, free: 14.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.9194, allocations: 115.8 kB / 0.5632 GB, free: 14.56 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001929/0.9213, allocations: 0.7728 MB / 0.564 GB, free: 13.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001858/0.9215, allocations: 52.2 kB / 0.564 GB, free: 13.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005935/0.9221, allocations: 444.3 kB / 0.5644 GB, free: 13.6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003876/0.9225, allocations: 343.9 kB / 0.5648 GB, free: 13.31 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.9227, allocations: 24.25 kB / 0.5648 GB, free: 13.31 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.9229, allocations: 409.7 kB / 0.5652 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.9241, allocations: 0.6141 MB / 0.5658 GB, free: 12.53 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.9256, allocations: 0.959 MB / 0.5667 GB, free: 11.65 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.9272, allocations: 0.7859 MB / 0.5675 GB, free: 11.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.599e-05/0.9272, allocations: 3.984 kB / 0.5675 GB, free: 11.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003781/0.931, allocations: 1.927 MB / 0.5694 GB, free: 9.707 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003357/0.9314, allocations: 450.6 kB / 0.5698 GB, free: 9.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/0.9314, allocations: 12 kB / 0.5698 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/0.9329, allocations: 329.9 kB / 0.5701 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.934, allocations: 280.5 kB / 0.5704 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/0.9355, allocations: 0.9186 MB / 0.5713 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.9367, allocations: 111.9 kB / 0.5714 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.9369, allocations: 75.97 kB / 0.5715 GB, free: 7.469 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.9369, allocations: 6.969 kB / 0.5715 GB, free: 7.465 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003515/0.9405, allocations: 1.808 MB / 0.5732 GB, free: 5.645 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.9405, allocations: 12.08 kB / 0.5732 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.9419, allocations: 333.1 kB / 0.5736 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.9429, allocations: 267.6 kB / 0.5738 GB, free: 5.043 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.9444, allocations: 0.9302 MB / 0.5747 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.9455, allocations: 109.7 kB / 0.5748 GB, free: 3.984 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001606/0.9457, allocations: 71.97 kB / 0.5749 GB, free: 3.914 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.0007124/0.9464, allocations: 428.5 kB / 0.5753 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002581/0.9467, allocations: 98.88 kB / 0.5754 GB, free: 3.387 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003853/0.9505, allocations: 1.94 MB / 0.5773 GB, free: 1.414 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.9505, allocations: 11.95 kB / 0.5773 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.413e-05/0.9506, allocations: 4 kB / 0.5773 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.9506, allocations: 3.984 kB / 0.5773 GB, free: 1.395 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005501/0.9561, allocations: 3.053 MB / 0.5803 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.9561, allocations: 0 / 0.5803 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008005/0.9569, allocations: 183.8 kB / 0.5805 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001755/0.9587, allocations: 392.5 kB / 0.5808 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.9588, allocations: 47.91 kB / 0.5809 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.9601, allocations: 0.8872 MB / 0.5818 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.9601, allocations: 4.031 kB / 0.5818 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004544/0.9647, allocations: 2.424 MB / 0.5841 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006811/0.9654, allocations: 331.8 kB / 0.5844 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.9656, allocations: 27.98 kB / 0.5845 GB, free: 9.934 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009838/0.9666, allocations: 91.78 kB / 0.5846 GB, free: 9.844 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.9668, allocations: 76.84 kB / 0.5846 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/0.9669, allocations: 59.95 kB / 0.5847 GB, free: 9.711 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007991/0.9677, allocations: 0.5459 MB / 0.5852 GB, free: 9.172 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9678, allocations: 0 / 0.5852 GB, free: 9.172 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003812/0.9716, allocations: 1.159 MB / 0.5863 GB, free: 8.012 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.003493/0.9751, allocations: 1.137 MB / 0.5875 GB, free: 6.949 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005008/0.9801, allocations: 2.621 MB / 0.59 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.9801, allocations: 4.625 kB / 0.59 GB, free: 4.281 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.9815, allocations: 0.7437 MB / 0.5907 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002515/0.9841, allocations: 0.5009 MB / 0.5912 GB, free: 3.039 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005463/0.9896, allocations: 2.914 MB / 0.5941 GB, free: 80 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007872/0.9904, allocations: 1.123 MB / 0.5952 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002246/0.9926, allocations: 0.6015 MB / 0.5958 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/0.9931, allocations: 123.4 kB / 0.5959 GB, free: 14.2 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.9931, allocations: 0 / 0.5959 GB, free: 14.2 MB / 462.1 MB Notification: Performance of Templates: time 0.2541/1.247, allocations: 38.83 MB / 0.6338 GB, free: 205.9 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)