Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00104/0.00104, allocations: 89.52 kB / 16.65 MB, free: 6.262 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.001184/0.001184, allocations: 181.3 kB / 17.57 MB, free: 5.875 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.579/1.579, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0004592/0.0004592, allocations: 8 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.433/0.5352, allocations: 209.7 MB / 0.5254 GB, free: 7.77 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3411/0.8764, allocations: 13.5 MB / 0.5386 GB, free: 1.172 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.8775, allocations: 25.88 kB / 0.5386 GB, free: 1.172 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.8787, allocations: 408.7 kB / 0.539 GB, free: 1.172 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009583/0.8883, allocations: 3.172 MB / 0.5421 GB, free: 1.129 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006545/0.8949, allocations: 2.464 MB / 0.5445 GB, free: 1.078 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004497/0.8994, allocations: 3.779 MB / 0.5482 GB, free: 1.074 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001155/0.9005, allocations: 0.653 MB / 0.5488 GB, free: 1.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007269/0.9078, allocations: 2.783 MB / 0.5515 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.9108, allocations: 1.088 MB / 0.5526 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000225/0.911, allocations: 58.09 kB / 0.5527 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01339/0.9244, allocations: 6.878 MB / 0.5594 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007156/0.9251, allocations: 492.2 kB / 0.5598 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00108/0.9262, allocations: 0.6017 MB / 0.5604 GB, free: 16.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008567/0.9348, allocations: 4.97 MB / 0.5653 GB, free: 16.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.9348, allocations: 5 kB / 0.5653 GB, free: 16.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.9348, allocations: 0 / 0.5653 GB, free: 16.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.9349, allocations: 0 / 0.5653 GB, free: 16.36 MB / 446.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.004385/0.9392, allocations: 1.887 MB / 0.5671 GB, free: 15.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.9393, allocations: 10.06 kB / 0.5671 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003902/0.9397, allocations: 127.4 kB / 0.5673 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009786/0.9407, allocations: 0.6929 MB / 0.5679 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.9408, allocations: 131.4 kB / 0.5681 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.941, allocations: 91.83 kB / 0.5681 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.943, allocations: 1.461 MB / 0.5696 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.943, allocations: 6.75 kB / 0.5696 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.9432, allocations: 42.89 kB / 0.5696 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.938e-05/0.9432, allocations: 75.38 kB / 0.5697 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.9453, allocations: 1.467 MB / 0.5711 GB, free: 13.81 MB / 446.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.007801/0.9531, allocations: 6.357 MB / 0.5773 GB, free: 9.621 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.9547, allocations: 0.9969 MB / 0.5783 GB, free: 9.453 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006684/0.9554, allocations: 0.5252 MB / 0.5788 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001496/0.9569, allocations: 2.058 MB / 0.5808 GB, free: 7.133 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.957, allocations: 49.69 kB / 0.5809 GB, free: 7.094 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003821/0.9574, allocations: 104 kB / 0.581 GB, free: 7.035 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 2.515e-06/0.9574, allocations: 0 / 0.581 GB, free: 7.035 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01528/0.9727, allocations: 4.969 MB / 0.5858 GB, free: 5.676 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.9727, allocations: 118.8 kB / 0.5859 GB, free: 5.551 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009627/0.9737, allocations: 0.7791 MB / 0.5867 GB, free: 5.289 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.9738, allocations: 50.92 kB / 0.5868 GB, free: 5.254 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000284/0.9741, allocations: 448.6 kB / 0.5872 GB, free: 4.984 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002623/0.9744, allocations: 343.2 kB / 0.5875 GB, free: 4.738 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.9746, allocations: 109.2 kB / 0.5876 GB, free: 4.707 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.9747, allocations: 403.8 kB / 0.588 GB, free: 4.363 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.9758, allocations: 0.6182 MB / 0.5886 GB, free: 4.258 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.9771, allocations: 0.9669 MB / 0.5895 GB, free: 3.742 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.9796, allocations: 1.671 MB / 0.5912 GB, free: 3.137 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.9796, allocations: 2.969 kB / 0.5912 GB, free: 3.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003671/0.9833, allocations: 1.964 MB / 0.5931 GB, free: 1.992 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002741/0.9835, allocations: 447 kB / 0.5935 GB, free: 1.441 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.9836, allocations: 12 kB / 0.5935 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.9852, allocations: 332 kB / 0.5939 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.9863, allocations: 273 kB / 0.5941 GB, free: 0.918 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.9878, allocations: 0.9317 MB / 0.595 GB, free: 92 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.989, allocations: 106.4 kB / 0.5951 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/0.9892, allocations: 75.03 kB / 0.5952 GB, free: 15.94 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.9892, allocations: 4 kB / 0.5952 GB, free: 15.94 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003445/0.9927, allocations: 1.837 MB / 0.597 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.9927, allocations: 12 kB / 0.597 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.9943, allocations: 328.6 kB / 0.5973 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009926/0.9953, allocations: 276.6 kB / 0.5976 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.9968, allocations: 0.9272 MB / 0.5985 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.9979, allocations: 108.4 kB / 0.5986 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.998, allocations: 74.3 kB / 0.5987 GB, free: 13.19 MB / 462.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.0006621/0.9987, allocations: 421.7 kB / 0.5991 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.9989, allocations: 98.81 kB / 0.5992 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003672/1.003, allocations: 1.929 MB / 0.601 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/1.003, allocations: 12.75 kB / 0.6011 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.003, allocations: 0 / 0.6011 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/1.003, allocations: 10.88 kB / 0.6011 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005391/1.008, allocations: 3.051 MB / 0.604 GB, free: 9.219 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/1.008, allocations: 4 kB / 0.6041 GB, free: 9.215 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007678/1.009, allocations: 188.6 kB / 0.6042 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001905/1.011, allocations: 403.2 kB / 0.6046 GB, free: 8.703 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.237e-05/1.011, allocations: 36.67 kB / 0.6047 GB, free: 8.684 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/1.012, allocations: 0.8913 MB / 0.6055 GB, free: 7.879 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.012, allocations: 80 / 0.6055 GB, free: 7.879 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004316/1.016, allocations: 2.434 MB / 0.6079 GB, free: 5.625 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006406/1.017, allocations: 339.6 kB / 0.6082 GB, free: 5.273 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/1.017, allocations: 33.89 kB / 0.6083 GB, free: 5.242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009549/1.018, allocations: 87.88 kB / 0.6083 GB, free: 5.156 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/1.018, allocations: 72.89 kB / 0.6084 GB, free: 5.086 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/1.019, allocations: 59.97 kB / 0.6085 GB, free: 5.027 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007352/1.019, allocations: 0.5654 MB / 0.609 GB, free: 4.469 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.019, allocations: 0 / 0.609 GB, free: 4.469 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00396/1.023, allocations: 1.16 MB / 0.6101 GB, free: 3.309 MB / 462.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.00297/1.026, allocations: 1.161 MB / 0.6113 GB, free: 2.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006658/1.033, allocations: 2.639 MB / 0.6139 GB, free: 15.65 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/1.033, allocations: 12.47 kB / 0.6139 GB, free: 15.64 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002136/1.035, allocations: 0.7356 MB / 0.6146 GB, free: 14.92 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/1.039, allocations: 0.5317 MB / 0.6151 GB, free: 14.39 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007916/1.047, allocations: 3.019 MB / 0.6181 GB, free: 11.35 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000965/1.048, allocations: 1.112 MB / 0.6191 GB, free: 10.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003518/1.052, allocations: 0.6132 MB / 0.6197 GB, free: 9.602 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006095/1.053, allocations: 127.4 kB / 0.6199 GB, free: 9.477 MB / 478.1 MB Notification: Performance of SimCode: time 1.704e-06/1.053, allocations: 0 / 0.6199 GB, free: 9.477 MB / 478.1 MB Notification: Performance of Templates: time 0.07377/1.126, allocations: 40.28 MB / 0.6592 GB, free: 1.285 MB / 0.4981 GB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)