Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 91.8 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003093, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3112, allocations: 50.4 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.324/9.636, allocations: 3.574 GB / 3.966 GB, free: 68.36 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/9.636, allocations: 93.36 kB / 3.966 GB, free: 68.31 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.65/13.29, allocations: 0.8859 GB / 4.852 GB, free: 27.61 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.086e-06/13.29, allocations: 0 / 4.852 GB, free: 27.61 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003453/13.29, allocations: 80.66 kB / 4.852 GB, free: 27.61 MB / 490.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.02568/13.31, allocations: 6.109 MB / 4.858 GB, free: 24.43 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/13.31, allocations: 6.844 kB / 4.858 GB, free: 24.43 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002782/13.31, allocations: 462.8 kB / 4.859 GB, free: 24.37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003351/13.32, allocations: 418 kB / 4.859 GB, free: 24.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00925/13.33, allocations: 2.408 MB / 4.861 GB, free: 23.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006133/13.33, allocations: 363.9 kB / 4.862 GB, free: 23.47 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002299/13.33, allocations: 303.2 kB / 4.862 GB, free: 23.46 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0163/13.35, allocations: 5.327 MB / 4.867 GB, free: 22.85 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002479/13.35, allocations: 7.688 kB / 4.867 GB, free: 22.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001801/13.35, allocations: 127.5 kB / 4.867 GB, free: 22.85 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003434/13.35, allocations: 267.9 kB / 4.868 GB, free: 22.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01281/13.36, allocations: 5.62 MB / 4.873 GB, free: 22.77 MB / 490.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.04317/13.4, allocations: 20.61 MB / 4.893 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008123/13.41, allocations: 3.66 MB / 4.897 GB, free: 10.82 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002659/13.42, allocations: 3.239 MB / 4.9 GB, free: 7.277 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006039/13.42, allocations: 2.661 MB / 4.903 GB, free: 6.301 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002618/13.42, allocations: 291.2 kB / 4.903 GB, free: 6.094 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 1.495e-05/13.42, allocations: 0 / 4.903 GB, free: 6.094 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.5508/13.98, allocations: 34.88 MB / 4.937 GB, free: 43.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002589/13.98, allocations: 486.5 kB / 4.937 GB, free: 42.64 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003607/13.98, allocations: 1.922 MB / 4.939 GB, free: 42.42 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001602/13.98, allocations: 96.73 kB / 4.939 GB, free: 42.39 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001359/13.98, allocations: 1.3 MB / 4.941 GB, free: 41.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002386/13.98, allocations: 1.328 MB / 4.942 GB, free: 41.29 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004279/13.99, allocations: 85.31 kB / 4.942 GB, free: 41.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003604/13.99, allocations: 478.9 kB / 4.943 GB, free: 40.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006335/13.99, allocations: 2.926 MB / 4.945 GB, free: 40.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00812/14, allocations: 3.913 MB / 4.949 GB, free: 39.93 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007572/14.01, allocations: 3.456 MB / 4.953 GB, free: 39.79 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.195e-05/14.01, allocations: 6.656 kB / 4.953 GB, free: 39.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02383/14.03, allocations: 9.165 MB / 4.962 GB, free: 39.38 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002742/14.03, allocations: 10.26 MB / 4.972 GB, free: 28.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/14.03, allocations: 24.69 kB / 4.972 GB, free: 28.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01076/14.05, allocations: 2.761 MB / 4.974 GB, free: 28.63 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005547/14.05, allocations: 0.923 MB / 4.975 GB, free: 28.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009935/14.06, allocations: 6.745 MB / 4.982 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006851/14.07, allocations: 0.5398 MB / 4.982 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001831/14.07, allocations: 231.7 kB / 4.983 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/14.07, allocations: 5.719 kB / 4.983 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02708/14.1, allocations: 9.369 MB / 4.992 GB, free: 25.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/14.1, allocations: 26.16 kB / 4.992 GB, free: 25.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009297/14.11, allocations: 2.572 MB / 4.994 GB, free: 25.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005715/14.11, allocations: 0.94 MB / 4.995 GB, free: 25.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009251/14.12, allocations: 6.58 MB / 5.002 GB, free: 22.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006465/14.13, allocations: 0.5216 MB / 5.002 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001782/14.13, allocations: 226 kB / 5.002 GB, free: 22.09 MB / 0.4948 GB 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.004988/14.13, allocations: 1.092 MB / 5.003 GB, free: 21.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001815/14.14, allocations: 308.4 kB / 5.004 GB, free: 21.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0187/14.16, allocations: 8.867 MB / 5.012 GB, free: 21.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.706e-05/14.16, allocations: 47.39 kB / 5.012 GB, free: 21.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/14.16, allocations: 0 / 5.012 GB, free: 21.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01584/14.17, allocations: 6.852 MB / 5.019 GB, free: 21.04 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0338/14.21, allocations: 13.21 MB / 5.032 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-05/14.21, allocations: 1.469 kB / 5.032 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00441/14.21, allocations: 0.7082 MB / 5.033 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01219/14.22, allocations: 3.145 MB / 5.036 GB, free: 20.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001666/14.22, allocations: 176.8 kB / 5.036 GB, free: 20.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008249/14.23, allocations: 6.363 MB / 5.042 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/14.23, allocations: 5.062 kB / 5.042 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02297/14.25, allocations: 11.12 MB / 5.053 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005266/14.26, allocations: 1.079 MB / 5.054 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002182/14.26, allocations: 131.4 kB / 5.054 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005577/14.27, allocations: 423.9 kB / 5.055 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008888/14.27, allocations: 262.9 kB / 5.055 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006582/14.27, allocations: 173.2 kB / 5.055 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002845/14.27, allocations: 1.464 MB / 5.056 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/14.27, allocations: 0.5625 kB / 5.056 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01612/14.29, allocations: 3.183 MB / 5.06 GB, free: 12.03 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.03178/14.32, allocations: 15.12 MB / 5.074 GB, free: 6.867 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0256/14.35, allocations: 11.41 MB / 5.085 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-05/14.35, allocations: 7.672 kB / 5.085 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00817/14.35, allocations: 3.496 MB / 5.089 GB, free: 12.18 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008152/14.36, allocations: 1.415 MB / 5.09 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04465/14.41, allocations: 32.04 MB / 5.122 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004435/14.41, allocations: 2.47 MB / 5.124 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01105/14.42, allocations: 2.643 MB / 5.127 GB, free: 8.789 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003655/14.43, allocations: 1.446 MB / 5.128 GB, free: 7.477 MB / 0.5417 GB Notification: Performance of SimCode: time 1.072e-06/14.43, allocations: 0 / 5.128 GB, free: 7.477 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6782/15.1, allocations: 157.7 MB / 5.282 GB, free: 50.49 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/15.1, allocations: 262 kB / 5.282 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/22.9, allocations: 0 / 5.282 GB, free: 50.14 MB / 0.5417 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)