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.001091/0.001091, allocations: 177.1 kB / 13.64 MB, free: 1.672 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.394/1.394, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009189/0.0009188, allocations: 79.94 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.609e-05/2.611e-05, allocations: 8 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 50.42 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.03/10.14, allocations: 3.574 GB / 3.959 GB, free: 11.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/10.14, allocations: 82.45 kB / 3.959 GB, free: 11.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.545/14.68, allocations: 0.8845 GB / 4.844 GB, free: 24.26 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.567e-06/14.68, allocations: 0 / 4.844 GB, free: 24.26 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004302/14.68, allocations: 78.72 kB / 4.844 GB, free: 24.18 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.03167/14.72, allocations: 5.811 MB / 4.849 GB, free: 18.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/14.72, allocations: 8.031 kB / 4.849 GB, free: 18.28 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002744/14.72, allocations: 451.2 kB / 4.85 GB, free: 17.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003771/14.72, allocations: 419.5 kB / 4.85 GB, free: 17.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009629/14.73, allocations: 2.387 MB / 4.853 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004947/14.73, allocations: 364.8 kB / 4.853 GB, free: 14.58 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002255/14.73, allocations: 303.9 kB / 4.853 GB, free: 14.29 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01662/14.75, allocations: 5.252 MB / 4.858 GB, free: 8.828 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002371/14.75, allocations: 15.69 kB / 4.858 GB, free: 8.816 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002034/14.75, allocations: 132 kB / 4.859 GB, free: 8.688 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003172/14.75, allocations: 254 kB / 4.859 GB, free: 8.438 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01349/14.77, allocations: 5.505 MB / 4.864 GB, free: 2.922 MB / 490.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.5548/15.32, allocations: 20.59 MB / 4.884 GB, free: 36.16 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009562/15.33, allocations: 3.585 MB / 4.888 GB, free: 36.12 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005364/15.34, allocations: 2.233 MB / 4.89 GB, free: 36.09 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003238/15.34, allocations: 3.239 MB / 4.893 GB, free: 32.62 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007417/15.35, allocations: 2.611 MB / 4.896 GB, free: 32.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002911/15.35, allocations: 283.4 kB / 4.896 GB, free: 32.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 2.373e-05/15.35, allocations: 5.781 kB / 4.896 GB, free: 32.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.1217/15.47, allocations: 30.3 MB / 4.926 GB, free: 31.07 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/15.47, allocations: 484.6 kB / 4.926 GB, free: 30.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003633/15.48, allocations: 1.902 MB / 4.928 GB, free: 30.29 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001462/15.48, allocations: 98.83 kB / 4.928 GB, free: 30.26 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001436/15.48, allocations: 1.3 MB / 4.929 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002315/15.48, allocations: 1.325 MB / 4.93 GB, free: 29.16 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003836/15.48, allocations: 84.53 kB / 4.931 GB, free: 29.16 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002797/15.48, allocations: 474.9 kB / 4.931 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004314/15.49, allocations: 2.608 MB / 4.934 GB, free: 28.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005142/15.49, allocations: 3.591 MB / 4.937 GB, free: 27.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005481/15.5, allocations: 3.151 MB / 4.94 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/15.5, allocations: 8.875 kB / 4.94 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.01921/15.52, allocations: 8.27 MB / 4.948 GB, free: 27.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002969/15.52, allocations: 10.26 MB / 4.958 GB, free: 16.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.104e-05/15.52, allocations: 28.81 kB / 4.958 GB, free: 16.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007898/15.53, allocations: 2.171 MB / 4.96 GB, free: 16.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005529/15.53, allocations: 0.9313 MB / 4.961 GB, free: 16.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006377/15.54, allocations: 5.96 MB / 4.967 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007154/15.55, allocations: 0.5293 MB / 4.968 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001897/15.55, allocations: 233 kB / 4.968 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/15.55, allocations: 3.875 kB / 4.968 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02111/15.57, allocations: 8.493 MB / 4.976 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001255/15.57, allocations: 24.12 kB / 4.976 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006391/15.58, allocations: 1.983 MB / 4.978 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005574/15.58, allocations: 0.9401 MB / 4.979 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006629/15.59, allocations: 5.798 MB / 4.985 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006765/15.6, allocations: 0.5248 MB / 4.985 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/15.6, allocations: 224.5 kB / 4.985 GB, free: 25.95 MB / 0.5105 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 () * 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.002087/15.6, allocations: 365.1 kB / 4.986 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/15.6, allocations: 314.9 kB / 4.986 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01611/15.62, allocations: 8.038 MB / 4.994 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-05/15.62, allocations: 46.66 kB / 4.994 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-05/15.62, allocations: 4.781 kB / 4.994 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01099/15.63, allocations: 6.012 MB / 5 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02963/15.66, allocations: 13.32 MB / 5.013 GB, free: 22.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.373e-05/15.66, allocations: 5.594 kB / 5.013 GB, free: 22.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004314/15.66, allocations: 0.7039 MB / 5.014 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009716/15.67, allocations: 2.576 MB / 5.016 GB, free: 21.87 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001491/15.67, allocations: 177.1 kB / 5.016 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005709/15.68, allocations: 5.654 MB / 5.022 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/15.68, allocations: 0 / 5.022 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02/15.7, allocations: 10.6 MB / 5.032 GB, free: 14 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004139/15.7, allocations: 1.08 MB / 5.033 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001395/15.7, allocations: 132.3 kB / 5.033 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004762/15.71, allocations: 433 kB / 5.034 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000595/15.71, allocations: 252.5 kB / 5.034 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004812/15.71, allocations: 175.1 kB / 5.034 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002509/15.71, allocations: 1.437 MB / 5.036 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.252e-06/15.71, allocations: 2.281 kB / 5.036 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01588/15.73, allocations: 3.186 MB / 5.039 GB, free: 9.16 MB / 0.5105 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) * 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,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.04034/15.77, allocations: 14.83 MB / 5.053 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02586/15.8, allocations: 10.48 MB / 5.063 GB, free: 5.109 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/15.8, allocations: 7.172 kB / 5.063 GB, free: 5.105 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007177/15.8, allocations: 3.197 MB / 5.066 GB, free: 2.391 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009529/15.81, allocations: 1.425 MB / 5.068 GB, free: 1.41 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0407/15.85, allocations: 10.8 MB / 5.078 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003176/15.86, allocations: 2.469 MB / 5.081 GB, free: 8.316 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0142/15.87, allocations: 2.917 MB / 5.084 GB, free: 6.406 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003597/15.87, allocations: 1.411 MB / 5.085 GB, free: 5.121 MB / 0.5417 GB Notification: Performance of SimCode: time 1.362e-06/15.87, allocations: 4 kB / 5.085 GB, free: 5.117 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7787/16.65, allocations: 165.7 MB / 5.247 GB, free: 40.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/16.65, allocations: 233.1 kB / 5.247 GB, free: 39.88 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/24.95, allocations: 0 / 5.247 GB, free: 39.88 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)