Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_cpp_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.002153/0.002158, allocations: 176.9 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.021/2.021, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001103, allocations: 89.08 kB / 262.1 MB, free: 13.73 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.398e-05/2.395e-05, allocations: 4 kB / 314.9 MB, free: 8.926 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3259, allocations: 47.57 MB / 362.4 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.09/10.42, allocations: 3.632 GB / 3.986 GB, free: 112.5 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/10.42, allocations: 82.5 kB / 3.986 GB, free: 112.5 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.173/15.59, allocations: 0.894 GB / 4.88 GB, free: 26.38 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.214e-06/15.59, allocations: 3.031 kB / 4.88 GB, free: 26.38 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000305/15.59, allocations: 79.22 kB / 4.881 GB, free: 26.37 MB / 475.1 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.02734/15.62, allocations: 6 MB / 4.886 GB, free: 23.47 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/15.62, allocations: 9.719 kB / 4.886 GB, free: 23.47 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003364/15.62, allocations: 421.9 kB / 4.887 GB, free: 23.29 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01013/15.63, allocations: 2.407 MB / 4.889 GB, free: 22.79 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003765/15.63, allocations: 259.3 kB / 4.889 GB, free: 22.66 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001558/15.64, allocations: 183.8 kB / 4.89 GB, free: 22.66 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01377/15.65, allocations: 5.123 MB / 4.895 GB, free: 22.64 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/15.66, allocations: 4.836 MB / 4.899 GB, free: 22.07 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/15.66, allocations: 18.38 kB / 4.899 GB, free: 22.07 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006646/15.67, allocations: 5.219 kB / 4.899 GB, free: 22.07 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004132/15.67, allocations: 260.6 kB / 4.9 GB, free: 22.06 MB / 475.1 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.04774/15.71, allocations: 20.46 MB / 4.92 GB, free: 12.56 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009349/15.72, allocations: 3.409 MB / 4.923 GB, free: 12.53 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004851/15.73, allocations: 2.141 MB / 4.925 GB, free: 12.5 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002863/15.73, allocations: 2.692 MB / 4.928 GB, free: 9.688 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006669/15.74, allocations: 2.532 MB / 4.93 GB, free: 9.414 MB / 475.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001971/15.74, allocations: 185 kB / 4.93 GB, free: 9.293 MB / 475.1 MB Notification: Performance of pre-optimization done (n=311): time 8.446e-06/15.74, allocations: 0 / 4.93 GB, free: 9.293 MB / 475.1 MB Notification: Performance of matching and sorting (n=371): time 0.1321/15.87, allocations: 23.99 MB / 4.954 GB, free: 5.602 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002061/15.87, allocations: 0.5943 MB / 4.954 GB, free: 4.91 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003118/15.87, allocations: 1.476 MB / 4.956 GB, free: 4.312 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001366/15.88, allocations: 29.52 kB / 4.956 GB, free: 4.281 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001404/15.88, allocations: 1.294 MB / 4.957 GB, free: 3.188 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002311/15.88, allocations: 1.258 MB / 4.958 GB, free: 2.035 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006761/15.88, allocations: 0 / 4.958 GB, free: 2.035 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0003553/15.88, allocations: 486.2 kB / 4.959 GB, free: 1.598 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/15.89, allocations: 2.814 MB / 4.961 GB, free: 0 / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009028/15.9, allocations: 3.524 MB / 4.965 GB, free: 12.48 MB / 491.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02389/15.92, allocations: 4.541 MB / 4.969 GB, free: 8.953 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.298e-05/15.93, allocations: 8 kB / 4.969 GB, free: 8.945 MB / 491.1 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.04445/15.97, allocations: 9.331 MB / 4.978 GB, free: 1.402 MB / 491.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.3975/16.37, allocations: 9.857 MB / 4.988 GB, free: 30.84 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/16.37, allocations: 26.44 kB / 4.988 GB, free: 30.84 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009952/16.38, allocations: 2.008 MB / 4.99 GB, free: 30.8 MB / 491.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008309/16.39, allocations: 0.9327 MB / 4.991 GB, free: 30.8 MB / 491.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009579/16.4, allocations: 6.164 MB / 4.997 GB, free: 27.7 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008595/16.4, allocations: 469.3 kB / 4.997 GB, free: 27.7 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001554/16.41, allocations: 242 kB / 4.998 GB, free: 27.7 MB / 491.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/16.41, allocations: 9.109 kB / 4.998 GB, free: 27.69 MB / 491.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03944/16.44, allocations: 8.799 MB / 5.006 GB, free: 27.55 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/16.45, allocations: 23.72 kB / 5.006 GB, free: 27.55 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009854/16.45, allocations: 1.921 MB / 5.008 GB, free: 27.5 MB / 491.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009298/16.46, allocations: 0.9468 MB / 5.009 GB, free: 27.5 MB / 491.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009167/16.47, allocations: 5.955 MB / 5.015 GB, free: 24.4 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007662/16.48, allocations: 454.8 kB / 5.015 GB, free: 24.4 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/16.48, allocations: 241.2 kB / 5.016 GB, free: 24.4 MB / 491.1 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.001622/16.48, allocations: 215.5 kB / 5.016 GB, free: 24.29 MB / 491.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02346/16.51, allocations: 6.554 MB / 5.022 GB, free: 24.12 MB / 491.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001734/16.51, allocations: 276.2 kB / 5.022 GB, free: 24.12 MB / 491.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0249/16.53, allocations: 7.848 MB / 5.03 GB, free: 23.85 MB / 491.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.692e-05/16.53, allocations: 37.81 kB / 5.03 GB, free: 23.85 MB / 491.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/16.53, allocations: 7.547 kB / 5.03 GB, free: 23.84 MB / 491.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01994/16.55, allocations: 6.181 MB / 5.036 GB, free: 23.46 MB / 491.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0522/16.61, allocations: 14.01 MB / 5.05 GB, free: 22.59 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.406e-05/16.61, allocations: 4.062 kB / 5.05 GB, free: 22.59 MB / 491.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006801/16.61, allocations: 0.6884 MB / 5.051 GB, free: 22.59 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01382/16.63, allocations: 2.407 MB / 5.053 GB, free: 22.54 MB / 491.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001335/16.63, allocations: 135.4 kB / 5.053 GB, free: 22.54 MB / 491.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008559/16.64, allocations: 5.869 MB / 5.059 GB, free: 19.43 MB / 491.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.819e-06/16.64, allocations: 4.125 kB / 5.059 GB, free: 19.43 MB / 491.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04335/16.68, allocations: 11.77 MB / 5.07 GB, free: 18.64 MB / 491.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00443/16.69, allocations: 1.033 MB / 5.071 GB, free: 18.41 MB / 491.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/16.69, allocations: 66.33 kB / 5.071 GB, free: 18.41 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006919/16.69, allocations: 356.4 kB / 5.072 GB, free: 18.4 MB / 491.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/16.69, allocations: 262.3 kB / 5.072 GB, free: 18.39 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008049/16.7, allocations: 184 kB / 5.072 GB, free: 18.39 MB / 491.1 MB Notification: Performance of sorting global known variables: time 0.002296/16.7, allocations: 1.087 MB / 5.073 GB, free: 18.28 MB / 491.1 MB Notification: Performance of sort global known variables: time 5.31e-07/16.7, allocations: 2.594 kB / 5.073 GB, free: 18.28 MB / 491.1 MB Notification: Performance of remove unused functions: time 0.01613/16.71, allocations: 3.013 MB / 5.076 GB, free: 18.28 MB / 491.1 MB 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.05646/16.77, allocations: 16.28 MB / 5.092 GB, free: 16.12 MB / 491.1 MB Notification: Performance of simCode: created initialization part: time 0.02805/16.8, allocations: 10.05 MB / 5.102 GB, free: 15.67 MB / 491.1 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/16.8, allocations: 4.797 kB / 5.102 GB, free: 15.67 MB / 491.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009153/16.81, allocations: 3.069 MB / 5.105 GB, free: 15.66 MB / 491.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01101/16.82, allocations: 1.174 MB / 5.106 GB, free: 15.61 MB / 491.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03545/16.85, allocations: 10.23 MB / 5.116 GB, free: 13.35 MB / 491.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003001/16.86, allocations: 2.479 MB / 5.118 GB, free: 12.4 MB / 491.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004737/16.86, allocations: 1.498 MB / 5.12 GB, free: 11.35 MB / 491.1 MB Notification: Performance of SimCode: time 1.163e-06/16.86, allocations: 0 / 5.12 GB, free: 11.35 MB / 491.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.924/22.79, allocations: 169.6 MB / 5.285 GB, free: 33.13 MB / 0.4952 GB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)