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.001349/0.001349, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001026/0.001026, allocations: 190 kB / 16.25 MB, free: 6.633 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.428/1.428, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001134/0.001134, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2332, allocations: 46.62 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4296/0.6629, allocations: 210.9 MB / 0.5232 GB, free: 5.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01676/0.6797, allocations: 13.28 MB / 0.5362 GB, free: 48 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.6814, allocations: 27.81 kB / 0.5362 GB, free: 20 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.6829, allocations: 425.6 kB / 0.5366 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01094/0.6938, allocations: 3.317 MB / 0.5398 GB, free: 12.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007531/0.7014, allocations: 2.613 MB / 0.5424 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003217/0.7046, allocations: 2.637 MB / 0.5449 GB, free: 7.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.7056, allocations: 0.7751 MB / 0.5457 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006871/0.7125, allocations: 3.01 MB / 0.5486 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.7143, allocations: 1.129 MB / 0.5497 GB, free: 3.332 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.7145, allocations: 120 kB / 0.5499 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01306/0.7276, allocations: 6.719 MB / 0.5564 GB, free: 12.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000888/0.7285, allocations: 0.537 MB / 0.5569 GB, free: 12.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009389/0.7295, allocations: 0.6427 MB / 0.5576 GB, free: 11.69 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.74, allocations: 5.045 MB / 0.5625 GB, free: 6.93 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.74, allocations: 0 / 0.5625 GB, free: 6.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.74, allocations: 0 / 0.5625 GB, free: 6.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.74, allocations: 4 kB / 0.5625 GB, free: 6.926 MB / 430.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.004583/0.7446, allocations: 2.134 MB / 0.5646 GB, free: 4.742 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.7447, allocations: 12.02 kB / 0.5646 GB, free: 4.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004559/0.7451, allocations: 118.8 kB / 0.5647 GB, free: 4.613 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.7462, allocations: 0.6869 MB / 0.5654 GB, free: 3.895 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.7463, allocations: 138.6 kB / 0.5655 GB, free: 3.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.7465, allocations: 86.66 kB / 0.5656 GB, free: 3.668 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.7486, allocations: 1.464 MB / 0.567 GB, free: 2.148 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.947e-05/0.7487, allocations: 4 kB / 0.567 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001211/0.7488, allocations: 34.58 kB / 0.5671 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.605e-05/0.7489, allocations: 77.89 kB / 0.5671 GB, free: 2.035 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002162/0.7511, allocations: 1.472 MB / 0.5686 GB, free: 0.5664 MB / 430.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.008401/0.7595, allocations: 6.357 MB / 0.5748 GB, free: 9.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001887/0.7614, allocations: 0.976 MB / 0.5757 GB, free: 8.855 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007459/0.7621, allocations: 0.5191 MB / 0.5762 GB, free: 8.336 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001809/0.764, allocations: 2.063 MB / 0.5783 GB, free: 5.855 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.754e-05/0.764, allocations: 47.56 kB / 0.5783 GB, free: 5.801 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004567/0.7645, allocations: 102.9 kB / 0.5784 GB, free: 5.699 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 3.236e-06/0.7645, allocations: 0 / 0.5784 GB, free: 5.699 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01566/0.7802, allocations: 4.804 MB / 0.5831 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.7803, allocations: 115.8 kB / 0.5832 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009372/0.7812, allocations: 0.7776 MB / 0.584 GB, free: 15.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.7813, allocations: 53.7 kB / 0.584 GB, free: 15.87 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.7816, allocations: 444.7 kB / 0.5844 GB, free: 15.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/0.7819, allocations: 344.5 kB / 0.5848 GB, free: 15.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003905/0.7823, allocations: 250.7 kB / 0.585 GB, free: 14.85 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.7825, allocations: 402.7 kB / 0.5854 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.7837, allocations: 0.6267 MB / 0.586 GB, free: 13.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.7851, allocations: 0.9537 MB / 0.5869 GB, free: 12.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002561/0.7876, allocations: 1.658 MB / 0.5886 GB, free: 10.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.7877, allocations: 4 kB / 0.5886 GB, free: 10.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003722/0.7914, allocations: 1.941 MB / 0.5905 GB, free: 8.938 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.333e-05/0.7915, allocations: 70.38 kB / 0.5905 GB, free: 8.859 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.7915, allocations: 8 kB / 0.5905 GB, free: 8.852 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/0.793, allocations: 317.1 kB / 0.5908 GB, free: 8.539 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.7941, allocations: 271.6 kB / 0.5911 GB, free: 8.273 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.7957, allocations: 0.9145 MB / 0.592 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.7968, allocations: 103.8 kB / 0.5921 GB, free: 7.234 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/0.797, allocations: 79.91 kB / 0.5922 GB, free: 7.156 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001546/0.7986, allocations: 0.8537 MB / 0.593 GB, free: 6.297 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001374/0.7999, allocations: 0.942 MB / 0.5939 GB, free: 5.207 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00256/0.8025, allocations: 1.642 MB / 0.5955 GB, free: 3.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.087e-06/0.8025, allocations: 4 kB / 0.5955 GB, free: 3.406 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003686/0.8062, allocations: 1.914 MB / 0.5974 GB, free: 1.469 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.596e-05/0.8063, allocations: 59.41 kB / 0.5974 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.8063, allocations: 12 kB / 0.5975 GB, free: 1.387 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.8077, allocations: 311 kB / 0.5978 GB, free: 1.082 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.8087, allocations: 275.5 kB / 0.598 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.8103, allocations: 0.9114 MB / 0.5989 GB, free: 15.88 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.8114, allocations: 99.92 kB / 0.599 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.8116, allocations: 79.97 kB / 0.5991 GB, free: 15.7 MB / 478.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004626/0.812, allocations: 255.9 kB / 0.5993 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002342/0.8123, allocations: 102.8 kB / 0.5994 GB, free: 15.34 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003781/0.8161, allocations: 1.917 MB / 0.6013 GB, free: 13.39 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.8161, allocations: 12 kB / 0.6013 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.8161, allocations: 0 / 0.6013 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.8161, allocations: 3.984 kB / 0.6013 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/0.8212, allocations: 3.03 MB / 0.6043 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.8212, allocations: 4.031 kB / 0.6043 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/0.8221, allocations: 187.8 kB / 0.6045 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001738/0.8238, allocations: 376.2 kB / 0.6048 GB, free: 9.734 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.8239, allocations: 43.97 kB / 0.6049 GB, free: 9.691 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/0.8253, allocations: 0.8755 MB / 0.6057 GB, free: 8.793 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.8253, allocations: 4.062 kB / 0.6057 GB, free: 8.789 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004404/0.8297, allocations: 2.41 MB / 0.6081 GB, free: 6.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006327/0.8304, allocations: 331.7 kB / 0.6084 GB, free: 5.996 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001883/0.8306, allocations: 27.98 kB / 0.6084 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009506/0.8315, allocations: 71.94 kB / 0.6085 GB, free: 5.898 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.8317, allocations: 80.83 kB / 0.6086 GB, free: 5.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.8319, allocations: 55.97 kB / 0.6086 GB, free: 5.766 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007633/0.8326, allocations: 0.577 MB / 0.6092 GB, free: 5.195 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8326, allocations: 0 / 0.6092 GB, free: 5.195 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003257/0.8359, allocations: 1.163 MB / 0.6103 GB, free: 4.031 MB / 478.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00311/0.839, allocations: 1.158 MB / 0.6114 GB, free: 2.938 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006174/0.8452, allocations: 2.957 MB / 0.6143 GB, free: 15.94 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.8452, allocations: 4.438 kB / 0.6143 GB, free: 15.94 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.8466, allocations: 0.7321 MB / 0.615 GB, free: 15.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.8491, allocations: 0.5609 MB / 0.6156 GB, free: 14.64 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005248/0.8544, allocations: 2.907 MB / 0.6184 GB, free: 11.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.8551, allocations: 1.119 MB / 0.6195 GB, free: 10.55 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002199/0.8573, allocations: 0.6174 MB / 0.6201 GB, free: 9.926 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.8577, allocations: 119.4 kB / 0.6202 GB, free: 9.809 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/0.8577, allocations: 0 / 0.6202 GB, free: 9.809 MB / 494.1 MB Notification: Performance of Templates: time 0.2102/1.068, allocations: 41.53 MB / 0.6608 GB, free: 204.1 MB / 494.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)