Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002584/0.002589, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.266/3.266, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001445/0.001446, allocations: 94.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005304/0.0005305, allocations: 12 kB / 327 MB, free: 15.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.1743, allocations: 47.57 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.861/1.035, allocations: 165.9 MB / 0.5278 GB, free: 7.309 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5345/1.57, allocations: 13.41 MB / 0.5409 GB, free: 2.344 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002025/1.572, allocations: 26.5 kB / 0.5409 GB, free: 2.344 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002904/1.575, allocations: 365.8 kB / 0.5413 GB, free: 2.34 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02168/1.597, allocations: 2.727 MB / 0.5439 GB, free: 2.297 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0142/1.611, allocations: 1.905 MB / 0.5458 GB, free: 2.258 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.006191/1.617, allocations: 1.43 MB / 0.5472 GB, free: 2.254 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003096/1.621, allocations: 0.6412 MB / 0.5478 GB, free: 2.184 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01317/1.634, allocations: 2.106 MB / 0.5499 GB, free: 2.156 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003921/1.638, allocations: 0.7433 MB / 0.5506 GB, free: 2.156 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009963/1.639, allocations: 63.19 kB / 0.5507 GB, free: 2.152 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02558/1.664, allocations: 5.385 MB / 0.5559 GB, free: 2.148 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001931/1.666, allocations: 450 kB / 0.5563 GB, free: 2.148 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/1.668, allocations: 241.1 kB / 0.5566 GB, free: 18.12 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01461/1.683, allocations: 2.991 MB / 0.5595 GB, free: 17.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/1.683, allocations: 0 / 0.5595 GB, free: 17.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.817e-06/1.683, allocations: 0 / 0.5595 GB, free: 17.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.025e-05/1.683, allocations: 0 / 0.5595 GB, free: 17.89 MB / 426.7 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.01161/1.695, allocations: 1.832 MB / 0.5613 GB, free: 16.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.052e-05/1.695, allocations: 8.438 kB / 0.5613 GB, free: 16.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001825/1.697, allocations: 133.8 kB / 0.5614 GB, free: 16.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003808/1.701, allocations: 0.6663 MB / 0.5621 GB, free: 16.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004094/1.701, allocations: 135.5 kB / 0.5622 GB, free: 16.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008093/1.702, allocations: 86.34 kB / 0.5623 GB, free: 16.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007425/1.709, allocations: 1.452 MB / 0.5637 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.301e-05/1.71, allocations: 0 / 0.5637 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005162/1.71, allocations: 47.92 kB / 0.5637 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005697/1.711, allocations: 71.64 kB / 0.5638 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007739/1.719, allocations: 1.464 MB / 0.5652 GB, free: 15.6 MB / 426.7 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.02406/1.743, allocations: 6.394 MB / 0.5715 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004732/1.747, allocations: 0.9868 MB / 0.5724 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002761/1.75, allocations: 1.729 MB / 0.5741 GB, free: 9.277 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/1.751, allocations: 44.12 kB / 0.5742 GB, free: 9.238 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001163/1.752, allocations: 104.6 kB / 0.5743 GB, free: 9.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 5.911e-06/1.752, allocations: 2.938 kB / 0.5743 GB, free: 9.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.04123/1.793, allocations: 4.968 MB / 0.5791 GB, free: 7.805 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/1.793, allocations: 111.8 kB / 0.5792 GB, free: 7.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/1.795, allocations: 0.7687 MB / 0.58 GB, free: 7.422 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000518/1.796, allocations: 48.05 kB / 0.58 GB, free: 7.391 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006218/1.797, allocations: 471.8 kB / 0.5805 GB, free: 7.066 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008491/1.797, allocations: 346.2 kB / 0.5808 GB, free: 6.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/1.798, allocations: 27.69 kB / 0.5808 GB, free: 6.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002875/1.798, allocations: 358.6 kB / 0.5812 GB, free: 6.492 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002949/1.801, allocations: 0.6083 MB / 0.5818 GB, free: 6.387 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00367/1.805, allocations: 0.9541 MB / 0.5827 GB, free: 5.875 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003567/1.808, allocations: 0.7913 MB / 0.5835 GB, free: 5.707 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.669e-05/1.808, allocations: 3.312 kB / 0.5835 GB, free: 5.707 MB / 426.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.009642/1.818, allocations: 1.877 MB / 0.5853 GB, free: 5.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003126/1.821, allocations: 4.066 MB / 0.5893 GB, free: 1.043 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.662e-05/1.821, allocations: 9.312 kB / 0.5893 GB, free: 1.043 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004495/1.826, allocations: 332.6 kB / 0.5896 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003432/1.83, allocations: 274.1 kB / 0.5899 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004194/1.834, allocations: 0.9274 MB / 0.5908 GB, free: 312 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003687/1.838, allocations: 104.2 kB / 0.5909 GB, free: 284 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007369/1.838, allocations: 74.44 kB / 0.591 GB, free: 276 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/1.838, allocations: 10.16 kB / 0.591 GB, free: 272 kB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01035/1.849, allocations: 1.817 MB / 0.5927 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-05/1.849, allocations: 9.719 kB / 0.5927 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004037/1.853, allocations: 327.1 kB / 0.5931 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003261/1.856, allocations: 275.3 kB / 0.5933 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/1.861, allocations: 0.9245 MB / 0.5942 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003367/1.864, allocations: 101.9 kB / 0.5943 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005822/1.865, allocations: 76.39 kB / 0.5944 GB, free: 15.18 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.002026/1.867, allocations: 430.1 kB / 0.5948 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006374/1.868, allocations: 96.44 kB / 0.5949 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/1.878, allocations: 1.94 MB / 0.5968 GB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.198e-05/1.878, allocations: 12 kB / 0.5968 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/1.879, allocations: 1.062 kB / 0.5968 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.319e-05/1.879, allocations: 7.984 kB / 0.5968 GB, free: 13.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01588/1.894, allocations: 3.05 MB / 0.5998 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-05/1.895, allocations: 0 / 0.5998 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002578/1.897, allocations: 190.9 kB / 0.6 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005412/1.903, allocations: 396.3 kB / 0.6004 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005351/1.903, allocations: 34.86 kB / 0.6004 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003777/1.907, allocations: 0.8868 MB / 0.6012 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.102e-05/1.907, allocations: 14.94 kB / 0.6013 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/1.921, allocations: 2.49 MB / 0.6037 GB, free: 8.375 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/1.923, allocations: 353 kB / 0.604 GB, free: 8.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005976/1.923, allocations: 24.25 kB / 0.6041 GB, free: 8.082 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003018/1.926, allocations: 90.56 kB / 0.6041 GB, free: 8.008 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006145/1.927, allocations: 82.42 kB / 0.6042 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003823/1.927, allocations: 58.09 kB / 0.6043 GB, free: 7.891 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001835/1.929, allocations: 0.5433 MB / 0.6048 GB, free: 7.488 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.81e-07/1.929, allocations: 0 / 0.6048 GB, free: 7.488 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008951/1.938, allocations: 1.159 MB / 0.6059 GB, free: 6.426 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008532/1.947, allocations: 1.109 MB / 0.607 GB, free: 5.438 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01406/1.961, allocations: 2.634 MB / 0.6096 GB, free: 3.504 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.825e-05/1.961, allocations: 2.062 kB / 0.6096 GB, free: 3.504 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004225/1.965, allocations: 0.7432 MB / 0.6103 GB, free: 2.996 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006724/1.972, allocations: 0.4932 MB / 0.6108 GB, free: 2.586 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/1.987, allocations: 2.982 MB / 0.6137 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001775/1.989, allocations: 1.138 MB / 0.6148 GB, free: 14.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004006/1.993, allocations: 140.7 kB / 0.615 GB, free: 14.64 MB / 458.7 MB Notification: Performance of SimCode: time 2.214e-06/1.993, allocations: 0 / 0.615 GB, free: 14.64 MB / 458.7 MB Notification: Performance of Templates: time 0.1238/2.117, allocations: 33.23 MB / 0.6474 GB, free: 13.56 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)