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.001019/0.001019, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.333/1.333, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008809/0.0008808, allocations: 78.78 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.107e-05/2.117e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0728/0.07283, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.995/7.068, allocations: 3.633 GB / 3.994 GB, free: 35.67 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/7.068, allocations: 84.86 kB / 3.995 GB, free: 35.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.963/11.03, allocations: 0.9023 GB / 4.897 GB, free: 24.05 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.754e-06/11.03, allocations: 5.312 kB / 4.897 GB, free: 24.05 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002215/11.03, allocations: 78.38 kB / 4.897 GB, free: 24.04 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.02128/11.05, allocations: 6 MB / 4.903 GB, free: 21.36 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/11.05, allocations: 13.94 kB / 4.903 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001756/11.05, allocations: 450 kB / 4.903 GB, free: 21.3 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002115/11.06, allocations: 416 kB / 4.904 GB, free: 21.11 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006293/11.06, allocations: 2.413 MB / 4.906 GB, free: 20.62 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002884/11.06, allocations: 354.1 kB / 4.906 GB, free: 20.49 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009317/11.06, allocations: 307.9 kB / 4.907 GB, free: 20.48 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/11.08, allocations: 5.258 MB / 4.912 GB, free: 19.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-05/11.08, allocations: 14.03 kB / 4.912 GB, free: 19.89 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005761/11.08, allocations: 134.9 kB / 4.912 GB, free: 19.89 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002537/11.08, allocations: 260.1 kB / 4.912 GB, free: 19.89 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00989/11.09, allocations: 5.511 MB / 4.918 GB, free: 19.86 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.03632/11.12, allocations: 20.65 MB / 4.938 GB, free: 10.85 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006864/11.13, allocations: 3.584 MB / 4.941 GB, free: 10.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003738/11.13, allocations: 2.248 MB / 4.943 GB, free: 10.77 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002575/11.14, allocations: 3.197 MB / 4.947 GB, free: 7.391 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005676/11.14, allocations: 2.621 MB / 4.949 GB, free: 7.168 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002578/11.14, allocations: 291 kB / 4.949 GB, free: 7.008 MB / 474.7 MB Notification: Performance of pre-optimization done (n=317): time 2.111e-05/11.14, allocations: 0 / 4.949 GB, free: 7.008 MB / 474.7 MB Notification: Performance of matching and sorting (n=377): time 0.1214/11.27, allocations: 30.35 MB / 4.979 GB, free: 5.535 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003811/11.27, allocations: 485.9 kB / 4.979 GB, free: 21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003799/11.27, allocations: 1.964 MB / 4.981 GB, free: 20.74 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001203/11.27, allocations: 105 kB / 4.982 GB, free: 20.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/11.27, allocations: 1.31 MB / 4.983 GB, free: 20.15 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001528/11.27, allocations: 1.327 MB / 4.984 GB, free: 19.32 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003166/11.27, allocations: 84.44 kB / 4.984 GB, free: 19.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002733/11.27, allocations: 480.8 kB / 4.985 GB, free: 19 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003761/11.28, allocations: 2.609 MB / 4.987 GB, free: 18.99 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004399/11.28, allocations: 3.597 MB / 4.991 GB, free: 17.95 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004868/11.29, allocations: 3.151 MB / 4.994 GB, free: 17.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.492e-05/11.29, allocations: 6.375 kB / 4.994 GB, free: 17.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.01806/11.31, allocations: 8.293 MB / 5.002 GB, free: 15.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005287/11.31, allocations: 10.28 MB / 5.012 GB, free: 4.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/11.31, allocations: 32 kB / 5.012 GB, free: 4.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007909/11.32, allocations: 2.185 MB / 5.014 GB, free: 3.742 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005011/11.32, allocations: 0.9277 MB / 5.015 GB, free: 3.711 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00709/11.33, allocations: 5.963 MB / 5.021 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006347/11.34, allocations: 0.5463 MB / 5.021 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001443/11.34, allocations: 240.3 kB / 5.022 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/11.34, allocations: 4 kB / 5.022 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0224/11.36, allocations: 8.508 MB / 5.03 GB, free: 7.957 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/11.36, allocations: 24 kB / 5.03 GB, free: 7.934 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006415/11.37, allocations: 2.006 MB / 5.032 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005153/11.37, allocations: 0.9413 MB / 5.033 GB, free: 5.695 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006458/11.38, allocations: 5.805 MB / 5.038 GB, free: 360 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005953/11.39, allocations: 0.5419 MB / 5.039 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002522/11.39, allocations: 334.4 kB / 5.039 GB, free: 0 / 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 () * 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.002789/11.39, allocations: 376.6 kB / 5.04 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001672/11.39, allocations: 308.3 kB / 5.04 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01845/11.41, allocations: 7.969 MB / 5.048 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.308e-05/11.41, allocations: 43.94 kB / 5.048 GB, free: 8.734 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.106e-05/11.41, allocations: 0 / 5.048 GB, free: 8.734 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01314/11.42, allocations: 6.03 MB / 5.054 GB, free: 3.484 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4211/11.85, allocations: 13.43 MB / 5.067 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.651e-05/11.85, allocations: 1.031 kB / 5.067 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0049/11.85, allocations: 0.7092 MB / 5.067 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01076/11.86, allocations: 2.593 MB / 5.07 GB, free: 67.33 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001587/11.86, allocations: 183.7 kB / 5.07 GB, free: 67.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006068/11.87, allocations: 5.655 MB / 5.076 GB, free: 64.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/11.87, allocations: 5.938 kB / 5.076 GB, free: 64.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02115/11.89, allocations: 10.57 MB / 5.086 GB, free: 63.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004418/11.89, allocations: 1.081 MB / 5.087 GB, free: 63.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001739/11.9, allocations: 135.1 kB / 5.087 GB, free: 63.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005003/11.9, allocations: 428.7 kB / 5.088 GB, free: 63.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006799/11.9, allocations: 263.9 kB / 5.088 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005874/11.9, allocations: 189.1 kB / 5.088 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003299/11.91, allocations: 1.485 MB / 5.089 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.51e-07/11.91, allocations: 0 / 5.089 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0138/11.92, allocations: 3.279 MB / 5.093 GB, free: 63.45 MB / 0.5105 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) * 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.0293/11.95, allocations: 14.67 MB / 5.107 GB, free: 61.72 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02351/11.97, allocations: 10.5 MB / 5.117 GB, free: 61.23 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-05/11.97, allocations: 1.109 kB / 5.117 GB, free: 61.23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007445/11.98, allocations: 3.213 MB / 5.12 GB, free: 61.21 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01032/11.99, allocations: 1.41 MB / 5.122 GB, free: 61.16 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03294/12.02, allocations: 10.49 MB / 5.132 GB, free: 59.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00344/12.03, allocations: 2.484 MB / 5.134 GB, free: 59.13 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0122/12.04, allocations: 2.82 MB / 5.137 GB, free: 59.03 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00417/12.04, allocations: 1.451 MB / 5.139 GB, free: 59.03 MB / 0.5105 GB Notification: Performance of SimCode: time 1.202e-06/12.04, allocations: 3.562 kB / 5.139 GB, free: 59.03 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6567/12.7, allocations: 168.8 MB / 5.303 GB, free: 65.09 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/12.7, allocations: 230.2 kB / 5.304 GB, free: 64.82 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.168/20.87, allocations: 0 / 5.304 GB, free: 64.82 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)