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.005759/0.005759, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001275/0.001275, allocations: 187.4 kB / 16.67 MB, free: 5.969 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.468/1.468, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.001488/0.001488, allocations: 47.92 kB / 326.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1165, allocations: 46.62 MB / 373.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.8872/1.004, allocations: 212.7 MB / 0.5722 GB, free: 1.465 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02053/1.024, allocations: 13.19 MB / 0.585 GB, free: 1.324 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001932/1.026, allocations: 24.09 kB / 0.5851 GB, free: 1.324 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/1.028, allocations: 473 kB / 0.5855 GB, free: 1.316 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0135/1.042, allocations: 3.665 MB / 0.5891 GB, free: 1.16 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009273/1.051, allocations: 2.854 MB / 0.5919 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004347/1.055, allocations: 2.629 MB / 0.5945 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001349/1.057, allocations: 0.7889 MB / 0.5952 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01054/1.067, allocations: 3.134 MB / 0.5983 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002789/1.07, allocations: 1.073 MB / 0.5993 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006358/1.071, allocations: 120.7 kB / 0.5994 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01694/1.088, allocations: 6.698 MB / 0.606 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001468/1.089, allocations: 0.5389 MB / 0.6065 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002018/1.091, allocations: 0.6372 MB / 0.6071 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01841/1.11, allocations: 4.912 MB / 0.6119 GB, free: 15.26 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/1.11, allocations: 0.7188 kB / 0.6119 GB, free: 15.26 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.575e-06/1.11, allocations: 0 / 0.6119 GB, free: 15.26 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.019e-05/1.11, allocations: 3 kB / 0.6119 GB, free: 15.26 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.00897/1.119, allocations: 2.137 MB / 0.614 GB, free: 13.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/1.119, allocations: 12.38 kB / 0.614 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000975/1.12, allocations: 126.3 kB / 0.6142 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001982/1.122, allocations: 0.7163 MB / 0.6149 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/1.122, allocations: 135.6 kB / 0.615 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000296/1.122, allocations: 92.38 kB / 0.6151 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003194/1.126, allocations: 1.462 MB / 0.6165 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.012e-05/1.126, allocations: 3.438 kB / 0.6165 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001636/1.126, allocations: 35.94 kB / 0.6165 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/1.126, allocations: 78.95 kB / 0.6166 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002773/1.129, allocations: 1.468 MB / 0.618 GB, free: 12.63 MB / 494.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.0105/1.139, allocations: 6.348 MB / 0.6242 GB, free: 8.457 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002009/1.141, allocations: 0.98 MB / 0.6252 GB, free: 8.238 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008532/1.142, allocations: 0.5297 MB / 0.6257 GB, free: 7.891 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00229/1.144, allocations: 2.066 MB / 0.6277 GB, free: 5.461 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.472e-05/1.144, allocations: 45.75 kB / 0.6278 GB, free: 5.414 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006771/1.145, allocations: 97.42 kB / 0.6279 GB, free: 5.332 MB / 494.1 MB Notification: Performance of pre-optimization done (n=84): time 9.277e-06/1.145, allocations: 0 / 0.6279 GB, free: 5.332 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01745/1.163, allocations: 4.798 MB / 0.6326 GB, free: 1.133 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/1.163, allocations: 119.7 kB / 0.6327 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/1.164, allocations: 0.7698 MB / 0.6334 GB, free: 216 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/1.164, allocations: 49.7 kB / 0.6335 GB, free: 160 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/1.165, allocations: 450.3 kB / 0.6339 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003481/1.165, allocations: 349.3 kB / 0.6342 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004951/1.165, allocations: 250.7 kB / 0.6345 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001862/1.166, allocations: 402.7 kB / 0.6349 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/1.167, allocations: 0.6189 MB / 0.6355 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001577/1.169, allocations: 0.9613 MB / 0.6364 GB, free: 13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002901/1.171, allocations: 1.66 MB / 0.638 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/1.171, allocations: 4 kB / 0.638 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004146/1.176, allocations: 1.945 MB / 0.6399 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.146e-05/1.176, allocations: 70.67 kB / 0.64 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.917e-05/1.176, allocations: 8 kB / 0.64 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/1.177, allocations: 307.2 kB / 0.6403 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/1.178, allocations: 278.7 kB / 0.6406 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/1.18, allocations: 0.9158 MB / 0.6415 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/1.181, allocations: 63.91 kB / 0.6415 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002066/1.182, allocations: 71.97 kB / 0.6416 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001676/1.183, allocations: 0.8538 MB / 0.6424 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001489/1.185, allocations: 0.9412 MB / 0.6433 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002776/1.188, allocations: 1.64 MB / 0.6449 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.052e-05/1.188, allocations: 4 kB / 0.6449 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.00398/1.192, allocations: 1.911 MB / 0.6468 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/1.192, allocations: 63.41 kB / 0.6469 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/1.192, allocations: 12 kB / 0.6469 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/1.193, allocations: 318.9 kB / 0.6472 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/1.194, allocations: 267.5 kB / 0.6474 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/1.196, allocations: 0.9097 MB / 0.6483 GB, free: 480 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/1.197, allocations: 63.95 kB / 0.6484 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/1.197, allocations: 75.97 kB / 0.6485 GB, free: 340 kB / 0.4981 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.0004838/1.197, allocations: 267.6 kB / 0.6487 GB, free: 84 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004196/1.198, allocations: 98.98 kB / 0.6488 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004033/1.202, allocations: 1.925 MB / 0.6507 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.907e-05/1.202, allocations: 8 kB / 0.6507 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/1.202, allocations: 0 / 0.6507 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/1.202, allocations: 3.984 kB / 0.6507 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005692/1.208, allocations: 3.036 MB / 0.6537 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/1.208, allocations: 11.75 kB / 0.6537 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008416/1.209, allocations: 188.4 kB / 0.6539 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/1.21, allocations: 380.5 kB / 0.6542 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/1.21, allocations: 39.97 kB / 0.6543 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/1.212, allocations: 0.8735 MB / 0.6551 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.212, allocations: 0 / 0.6551 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004595/1.216, allocations: 2.415 MB / 0.6575 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008268/1.217, allocations: 319.8 kB / 0.6578 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003235/1.218, allocations: 27.98 kB / 0.6578 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/1.219, allocations: 67.89 kB / 0.6579 GB, free: 6.586 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/1.219, allocations: 71.98 kB / 0.6579 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/1.219, allocations: 55.97 kB / 0.658 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009061/1.22, allocations: 0.5732 MB / 0.6586 GB, free: 5.898 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/1.22, allocations: 0 / 0.6586 GB, free: 5.898 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005031/1.225, allocations: 1.163 MB / 0.6597 GB, free: 4.734 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.00549/1.231, allocations: 1.144 MB / 0.6608 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005397/1.236, allocations: 2.637 MB / 0.6634 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.236, allocations: 448 / 0.6634 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001467/1.237, allocations: 0.7383 MB / 0.6641 GB, free: 348 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002898/1.24, allocations: 0.5701 MB / 0.6647 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00577/1.246, allocations: 2.5 MB / 0.6671 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008464/1.247, allocations: 1.126 MB / 0.6682 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002054/1.249, allocations: 0.6174 MB / 0.6688 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004391/1.25, allocations: 123.4 kB / 0.6689 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of SimCode: time 2.525e-06/1.25, allocations: 0 / 0.6689 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of Templates: time 0.06762/1.317, allocations: 41.95 MB / 0.7099 GB, free: 1.43 MB / 0.5606 GB 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)