Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.0008295/0.0008298, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009831/0.0009831, allocations: 168.7 kB / 15.95 MB, free: 204 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.709/1.709, allocations: 205.4 MB / 222.1 MB, free: 5.391 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.0004865/0.0004865, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.275, allocations: 47.6 MB / 326.5 MB, free: 1.543 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5174/0.7925, allocations: 194.3 MB / 0.5086 GB, free: 0 / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01921/0.8117, allocations: 12.39 MB / 0.5207 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/0.8135, allocations: 24.09 kB / 0.5207 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.8152, allocations: 335.1 kB / 0.521 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.01092/0.8261, allocations: 2.876 MB / 0.5238 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007609/0.8338, allocations: 2.151 MB / 0.5259 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005969/0.8398, allocations: 3.128 MB / 0.529 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.8415, allocations: 0.6266 MB / 0.5296 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008259/0.8497, allocations: 2.624 MB / 0.5321 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002615/0.8524, allocations: 1.067 MB / 0.5332 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002662/0.8527, allocations: 57.75 kB / 0.5332 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01334/0.866, allocations: 5.604 MB / 0.5387 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.8673, allocations: 494.2 kB / 0.5392 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006506/0.868, allocations: 240.3 kB / 0.5394 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008091/0.8761, allocations: 3.234 MB / 0.5426 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.8761, allocations: 3.562 kB / 0.5426 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.8761, allocations: 0 / 0.5426 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.697e-05/0.8762, allocations: 0 / 0.5426 GB, free: 0.8281 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.004867/0.881, allocations: 1.904 MB / 0.5444 GB, free: 14.96 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.8811, allocations: 12.03 kB / 0.5445 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004222/0.8815, allocations: 130 kB / 0.5446 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.8826, allocations: 0.6796 MB / 0.5452 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.8827, allocations: 132.6 kB / 0.5454 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.8829, allocations: 88.31 kB / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00218/0.8851, allocations: 1.451 MB / 0.5469 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.8851, allocations: 7.938 kB / 0.5469 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.8852, allocations: 35.69 kB / 0.5469 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.801e-05/0.8853, allocations: 76.2 kB / 0.547 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.8876, allocations: 1.464 MB / 0.5484 GB, free: 11.88 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.008016/0.8956, allocations: 6.348 MB / 0.5546 GB, free: 6.254 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.8973, allocations: 0.9883 MB / 0.5556 GB, free: 5.586 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007123/0.898, allocations: 0.5119 MB / 0.5561 GB, free: 5.262 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001618/0.8996, allocations: 2.068 MB / 0.5581 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.8997, allocations: 45 kB / 0.5581 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005119/0.9002, allocations: 105.8 kB / 0.5582 GB, free: 2.695 MB / 414.1 MB Notification: Performance of pre-optimization done (n=84): time 3.166e-06/0.9002, allocations: 0 / 0.5582 GB, free: 2.695 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.01495/0.9152, allocations: 4.966 MB / 0.5631 GB, free: 14.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.9153, allocations: 117.8 kB / 0.5632 GB, free: 14.64 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.9163, allocations: 0.7654 MB / 0.5639 GB, free: 14.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.9165, allocations: 51.45 kB / 0.564 GB, free: 14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003474/0.9168, allocations: 449.4 kB / 0.5644 GB, free: 13.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.9171, allocations: 348.3 kB / 0.5648 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/0.9172, allocations: 22.31 kB / 0.5648 GB, free: 13.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.9174, allocations: 406.1 kB / 0.5652 GB, free: 13.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.9185, allocations: 0.6124 MB / 0.5658 GB, free: 12.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.9199, allocations: 0.9627 MB / 0.5667 GB, free: 11.73 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.9212, allocations: 0.7897 MB / 0.5675 GB, free: 11.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.9212, allocations: 0 / 0.5675 GB, free: 11.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003482/0.9247, allocations: 1.924 MB / 0.5694 GB, free: 9.785 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003169/0.925, allocations: 445.7 kB / 0.5698 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.9251, allocations: 12 kB / 0.5698 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.9265, allocations: 334.3 kB / 0.5701 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.9276, allocations: 275.6 kB / 0.5704 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.9291, allocations: 0.9323 MB / 0.5713 GB, free: 7.672 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.9302, allocations: 103.9 kB / 0.5714 GB, free: 7.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.9303, allocations: 75.97 kB / 0.5715 GB, free: 7.496 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.9303, allocations: 4 kB / 0.5715 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003263/0.9336, allocations: 1.808 MB / 0.5732 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.9336, allocations: 12 kB / 0.5732 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001379/0.935, allocations: 332.4 kB / 0.5736 GB, free: 5.336 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.936, allocations: 275.5 kB / 0.5738 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/0.9376, allocations: 0.927 MB / 0.5747 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.9386, allocations: 107.8 kB / 0.5748 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.9387, allocations: 67.98 kB / 0.5749 GB, free: 3.941 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.0007049/0.9395, allocations: 424.6 kB / 0.5753 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.9397, allocations: 98.88 kB / 0.5754 GB, free: 3.418 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004014/0.9437, allocations: 1.942 MB / 0.5773 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.9437, allocations: 11.95 kB / 0.5773 GB, free: 1.434 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.9437, allocations: 8 kB / 0.5773 GB, free: 1.426 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.9437, allocations: 7.969 kB / 0.5773 GB, free: 1.418 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005599/0.9493, allocations: 3.049 MB / 0.5803 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.9494, allocations: 3.938 kB / 0.5803 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009081/0.9503, allocations: 183.7 kB / 0.5805 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/0.9521, allocations: 403.7 kB / 0.5809 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001339/0.9523, allocations: 35.98 kB / 0.5809 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001507/0.9538, allocations: 0.8918 MB / 0.5818 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.9538, allocations: 4.031 kB / 0.5818 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004947/0.9588, allocations: 2.418 MB / 0.5841 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007516/0.9595, allocations: 331.8 kB / 0.5844 GB, free: 9.984 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002686/0.9598, allocations: 24 kB / 0.5845 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.961, allocations: 95.77 kB / 0.5846 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/0.9612, allocations: 78.81 kB / 0.5846 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000199/0.9615, allocations: 59.97 kB / 0.5847 GB, free: 9.734 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001274/0.9627, allocations: 0.5458 MB / 0.5852 GB, free: 9.195 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.9628, allocations: 0 / 0.5852 GB, free: 9.195 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00505/0.9678, allocations: 1.163 MB / 0.5864 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.004323/0.9721, allocations: 1.132 MB / 0.5875 GB, free: 6.977 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005358/0.9775, allocations: 2.626 MB / 0.59 GB, free: 4.309 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.9776, allocations: 4.688 kB / 0.59 GB, free: 4.305 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.979, allocations: 0.7437 MB / 0.5908 GB, free: 3.559 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.9814, allocations: 0.5069 MB / 0.5912 GB, free: 3.055 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005218/0.9866, allocations: 2.91 MB / 0.5941 GB, free: 100 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007698/0.9874, allocations: 1.123 MB / 0.5952 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002166/0.9896, allocations: 0.6054 MB / 0.5958 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003784/0.99, allocations: 115.4 kB / 0.5959 GB, free: 14.22 MB / 462.1 MB Notification: Performance of SimCode: time 1.653e-06/0.99, allocations: 0 / 0.5959 GB, free: 14.22 MB / 462.1 MB Notification: Performance of Templates: time 0.2506/1.241, allocations: 38.83 MB / 0.6338 GB, free: 205.5 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)