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.006295/0.006295, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001306/0.001306, allocations: 189.2 kB / 16.67 MB, free: 5.93 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.499/1.499, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001192/0.001192, allocations: 60.33 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1049, allocations: 46.61 MB / 373.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.9123/1.017, allocations: 212.7 MB / 0.5722 GB, free: 1.449 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01896/1.036, allocations: 13.2 MB / 0.5851 GB, free: 1.309 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/1.038, allocations: 22.91 kB / 0.5851 GB, free: 1.309 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001532/1.039, allocations: 462.6 kB / 0.5855 GB, free: 1.301 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01249/1.052, allocations: 3.629 MB / 0.5891 GB, free: 1.145 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00903/1.061, allocations: 2.848 MB / 0.5918 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004354/1.065, allocations: 2.623 MB / 0.5944 GB, free: 1.043 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/1.067, allocations: 0.7874 MB / 0.5952 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009973/1.077, allocations: 3.107 MB / 0.5982 GB, free: 0.918 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003134/1.08, allocations: 1.066 MB / 0.5993 GB, free: 0.918 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004622/1.08, allocations: 121 kB / 0.5994 GB, free: 0.918 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01725/1.098, allocations: 6.694 MB / 0.6059 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001375/1.099, allocations: 0.5389 MB / 0.6064 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/1.101, allocations: 0.6374 MB / 0.6071 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01872/1.119, allocations: 4.914 MB / 0.6119 GB, free: 15.26 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/1.119, allocations: 2.906 kB / 0.6119 GB, free: 15.26 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.054e-06/1.119, allocations: 0.875 kB / 0.6119 GB, free: 15.26 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.756e-05/1.119, allocations: 0 / 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.006278/1.126, allocations: 2.139 MB / 0.6139 GB, free: 13.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/1.126, allocations: 11.62 kB / 0.614 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005295/1.126, allocations: 122.3 kB / 0.6141 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/1.128, allocations: 0.718 MB / 0.6148 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/1.128, allocations: 138.4 kB / 0.6149 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/1.128, allocations: 90 kB / 0.615 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002549/1.131, allocations: 1.466 MB / 0.6164 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.368e-05/1.131, allocations: 2.562 kB / 0.6164 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001651/1.131, allocations: 41.12 kB / 0.6165 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-05/1.131, allocations: 71.98 kB / 0.6165 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002281/1.133, allocations: 1.47 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.008946/1.142, allocations: 6.354 MB / 0.6242 GB, free: 8.449 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/1.144, allocations: 0.9804 MB / 0.6251 GB, free: 8.242 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007655/1.145, allocations: 0.5292 MB / 0.6256 GB, free: 7.898 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0018/1.147, allocations: 2.065 MB / 0.6277 GB, free: 5.469 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/1.147, allocations: 46.5 kB / 0.6277 GB, free: 5.422 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005796/1.147, allocations: 99.05 kB / 0.6278 GB, free: 5.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=84): time 3.476e-06/1.147, allocations: 0 / 0.6278 GB, free: 5.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01652/1.164, allocations: 4.791 MB / 0.6325 GB, free: 1.184 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/1.164, allocations: 119.7 kB / 0.6326 GB, free: 1.043 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/1.165, allocations: 0.7776 MB / 0.6334 GB, free: 260 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001379/1.165, allocations: 49.7 kB / 0.6334 GB, free: 204 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/1.166, allocations: 450.9 kB / 0.6338 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003524/1.166, allocations: 346.1 kB / 0.6342 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004442/1.166, allocations: 253.7 kB / 0.6344 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002182/1.167, allocations: 406.7 kB / 0.6348 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/1.168, allocations: 0.615 MB / 0.6354 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001596/1.17, allocations: 0.9682 MB / 0.6363 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002922/1.173, allocations: 1.656 MB / 0.638 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/1.173, allocations: 4 kB / 0.638 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003976/1.177, allocations: 1.937 MB / 0.6399 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.768e-05/1.177, allocations: 68.33 kB / 0.6399 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/1.177, allocations: 8 kB / 0.6399 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/1.178, allocations: 313.2 kB / 0.6402 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/1.179, allocations: 274.6 kB / 0.6405 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/1.181, allocations: 0.9136 MB / 0.6414 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/1.182, allocations: 63.91 kB / 0.6414 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/1.182, allocations: 75.97 kB / 0.6415 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001597/1.184, allocations: 0.8499 MB / 0.6423 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001385/1.185, allocations: 0.9491 MB / 0.6433 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00258/1.188, allocations: 1.636 MB / 0.6449 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.739e-06/1.188, allocations: 4 kB / 0.6449 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003826/1.192, allocations: 1.91 MB / 0.6467 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.704e-05/1.192, allocations: 59.41 kB / 0.6468 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/1.192, allocations: 12.59 kB / 0.6468 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001407/1.193, allocations: 315.7 kB / 0.6471 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/1.194, allocations: 267.5 kB / 0.6474 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/1.196, allocations: 0.9164 MB / 0.6483 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/1.197, allocations: 59.95 kB / 0.6483 GB, free: 476 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/1.197, allocations: 84.03 kB / 0.6484 GB, free: 392 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.0005021/1.197, allocations: 258.9 kB / 0.6486 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/1.198, allocations: 102.8 kB / 0.6487 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003827/1.201, allocations: 1.916 MB / 0.6506 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/1.202, allocations: 8 kB / 0.6506 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/1.202, allocations: 8 kB / 0.6506 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/1.202, allocations: 3.984 kB / 0.6506 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005371/1.207, allocations: 3.021 MB / 0.6536 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/1.207, allocations: 11.88 kB / 0.6536 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000821/1.208, allocations: 193.8 kB / 0.6538 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001686/1.209, allocations: 378.7 kB / 0.6541 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.542e-05/1.21, allocations: 39.97 kB / 0.6542 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/1.211, allocations: 0.8751 MB / 0.655 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/1.211, allocations: 3.984 kB / 0.655 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004387/1.215, allocations: 2.417 MB / 0.6574 GB, free: 7.074 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007377/1.216, allocations: 315.9 kB / 0.6577 GB, free: 6.746 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/1.216, allocations: 35.98 kB / 0.6577 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000867/1.217, allocations: 59.89 kB / 0.6578 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/1.217, allocations: 75.98 kB / 0.6579 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/1.218, allocations: 59.97 kB / 0.6579 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007986/1.218, allocations: 0.5693 MB / 0.6585 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/1.218, allocations: 0 / 0.6585 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003751/1.222, allocations: 1.163 MB / 0.6596 GB, free: 4.797 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.003316/1.225, allocations: 1.155 MB / 0.6607 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005057/1.23, allocations: 2.64 MB / 0.6633 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.231, allocations: 448 / 0.6633 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001448/1.232, allocations: 0.7344 MB / 0.664 GB, free: 408 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002766/1.235, allocations: 0.5653 MB / 0.6646 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005075/1.24, allocations: 2.499 MB / 0.667 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/1.241, allocations: 1.126 MB / 0.6681 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001837/1.242, allocations: 0.6096 MB / 0.6687 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003635/1.243, allocations: 123.4 kB / 0.6688 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/1.243, allocations: 0 / 0.6688 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of Templates: time 0.05968/1.302, allocations: 41.94 MB / 0.7098 GB, free: 1.5 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)