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.001082/0.001082, allocations: 103.1 kB / 17.06 MB, free: 6.016 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.001188/0.001188, allocations: 195 kB / 18 MB, free: 5.094 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.474/1.474, allocations: 205.1 MB / 223.9 MB, free: 12.29 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.001653/0.001653, allocations: 51.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1301, allocations: 46.61 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.919/1.049, allocations: 212.7 MB / 0.5735 GB, free: 1.445 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02034/1.07, allocations: 13.2 MB / 0.5863 GB, free: 1.305 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/1.071, allocations: 23.88 kB / 0.5864 GB, free: 1.305 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/1.072, allocations: 466.6 kB / 0.5868 GB, free: 1.297 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01232/1.085, allocations: 3.624 MB / 0.5904 GB, free: 1.145 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008957/1.094, allocations: 2.847 MB / 0.5931 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004439/1.098, allocations: 2.624 MB / 0.5957 GB, free: 1.043 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/1.1, allocations: 0.7871 MB / 0.5965 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008919/1.109, allocations: 3.117 MB / 0.5995 GB, free: 0.918 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00286/1.112, allocations: 1.072 MB / 0.6006 GB, free: 0.918 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003025/1.112, allocations: 120.4 kB / 0.6007 GB, free: 0.918 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01533/1.127, allocations: 6.694 MB / 0.6072 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/1.128, allocations: 0.5405 MB / 0.6077 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001295/1.13, allocations: 0.6365 MB / 0.6084 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01581/1.145, allocations: 4.918 MB / 0.6132 GB, free: 15.28 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/1.145, allocations: 1.031 kB / 0.6132 GB, free: 15.28 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.314e-06/1.145, allocations: 0 / 0.6132 GB, free: 15.28 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001043/1.146, allocations: 0.875 kB / 0.6132 GB, free: 15.28 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.008711/1.154, allocations: 2.138 MB / 0.6152 GB, free: 13.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/1.154, allocations: 10.03 kB / 0.6153 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001084/1.155, allocations: 125.8 kB / 0.6154 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/1.158, allocations: 0.7184 MB / 0.6161 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/1.158, allocations: 132.9 kB / 0.6162 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003878/1.158, allocations: 92.16 kB / 0.6163 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003561/1.162, allocations: 1.462 MB / 0.6177 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.286e-05/1.162, allocations: 2.75 kB / 0.6177 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/1.162, allocations: 44.28 kB / 0.6178 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/1.162, allocations: 74.14 kB / 0.6178 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002705/1.165, allocations: 1.471 MB / 0.6193 GB, free: 12.65 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.01089/1.176, allocations: 6.35 MB / 0.6255 GB, free: 8.477 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/1.178, allocations: 0.9789 MB / 0.6264 GB, free: 8.289 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008243/1.179, allocations: 0.5255 MB / 0.6269 GB, free: 7.949 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001912/1.181, allocations: 2.063 MB / 0.629 GB, free: 5.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/1.181, allocations: 51.09 kB / 0.629 GB, free: 5.469 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006178/1.182, allocations: 97.03 kB / 0.6291 GB, free: 5.391 MB / 494.1 MB Notification: Performance of pre-optimization done (n=84): time 6.232e-06/1.182, allocations: 0.9375 kB / 0.6291 GB, free: 5.391 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.017/1.199, allocations: 4.802 MB / 0.6338 GB, free: 1.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.162e-05/1.199, allocations: 115.8 kB / 0.6339 GB, free: 1.094 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/1.2, allocations: 0.7815 MB / 0.6347 GB, free: 308 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/1.2, allocations: 41.7 kB / 0.6347 GB, free: 260 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004214/1.201, allocations: 455.2 kB / 0.6351 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/1.201, allocations: 339.1 kB / 0.6355 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005061/1.201, allocations: 254.7 kB / 0.6357 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002171/1.202, allocations: 406.7 kB / 0.6361 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/1.203, allocations: 0.6111 MB / 0.6367 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/1.205, allocations: 0.9692 MB / 0.6376 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002946/1.208, allocations: 1.659 MB / 0.6393 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/1.208, allocations: 4 kB / 0.6393 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004379/1.212, allocations: 1.94 MB / 0.6412 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.465e-05/1.212, allocations: 63.39 kB / 0.6412 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/1.212, allocations: 12 kB / 0.6412 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/1.214, allocations: 313.2 kB / 0.6415 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/1.215, allocations: 278.8 kB / 0.6418 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/1.216, allocations: 0.9044 MB / 0.6427 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/1.218, allocations: 63.91 kB / 0.6427 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/1.218, allocations: 80.03 kB / 0.6428 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001707/1.219, allocations: 0.8498 MB / 0.6436 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001495/1.221, allocations: 0.9498 MB / 0.6446 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002768/1.224, allocations: 1.639 MB / 0.6462 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.16e-05/1.224, allocations: 4.078 kB / 0.6462 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003872/1.228, allocations: 1.907 MB / 0.648 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.353e-05/1.228, allocations: 67.28 kB / 0.6481 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/1.228, allocations: 12 kB / 0.6481 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/1.229, allocations: 304.6 kB / 0.6484 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/1.23, allocations: 278.6 kB / 0.6487 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/1.232, allocations: 0.9162 MB / 0.6496 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/1.233, allocations: 72.02 kB / 0.6496 GB, free: 500 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/1.233, allocations: 67.98 kB / 0.6497 GB, free: 432 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.0005177/1.233, allocations: 271.8 kB / 0.65 GB, free: 172 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003394/1.234, allocations: 98.81 kB / 0.65 GB, free: 72 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004043/1.238, allocations: 1.919 MB / 0.6519 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/1.238, allocations: 12 kB / 0.6519 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/1.238, allocations: 0 / 0.6519 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/1.238, allocations: 5.672 kB / 0.6519 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005868/1.244, allocations: 3.029 MB / 0.6549 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/1.244, allocations: 3.938 kB / 0.6549 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000824/1.245, allocations: 189.6 kB / 0.6551 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001767/1.246, allocations: 375.4 kB / 0.6554 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/1.247, allocations: 43.97 kB / 0.6555 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/1.248, allocations: 0.8708 MB / 0.6563 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/1.248, allocations: 7.125 kB / 0.6563 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004639/1.253, allocations: 2.415 MB / 0.6587 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008097/1.254, allocations: 323.9 kB / 0.659 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002672/1.254, allocations: 27.98 kB / 0.659 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/1.255, allocations: 59.89 kB / 0.6591 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/1.255, allocations: 76.86 kB / 0.6592 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/1.255, allocations: 59.97 kB / 0.6592 GB, free: 6.562 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008128/1.256, allocations: 0.5693 MB / 0.6598 GB, free: 6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/1.256, allocations: 0 / 0.6598 GB, free: 6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00406/1.26, allocations: 1.163 MB / 0.6609 GB, free: 4.836 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.004148/1.264, allocations: 1.158 MB / 0.662 GB, free: 3.746 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005484/1.27, allocations: 2.634 MB / 0.6646 GB, free: 1.145 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/1.27, allocations: 4.438 kB / 0.6646 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001505/1.271, allocations: 0.7349 MB / 0.6653 GB, free: 440 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/1.274, allocations: 0.5509 MB / 0.6659 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005725/1.28, allocations: 2.501 MB / 0.6683 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008746/1.281, allocations: 1.123 MB / 0.6694 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002195/1.283, allocations: 0.6096 MB / 0.67 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/1.284, allocations: 127.3 kB / 0.6701 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of SimCode: time 8.41e-07/1.284, allocations: 0 / 0.6701 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of Templates: time 0.06906/1.353, allocations: 42.4 MB / 0.7115 GB, free: 1.086 MB / 0.5606 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)