Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001436/0.001436, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.4/1.4, allocations: 170.6 MB / 178.7 MB, free: 15.59 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001616/0.001616, allocations: 103.5 kB / 218 MB, free: 8.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.884e-05/1.884e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07841/0.07844, allocations: 38.77 MB / 301 MB, free: 3.625 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.013/9.091, allocations: 3.68 GB / 3.974 GB, free: 84.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/9.091, allocations: 80.42 kB / 3.974 GB, free: 84.63 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Examples/TraceSubstances.mo:112:17-112:29:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Examples/TraceSubstances.mo:122:23-122:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Examples/TraceSubstances.mo:168:23-168:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 3.726/12.82, allocations: 0.8842 GB / 4.858 GB, free: 22.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/12.82, allocations: 0 / 4.858 GB, free: 22.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000295/12.82, allocations: 84.59 kB / 4.858 GB, free: 22.29 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 820 * Number of variables: 820 Notification: Performance of Generate backend data structure: time 0.02589/12.84, allocations: 6.001 MB / 4.864 GB, free: 19.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/12.84, allocations: 7.406 kB / 4.864 GB, free: 19.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003006/12.85, allocations: 406.4 kB / 4.864 GB, free: 19.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006737/12.85, allocations: 2.403 MB / 4.867 GB, free: 18.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002709/12.85, allocations: 259.1 kB / 4.867 GB, free: 18.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001158/12.86, allocations: 180.2 kB / 4.867 GB, free: 18.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008153/12.86, allocations: 5.102 MB / 4.872 GB, free: 18.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009658/12.87, allocations: 4.791 MB / 4.877 GB, free: 17.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.114e-05/12.87, allocations: 13.38 kB / 4.877 GB, free: 17.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004865/12.87, allocations: 9.609 kB / 4.877 GB, free: 17.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002488/12.87, allocations: 263.4 kB / 4.877 GB, free: 17.93 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.03293/12.91, allocations: 18.62 MB / 4.895 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005863/12.91, allocations: 3.292 MB / 4.898 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00317/12.92, allocations: 2.095 MB / 4.9 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002095/12.92, allocations: 2.714 MB / 4.903 GB, free: 7.645 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003933/12.92, allocations: 2.408 MB / 4.905 GB, free: 7.434 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001541/12.92, allocations: 194.8 kB / 4.906 GB, free: 7.309 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 6.051e-06/12.92, allocations: 0 / 4.906 GB, free: 7.309 MB / 410.7 MB Notification: Performance of matching and sorting (n=368): time 0.08107/13, allocations: 24.16 MB / 4.929 GB, free: 14.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002564/13, allocations: 479.7 kB / 4.93 GB, free: 14.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002556/13.01, allocations: 1.441 MB / 4.931 GB, free: 12.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001231/13.01, allocations: 29.7 kB / 4.931 GB, free: 12.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/13.01, allocations: 1.329 MB / 4.932 GB, free: 11.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002053/13.01, allocations: 1.249 MB / 4.934 GB, free: 10.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003386/13.01, allocations: 4 kB / 4.934 GB, free: 10.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003463/13.01, allocations: 483.1 kB / 4.934 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003951/13.02, allocations: 2.507 MB / 4.937 GB, free: 7.883 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004775/13.02, allocations: 3.488 MB / 4.94 GB, free: 4.355 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01391/13.04, allocations: 4.511 MB / 4.944 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-05/13.04, allocations: 8 kB / 4.944 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.3252/13.36, allocations: 9.846 MB / 4.954 GB, free: 36.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002243/13.36, allocations: 10.82 MB / 4.965 GB, free: 25.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.828e-05/13.36, allocations: 26.22 kB / 4.965 GB, free: 25.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005767/13.37, allocations: 1.994 MB / 4.967 GB, free: 25.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005897/13.37, allocations: 0.9368 MB / 4.967 GB, free: 25.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006867/13.38, allocations: 6.116 MB / 4.973 GB, free: 22.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005769/13.39, allocations: 463 kB / 4.974 GB, free: 22.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/13.39, allocations: 248.6 kB / 4.974 GB, free: 22.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/13.39, allocations: 3.625 kB / 4.974 GB, free: 22.69 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02555/13.41, allocations: 9.402 MB / 4.983 GB, free: 22.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001135/13.41, allocations: 28.3 kB / 4.983 GB, free: 22.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005015/13.42, allocations: 1.916 MB / 4.985 GB, free: 22.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004659/13.42, allocations: 0.9536 MB / 4.986 GB, free: 22.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004971/13.43, allocations: 5.936 MB / 4.992 GB, free: 19.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005518/13.43, allocations: 456 kB / 4.992 GB, free: 19.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001516/13.44, allocations: 243.8 kB / 4.993 GB, free: 19.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 14 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 486 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001905/13.44, allocations: 222.5 kB / 4.993 GB, free: 19.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/13.44, allocations: 270.6 kB / 4.993 GB, free: 19.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01673/13.46, allocations: 7.729 MB / 5.001 GB, free: 19.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.824e-05/13.46, allocations: 44.97 kB / 5.001 GB, free: 19.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/13.46, allocations: 0 / 5.001 GB, free: 19.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01117/13.47, allocations: 6.092 MB / 5.007 GB, free: 18.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0251/13.49, allocations: 12.57 MB / 5.019 GB, free: 17.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/13.49, allocations: 3.438 kB / 5.019 GB, free: 17.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003514/13.5, allocations: 0.6849 MB / 5.02 GB, free: 17.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00784/13.5, allocations: 2.392 MB / 5.022 GB, free: 17.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001129/13.51, allocations: 131.8 kB / 5.022 GB, free: 17.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005557/13.51, allocations: 5.824 MB / 5.028 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/13.51, allocations: 9.594 kB / 5.028 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02173/13.53, allocations: 10.45 MB / 5.038 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00286/13.54, allocations: 1.015 MB / 5.039 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/13.54, allocations: 64.53 kB / 5.039 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003887/13.54, allocations: 347.8 kB / 5.039 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004615/13.54, allocations: 254.2 kB / 5.04 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004122/13.54, allocations: 183.7 kB / 5.04 GB, free: 13.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001484/13.54, allocations: 1.062 MB / 5.041 GB, free: 13.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/13.54, allocations: 2.406 kB / 5.041 GB, free: 13.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01164/13.55, allocations: 2.968 MB / 5.044 GB, free: 13.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 2 ($whenCondition1,NumberOfPeople.nextTimeEvent) * Number of discrete states: 1 (NumberOfPeople.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (363): * Single equations (assignments): 352 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.008815/13.56, allocations: 3.357 MB / 5.047 GB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0162/13.58, allocations: 10.1 MB / 5.057 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/13.58, allocations: 3.5 kB / 5.057 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004996/13.58, allocations: 3.013 MB / 5.06 GB, free: 12.49 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00669/13.59, allocations: 1.146 MB / 5.061 GB, free: 12.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/13.61, allocations: 8.488 MB / 5.069 GB, free: 10.91 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001772/13.61, allocations: 2.463 MB / 5.072 GB, free: 9.93 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008221/13.62, allocations: 2.611 MB / 5.074 GB, free: 9.117 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/13.62, allocations: 317 kB / 5.074 GB, free: 8.848 MB / 426.7 MB Notification: Performance of SimCode: time 9.81e-07/13.62, allocations: 0 / 5.074 GB, free: 8.848 MB / 426.7 MB Notification: Performance of Templates: time 0.4782/14.1, allocations: 109.8 MB / 5.182 GB, free: 44.86 MB / 442.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)