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.006937/0.006937, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001368/0.001369, allocations: 196.8 kB / 16.67 MB, free: 5.973 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.565/1.565, allocations: 205.1 MB / 222.6 MB, free: 4.395 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.001277/0.001277, allocations: 49.45 kB / 326.5 MB, free: 14.63 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1138, allocations: 46.63 MB / 373.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5985/0.7124, allocations: 212.8 MB / 0.5722 GB, free: 10.99 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0185/0.7309, allocations: 13.19 MB / 0.5851 GB, free: 13.76 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/0.7323, allocations: 27.81 kB / 0.5851 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.7339, allocations: 477.3 kB / 0.5855 GB, free: 13.26 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01203/0.746, allocations: 3.65 MB / 0.5891 GB, free: 9.605 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008775/0.7548, allocations: 2.865 MB / 0.5919 GB, free: 6.738 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004336/0.7592, allocations: 2.629 MB / 0.5945 GB, free: 4.098 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.7605, allocations: 0.7776 MB / 0.5952 GB, free: 3.305 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008788/0.7693, allocations: 3.135 MB / 0.5983 GB, free: 164 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002824/0.7722, allocations: 1.071 MB / 0.5993 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003358/0.7725, allocations: 120 kB / 0.5995 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01436/0.7869, allocations: 6.704 MB / 0.606 GB, free: 8.254 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.7881, allocations: 0.53 MB / 0.6065 GB, free: 7.723 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.7893, allocations: 0.6418 MB / 0.6071 GB, free: 7.078 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01609/0.8054, allocations: 4.928 MB / 0.612 GB, free: 2.137 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.8054, allocations: 0 / 0.612 GB, free: 2.137 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.8054, allocations: 3.938 kB / 0.612 GB, free: 2.133 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.133e-05/0.8055, allocations: 0 / 0.612 GB, free: 2.133 MB / 494.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.007967/0.8135, allocations: 2.195 MB / 0.6141 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.8136, allocations: 12.03 kB / 0.6141 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000901/0.8145, allocations: 131.3 kB / 0.6142 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.8164, allocations: 0.7246 MB / 0.615 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.8166, allocations: 137.4 kB / 0.6151 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/0.8168, allocations: 91.94 kB / 0.6152 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.8193, allocations: 1.46 MB / 0.6166 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.8194, allocations: 7.922 kB / 0.6166 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.8195, allocations: 43.98 kB / 0.6166 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-05/0.8196, allocations: 73.59 kB / 0.6167 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002335/0.8219, allocations: 1.471 MB / 0.6182 GB, free: 11.61 MB / 0.4981 GB 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.00942/0.8314, allocations: 6.362 MB / 0.6244 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.8333, allocations: 0.9799 MB / 0.6253 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000772/0.8341, allocations: 0.5269 MB / 0.6258 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001955/0.8361, allocations: 2.063 MB / 0.6278 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.8361, allocations: 51.5 kB / 0.6279 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005739/0.8367, allocations: 95.23 kB / 0.628 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=84): time 3.346e-06/0.8367, allocations: 0 / 0.628 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of matching and sorting (n=96): time 0.01708/0.8538, allocations: 4.824 MB / 0.6327 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.332e-05/0.8539, allocations: 111.8 kB / 0.6328 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/0.8554, allocations: 0.7777 MB / 0.6336 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.8557, allocations: 49.7 kB / 0.6336 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004948/0.8562, allocations: 460.4 kB / 0.6341 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000461/0.8567, allocations: 357 kB / 0.6344 GB, free: 10 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006276/0.8573, allocations: 250.8 kB / 0.6346 GB, free: 9.754 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000283/0.8576, allocations: 402.7 kB / 0.635 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/0.859, allocations: 0.6228 MB / 0.6356 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.8609, allocations: 0.9615 MB / 0.6366 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003041/0.8639, allocations: 1.658 MB / 0.6382 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/0.8639, allocations: 4 kB / 0.6382 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004343/0.8683, allocations: 1.946 MB / 0.6401 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.03e-05/0.8684, allocations: 63.47 kB / 0.6401 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/0.8684, allocations: 12 kB / 0.6402 GB, free: 3.746 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001534/0.87, allocations: 312.5 kB / 0.6405 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.8711, allocations: 279.5 kB / 0.6407 GB, free: 3.164 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.8727, allocations: 0.8998 MB / 0.6416 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.874, allocations: 64.02 kB / 0.6417 GB, free: 2.176 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/0.8742, allocations: 83.91 kB / 0.6417 GB, free: 2.094 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001764/0.876, allocations: 0.8537 MB / 0.6426 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001647/0.8777, allocations: 0.942 MB / 0.6435 GB, free: 144 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.2733/1.151, allocations: 1.63 MB / 0.6451 GB, free: 212.9 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.12e-05/1.151, allocations: 4.5 kB / 0.6451 GB, free: 212.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004276/1.155, allocations: 1.916 MB / 0.647 GB, free: 212.6 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/1.155, allocations: 75.88 kB / 0.647 GB, free: 212.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/1.155, allocations: 10.44 kB / 0.647 GB, free: 212.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/1.157, allocations: 305.3 kB / 0.6473 GB, free: 212.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/1.158, allocations: 276.4 kB / 0.6476 GB, free: 212.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/1.16, allocations: 0.9066 MB / 0.6485 GB, free: 211.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/1.161, allocations: 67.44 kB / 0.6486 GB, free: 211.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/1.161, allocations: 78.59 kB / 0.6486 GB, free: 211.8 MB / 0.5137 GB 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.0004557/1.161, allocations: 261.4 kB / 0.6489 GB, free: 211.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002802/1.162, allocations: 106.3 kB / 0.649 GB, free: 211.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004171/1.166, allocations: 1.922 MB / 0.6509 GB, free: 210.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/1.166, allocations: 16.83 kB / 0.6509 GB, free: 210.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/1.166, allocations: 1.281 kB / 0.6509 GB, free: 210.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/1.166, allocations: 5.297 kB / 0.6509 GB, free: 210.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005918/1.172, allocations: 3.032 MB / 0.6538 GB, free: 209.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/1.172, allocations: 2.344 kB / 0.6538 GB, free: 209.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008673/1.173, allocations: 190.7 kB / 0.654 GB, free: 209.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001769/1.174, allocations: 368.8 kB / 0.6544 GB, free: 209.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/1.175, allocations: 38.73 kB / 0.6544 GB, free: 209.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001317/1.176, allocations: 0.8775 MB / 0.6553 GB, free: 208.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.176, allocations: 4.969 kB / 0.6553 GB, free: 208.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004447/1.18, allocations: 2.416 MB / 0.6576 GB, free: 207.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007362/1.181, allocations: 331.6 kB / 0.6579 GB, free: 207.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001667/1.181, allocations: 32.83 kB / 0.658 GB, free: 207.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008613/1.182, allocations: 58.69 kB / 0.658 GB, free: 207.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/1.182, allocations: 74.95 kB / 0.6581 GB, free: 207.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/1.182, allocations: 57.97 kB / 0.6582 GB, free: 207.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008509/1.183, allocations: 0.5715 MB / 0.6587 GB, free: 207.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/1.183, allocations: 0 / 0.6587 GB, free: 207.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003435/1.187, allocations: 1.179 MB / 0.6599 GB, free: 207.2 MB / 0.5137 GB 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.002563/1.189, allocations: 1.161 MB / 0.661 GB, free: 207 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00469/1.194, allocations: 2.636 MB / 0.6636 GB, free: 206 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/1.194, allocations: 4.375 kB / 0.6636 GB, free: 206 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001301/1.195, allocations: 0.741 MB / 0.6643 GB, free: 205.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/1.198, allocations: 0.5569 MB / 0.6649 GB, free: 205.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004553/1.203, allocations: 2.548 MB / 0.6673 GB, free: 203.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/1.203, allocations: 1.117 MB / 0.6684 GB, free: 203 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001736/1.205, allocations: 0.6106 MB / 0.669 GB, free: 202.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003665/1.205, allocations: 121.2 kB / 0.6691 GB, free: 202.8 MB / 0.5137 GB Notification: Performance of SimCode: time 1.653e-06/1.205, allocations: 1.203 kB / 0.6691 GB, free: 202.8 MB / 0.5137 GB Notification: Performance of Templates: time 0.05161/1.257, allocations: 41.95 MB / 0.7101 GB, free: 161 MB / 0.5137 GB 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)