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.001347/0.001347, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.6/1.6, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009718/0.0009718, allocations: 101.2 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003244, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.35/8.65, allocations: 3.633 GB / 4 GB, free: 85.11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/8.65, allocations: 89.05 kB / 4 GB, free: 85.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.495/12.15, allocations: 0.9038 GB / 4.904 GB, free: 27.39 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.745e-06/12.15, allocations: 0 / 4.904 GB, free: 27.39 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004092/12.15, allocations: 85.45 kB / 4.904 GB, free: 27.37 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.02377/12.17, allocations: 6.305 MB / 4.91 GB, free: 24.12 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/12.17, allocations: 10.44 kB / 4.91 GB, free: 24.12 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00242/12.17, allocations: 465.9 kB / 4.911 GB, free: 24.06 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003006/12.18, allocations: 418.2 kB / 4.911 GB, free: 23.87 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008218/12.18, allocations: 2.421 MB / 4.914 GB, free: 23.29 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004549/12.18, allocations: 367.3 kB / 4.914 GB, free: 23.15 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/12.19, allocations: 299.5 kB / 4.914 GB, free: 23.15 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/12.2, allocations: 5.342 MB / 4.919 GB, free: 20.24 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001986/12.2, allocations: 15.94 kB / 4.919 GB, free: 20.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001573/12.2, allocations: 127 kB / 4.92 GB, free: 20.11 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003105/12.2, allocations: 259.1 kB / 4.92 GB, free: 19.89 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01163/12.21, allocations: 5.637 MB / 4.925 GB, free: 15.17 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.03553/12.25, allocations: 20.64 MB / 4.945 GB, free: 9.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007332/12.26, allocations: 3.664 MB / 4.949 GB, free: 5.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002873/12.26, allocations: 3.194 MB / 4.952 GB, free: 2.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3072/12.57, allocations: 2.67 MB / 4.955 GB, free: 43.33 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00183/12.57, allocations: 282.1 kB / 4.955 GB, free: 43.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 7.354e-06/12.57, allocations: 0 / 4.955 GB, free: 43.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.1188/12.69, allocations: 34.17 MB / 4.988 GB, free: 41.79 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/12.69, allocations: 482.7 kB / 4.989 GB, free: 41.26 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003559/12.69, allocations: 1.992 MB / 4.991 GB, free: 41.03 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001052/12.69, allocations: 101.1 kB / 4.991 GB, free: 41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/12.69, allocations: 1.31 MB / 4.992 GB, free: 40.56 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001678/12.7, allocations: 1.327 MB / 4.993 GB, free: 39.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006768/12.7, allocations: 88.75 kB / 4.994 GB, free: 39.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002875/12.7, allocations: 476 kB / 4.994 GB, free: 39.59 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005565/12.7, allocations: 2.934 MB / 4.997 GB, free: 39.57 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005977/12.71, allocations: 3.915 MB / 5.001 GB, free: 38.54 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00579/12.71, allocations: 3.454 MB / 5.004 GB, free: 38.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.189e-05/12.71, allocations: 6.688 kB / 5.004 GB, free: 38.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02036/12.73, allocations: 9.192 MB / 5.013 GB, free: 37.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001894/12.74, allocations: 10.28 MB / 5.023 GB, free: 27.28 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.995e-05/12.74, allocations: 26.38 kB / 5.023 GB, free: 27.28 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01041/12.75, allocations: 2.779 MB / 5.026 GB, free: 27.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005251/12.75, allocations: 0.9322 MB / 5.027 GB, free: 27.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009566/12.76, allocations: 6.745 MB / 5.033 GB, free: 24.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005822/12.77, allocations: 0.547 MB / 5.034 GB, free: 24.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00137/12.77, allocations: 242.2 kB / 5.034 GB, free: 24.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/12.77, allocations: 3.906 kB / 5.034 GB, free: 24.1 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02425/12.79, allocations: 9.393 MB / 5.043 GB, free: 23.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/12.79, allocations: 24.03 kB / 5.043 GB, free: 23.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008994/12.8, allocations: 2.588 MB / 5.046 GB, free: 23.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004846/12.81, allocations: 0.9461 MB / 5.047 GB, free: 23.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008462/12.82, allocations: 6.577 MB / 5.053 GB, free: 20.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005536/12.82, allocations: 0.5218 MB / 5.054 GB, free: 20.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/12.82, allocations: 237.1 kB / 5.054 GB, free: 20.69 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.003876/12.83, allocations: 1.118 MB / 5.055 GB, free: 20.49 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001536/12.83, allocations: 314.5 kB / 5.055 GB, free: 20.34 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01827/12.85, allocations: 8.781 MB / 5.064 GB, free: 20.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.595e-05/12.85, allocations: 40.05 kB / 5.064 GB, free: 20.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.932e-05/12.85, allocations: 5.328 kB / 5.064 GB, free: 20.02 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01369/12.86, allocations: 6.865 MB / 5.071 GB, free: 19.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02677/12.89, allocations: 13.14 MB / 5.083 GB, free: 16.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/12.89, allocations: 3.938 kB / 5.083 GB, free: 16.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003472/12.89, allocations: 0.707 MB / 5.084 GB, free: 16.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01195/12.9, allocations: 3.159 MB / 5.087 GB, free: 16.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001235/12.9, allocations: 182 kB / 5.087 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007568/12.91, allocations: 6.36 MB / 5.094 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.423e-06/12.91, allocations: 11.77 kB / 5.094 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02075/12.93, allocations: 11.14 MB / 5.105 GB, free: 3.605 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004055/12.94, allocations: 1.088 MB / 5.106 GB, free: 2.676 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001744/12.94, allocations: 126.8 kB / 5.106 GB, free: 2.566 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004714/12.94, allocations: 431.7 kB / 5.106 GB, free: 2.266 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007093/12.94, allocations: 262.4 kB / 5.106 GB, free: 2.105 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006866/12.94, allocations: 185.5 kB / 5.107 GB, free: 1.957 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002767/12.95, allocations: 1.511 MB / 5.108 GB, free: 0.6836 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/12.95, allocations: 0 / 5.108 GB, free: 0.6836 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01854/12.97, allocations: 3.502 MB / 5.111 GB, free: 14.34 MB / 0.4948 GB 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.03342/13, allocations: 15.3 MB / 5.126 GB, free: 1.844 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02668/13.03, allocations: 11.43 MB / 5.138 GB, free: 8.641 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/13.03, allocations: 0.9844 kB / 5.138 GB, free: 8.641 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008605/13.03, allocations: 3.511 MB / 5.141 GB, free: 5.719 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00786/13.04, allocations: 1.414 MB / 5.142 GB, free: 4.68 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3202/13.36, allocations: 32.23 MB / 5.174 GB, free: 48.68 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001895/13.36, allocations: 2.485 MB / 5.176 GB, free: 47.91 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007831/13.37, allocations: 2.542 MB / 5.179 GB, free: 47.86 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002459/13.38, allocations: 1.478 MB / 5.18 GB, free: 47.86 MB / 0.5105 GB Notification: Performance of SimCode: time 1.262e-06/13.38, allocations: 2.312 kB / 5.18 GB, free: 47.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5034/13.88, allocations: 160.5 MB / 5.337 GB, free: 81.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/13.88, allocations: 257.1 kB / 5.337 GB, free: 81.05 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.761/21.64, allocations: 7.188 kB / 5.337 GB, free: 81.05 MB / 0.5261 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)