Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001584/0.001584, allocations: 186.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001158/0.001157, allocations: 88.48 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005219/0.0005217, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3334, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.89/11.22, allocations: 3.633 GB / 3.999 GB, free: 95.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/11.23, allocations: 89.05 kB / 3.999 GB, free: 95.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.277/16.5, allocations: 0.9038 GB / 4.903 GB, free: 25.98 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.545e-06/16.5, allocations: 0 / 4.903 GB, free: 25.98 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003497/16.5, allocations: 76.25 kB / 4.903 GB, free: 25.97 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.03057/16.53, allocations: 6.308 MB / 4.909 GB, free: 22.86 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/16.53, allocations: 10.25 kB / 4.909 GB, free: 22.86 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002782/16.54, allocations: 462.5 kB / 4.91 GB, free: 22.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003681/16.54, allocations: 420.8 kB / 4.91 GB, free: 22.61 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/16.55, allocations: 2.41 MB / 4.912 GB, free: 22.09 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005602/16.55, allocations: 364 kB / 4.913 GB, free: 21.96 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002011/16.55, allocations: 313.2 kB / 4.913 GB, free: 21.96 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01908/16.57, allocations: 5.326 MB / 4.918 GB, free: 21.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002715/16.57, allocations: 22.59 kB / 4.918 GB, free: 21.33 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002224/16.57, allocations: 133.4 kB / 4.918 GB, free: 21.33 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004888/16.58, allocations: 259.5 kB / 4.919 GB, free: 21.32 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01787/16.59, allocations: 5.635 MB / 4.924 GB, free: 21.26 MB / 474.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.05313/16.65, allocations: 20.63 MB / 4.944 GB, free: 12.13 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/16.66, allocations: 3.669 MB / 4.948 GB, free: 11.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00395/16.66, allocations: 3.192 MB / 4.951 GB, free: 24.29 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008024/16.67, allocations: 2.67 MB / 4.954 GB, free: 23.32 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002544/16.67, allocations: 289 kB / 4.954 GB, free: 23.11 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 1.065e-05/16.67, allocations: 0 / 4.954 GB, free: 23.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.2378/16.91, allocations: 34.18 MB / 4.987 GB, free: 4.262 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003092/16.91, allocations: 479.9 kB / 4.988 GB, free: 3.688 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005111/16.92, allocations: 1.987 MB / 4.99 GB, free: 1.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001475/16.92, allocations: 97.7 kB / 4.99 GB, free: 1.879 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001824/16.92, allocations: 1.225 MB / 4.991 GB, free: 0.7344 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.4053/17.32, allocations: 1.321 MB / 4.992 GB, free: 41.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009974/17.33, allocations: 88.66 kB / 4.992 GB, free: 41.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003965/17.33, allocations: 485 kB / 4.993 GB, free: 41.36 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01056/17.34, allocations: 2.93 MB / 4.996 GB, free: 41.34 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01216/17.35, allocations: 3.917 MB / 4.999 GB, free: 40.31 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01179/17.36, allocations: 3.457 MB / 5.003 GB, free: 40.18 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.366e-05/17.36, allocations: 5.844 kB / 5.003 GB, free: 40.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.03715/17.4, allocations: 9.059 MB / 5.012 GB, free: 39.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002213/17.4, allocations: 9.862 MB / 5.021 GB, free: 29.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/17.4, allocations: 26.19 kB / 5.021 GB, free: 29.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01966/17.42, allocations: 2.785 MB / 5.024 GB, free: 29.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008708/17.43, allocations: 0.9288 MB / 5.025 GB, free: 29.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01621/17.44, allocations: 6.747 MB / 5.031 GB, free: 26.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008731/17.45, allocations: 0.5411 MB / 5.032 GB, free: 26.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001306/17.45, allocations: 243.1 kB / 5.032 GB, free: 26.51 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/17.45, allocations: 2.656 kB / 5.032 GB, free: 26.51 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04015/17.49, allocations: 9.39 MB / 5.041 GB, free: 26.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/17.5, allocations: 26.59 kB / 5.041 GB, free: 26.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01665/17.51, allocations: 2.588 MB / 5.044 GB, free: 26.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00836/17.52, allocations: 0.9463 MB / 5.045 GB, free: 26.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/17.54, allocations: 6.585 MB / 5.051 GB, free: 23.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00761/17.54, allocations: 0.5206 MB / 5.052 GB, free: 23.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/17.54, allocations: 236.7 kB / 5.052 GB, free: 23.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],NumberOfPeople.nextTimeEvent,$PRE.NumberOfPeople.nextTimeEventScaled,NumberOfPeople.nextTimeEventScaled,PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 485 * Array equations: 0 * Algorithm blocks: 3 * 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.003941/17.55, allocations: 1.106 MB / 5.053 GB, free: 22.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/17.55, allocations: 310.6 kB / 5.053 GB, free: 22.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03174/17.58, allocations: 8.786 MB / 5.062 GB, free: 22.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.172e-05/17.58, allocations: 39.03 kB / 5.062 GB, free: 22.57 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/17.58, allocations: 2.375 kB / 5.062 GB, free: 22.57 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02569/17.61, allocations: 6.872 MB / 5.069 GB, free: 22.17 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04506/17.65, allocations: 13.14 MB / 5.082 GB, free: 21.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.048e-05/17.65, allocations: 2.375 kB / 5.082 GB, free: 21.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007062/17.66, allocations: 0.7062 MB / 5.082 GB, free: 21.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02293/17.68, allocations: 3.166 MB / 5.085 GB, free: 21.43 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001495/17.68, allocations: 177 kB / 5.086 GB, free: 21.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01416/17.7, allocations: 6.364 MB / 5.092 GB, free: 18.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/17.7, allocations: 3.953 kB / 5.092 GB, free: 18.31 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0387/17.74, allocations: 11.14 MB / 5.103 GB, free: 17.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004606/17.74, allocations: 1.091 MB / 5.104 GB, free: 17.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001939/17.74, allocations: 135.9 kB / 5.104 GB, free: 17.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007819/17.75, allocations: 423.9 kB / 5.104 GB, free: 17.17 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001526/17.75, allocations: 262.6 kB / 5.105 GB, free: 17.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008873/17.75, allocations: 188.8 kB / 5.105 GB, free: 17.11 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003746/17.76, allocations: 1.506 MB / 5.106 GB, free: 16.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.172e-06/17.76, allocations: 6.625 kB / 5.106 GB, free: 16.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01732/17.78, allocations: 3.276 MB / 5.109 GB, free: 16.22 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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: 3 ($whenCondition1,NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (374): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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 7,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05298/17.83, allocations: 15.29 MB / 5.124 GB, free: 11.01 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03785/17.87, allocations: 11.34 MB / 5.135 GB, free: 5.871 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.622e-05/17.87, allocations: 4.984 kB / 5.135 GB, free: 5.867 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01189/17.88, allocations: 3.499 MB / 5.139 GB, free: 2.977 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01203/17.89, allocations: 1.415 MB / 5.14 GB, free: 1.992 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05674/17.95, allocations: 32.65 MB / 5.172 GB, free: 3.672 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003719/17.95, allocations: 2.466 MB / 5.174 GB, free: 1.746 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005342/17.96, allocations: 1.529 MB / 5.176 GB, free: 372 kB / 0.5105 GB Notification: Performance of SimCode: time 1.613e-06/17.96, allocations: 0 / 5.176 GB, free: 372 kB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.936/25.89, allocations: 171.3 MB / 5.343 GB, free: 4.215 MB / 0.5105 GB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)