Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_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.001358/0.001358, allocations: 178 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.691/1.691, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008666/0.0008665, allocations: 90.23 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.925e-05/1.926e-05, allocations: 8 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09057, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.593/8.684, allocations: 3.633 GB / 3.987 GB, free: 29.37 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/8.684, allocations: 86.7 kB / 3.987 GB, free: 29.33 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.051/12.73, allocations: 0.894 GB / 4.881 GB, free: 29.33 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.623e-06/12.73, allocations: 0 / 4.881 GB, free: 29.33 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003095/12.74, allocations: 81.64 kB / 4.881 GB, free: 29.32 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.0244/12.76, allocations: 6.008 MB / 4.887 GB, free: 26.74 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/12.76, allocations: 7.156 kB / 4.887 GB, free: 26.74 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003141/12.76, allocations: 415.5 kB / 4.888 GB, free: 26.55 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008226/12.77, allocations: 2.401 MB / 4.89 GB, free: 26.06 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/12.77, allocations: 259.7 kB / 4.89 GB, free: 25.93 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00137/12.77, allocations: 185 kB / 4.891 GB, free: 25.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009105/12.78, allocations: 5.126 MB / 4.896 GB, free: 25.91 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009405/12.79, allocations: 4.834 MB / 4.9 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/12.79, allocations: 14.09 kB / 4.9 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006948/12.79, allocations: 6.469 kB / 4.9 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000405/12.79, allocations: 261.6 kB / 4.9 GB, free: 25.33 MB / 474.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.0338/12.83, allocations: 20.46 MB / 4.92 GB, free: 15.86 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005197/12.83, allocations: 3.41 MB / 4.924 GB, free: 15.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002623/12.83, allocations: 2.151 MB / 4.926 GB, free: 15.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00192/12.84, allocations: 2.686 MB / 4.929 GB, free: 12.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003832/12.84, allocations: 2.528 MB / 4.931 GB, free: 12.73 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001778/12.84, allocations: 190 kB / 4.931 GB, free: 12.61 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 5.841e-06/12.84, allocations: 0 / 4.931 GB, free: 12.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=371): time 0.07652/12.92, allocations: 24 MB / 4.955 GB, free: 10.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002191/12.92, allocations: 0.6009 MB / 4.955 GB, free: 9.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002568/12.92, allocations: 1.468 MB / 4.957 GB, free: 9.453 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001198/12.92, allocations: 30.95 kB / 4.957 GB, free: 9.422 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00118/12.92, allocations: 1.341 MB / 4.958 GB, free: 8.766 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001656/12.93, allocations: 1.259 MB / 4.959 GB, free: 7.945 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/12.93, allocations: 3.562 kB / 4.959 GB, free: 7.945 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002494/12.93, allocations: 479.8 kB / 4.96 GB, free: 7.633 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003641/12.93, allocations: 2.555 MB / 4.962 GB, free: 7.617 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004453/12.93, allocations: 3.525 MB / 4.966 GB, free: 6.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01352/12.95, allocations: 4.537 MB / 4.97 GB, free: 6.543 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-05/12.95, allocations: 14.45 kB / 4.97 GB, free: 6.543 MB / 474.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02797/12.98, allocations: 9.431 MB / 4.979 GB, free: 6.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004303/12.98, allocations: 10.05 MB / 4.989 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-05/12.98, allocations: 23.03 kB / 4.989 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005667/12.99, allocations: 2.012 MB / 4.991 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005264/12.99, allocations: 0.9255 MB / 4.992 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/13, allocations: 6.169 MB / 4.998 GB, free: 8.793 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006644/13, allocations: 473.6 kB / 4.998 GB, free: 8.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001408/13.01, allocations: 243.2 kB / 4.999 GB, free: 8.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/13.01, allocations: 2.875 kB / 4.999 GB, free: 8.77 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02393/13.03, allocations: 8.797 MB / 5.007 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000128/13.03, allocations: 29.12 kB / 5.007 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005473/13.04, allocations: 1.925 MB / 5.009 GB, free: 8.578 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004893/13.04, allocations: 0.9433 MB / 5.01 GB, free: 8.578 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00611/13.05, allocations: 5.961 MB / 5.016 GB, free: 4.742 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005691/13.05, allocations: 451.3 kB / 5.016 GB, free: 4.719 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009/13.05, allocations: 238.6 kB / 5.017 GB, free: 4.684 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 () * 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.001618/13.06, allocations: 217.3 kB / 5.017 GB, free: 4.547 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01343/13.07, allocations: 6.551 MB / 5.023 GB, free: 2.477 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/13.07, allocations: 279.8 kB / 5.023 GB, free: 2.34 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01615/13.09, allocations: 7.844 MB / 5.031 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.482e-05/13.09, allocations: 43.84 kB / 5.031 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/13.09, allocations: 3.953 kB / 5.031 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0122/13.1, allocations: 6.186 MB / 5.037 GB, free: 7.949 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4416/13.54, allocations: 14.41 MB / 5.051 GB, free: 54.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.289e-05/13.54, allocations: 4.531 kB / 5.051 GB, free: 54.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00438/13.54, allocations: 0.6904 MB / 5.052 GB, free: 54.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008273/13.55, allocations: 2.406 MB / 5.054 GB, free: 54.95 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001198/13.55, allocations: 132.2 kB / 5.054 GB, free: 54.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005808/13.56, allocations: 5.881 MB / 5.06 GB, free: 51.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/13.56, allocations: 7.266 kB / 5.06 GB, free: 51.85 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02775/13.59, allocations: 11.76 MB / 5.072 GB, free: 51.23 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003456/13.59, allocations: 1.037 MB / 5.073 GB, free: 51.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0011/13.59, allocations: 67.97 kB / 5.073 GB, free: 51.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00394/13.6, allocations: 354.5 kB / 5.073 GB, free: 51.13 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00051/13.6, allocations: 259.5 kB / 5.073 GB, free: 51.12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000445/13.6, allocations: 182.3 kB / 5.073 GB, free: 51.12 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001653/13.6, allocations: 1.088 MB / 5.075 GB, free: 51.02 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.9e-07/13.6, allocations: 0 / 5.075 GB, free: 51.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01438/13.61, allocations: 3.005 MB / 5.077 GB, free: 51.02 MB / 0.4948 GB 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: 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 (366): * Single equations (assignments): 354 * 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.03343/13.65, allocations: 16.28 MB / 5.093 GB, free: 49 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01622/13.66, allocations: 10.1 MB / 5.103 GB, free: 48.54 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.569e-05/13.66, allocations: 4.141 kB / 5.103 GB, free: 48.54 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005035/13.67, allocations: 3.073 MB / 5.106 GB, free: 48.53 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006385/13.67, allocations: 1.171 MB / 5.107 GB, free: 48.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/13.7, allocations: 10.08 MB / 5.117 GB, free: 47.21 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/13.7, allocations: 2.487 MB / 5.12 GB, free: 46.43 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007931/13.71, allocations: 2.608 MB / 5.122 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002352/13.71, allocations: 1.426 MB / 5.124 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of SimCode: time 1.052e-06/13.71, allocations: 2.344 kB / 5.124 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.663/14.37, allocations: 143.6 MB / 5.264 GB, free: 63.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/14.37, allocations: 189 kB / 5.264 GB, free: 63.12 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.615/21.99, allocations: 3.562 kB / 5.264 GB, free: 63.12 MB / 0.5105 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)