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.000965/0.000965, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.000851/0.0008511, allocations: 94.86 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.784e-05/1.787e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.918/10.03, allocations: 3.573 GB / 3.952 GB, free: 122.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/10.03, allocations: 82.05 kB / 3.952 GB, free: 122.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.41/14.44, allocations: 0.8763 GB / 4.828 GB, free: 26.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.993e-06/14.44, allocations: 0 / 4.828 GB, free: 26.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002614/14.44, allocations: 83.53 kB / 4.828 GB, free: 26.29 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.02403/14.46, allocations: 5.801 MB / 4.834 GB, free: 23.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/14.46, allocations: 9.656 kB / 4.834 GB, free: 23.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003315/14.46, allocations: 416.8 kB / 4.834 GB, free: 23.49 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007759/14.47, allocations: 2.385 MB / 4.837 GB, free: 23 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003503/14.47, allocations: 261.7 kB / 4.837 GB, free: 22.87 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001674/14.47, allocations: 182.7 kB / 4.837 GB, free: 22.87 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009698/14.48, allocations: 5.119 MB / 4.842 GB, free: 22.85 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/14.49, allocations: 4.82 MB / 4.847 GB, free: 22.28 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-05/14.49, allocations: 20.69 kB / 4.847 GB, free: 22.27 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006887/14.49, allocations: 8.016 kB / 4.847 GB, free: 22.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002727/14.49, allocations: 258.3 kB / 4.847 GB, free: 22.27 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.0341/14.53, allocations: 20.43 MB / 4.867 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006597/14.54, allocations: 3.41 MB / 4.87 GB, free: 12.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003675/14.54, allocations: 2.143 MB / 4.873 GB, free: 12.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002436/14.54, allocations: 2.731 MB / 4.875 GB, free: 9.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004474/14.55, allocations: 2.508 MB / 4.878 GB, free: 9.566 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001781/14.55, allocations: 183.8 kB / 4.878 GB, free: 9.445 MB / 490.7 MB Notification: Performance of pre-optimization done (n=311): time 6.863e-06/14.55, allocations: 0.9062 kB / 4.878 GB, free: 9.445 MB / 490.7 MB Notification: Performance of matching and sorting (n=371): time 0.08291/14.63, allocations: 23.59 MB / 4.901 GB, free: 7.219 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/14.63, allocations: 0.5969 MB / 4.901 GB, free: 6.527 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002957/14.63, allocations: 1.417 MB / 4.903 GB, free: 6.32 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001498/14.64, allocations: 29.64 kB / 4.903 GB, free: 6.289 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/14.64, allocations: 1.327 MB / 4.904 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00199/14.64, allocations: 1.257 MB / 4.905 GB, free: 20.81 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/14.64, allocations: 3.562 kB / 4.905 GB, free: 20.81 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003102/14.64, allocations: 484 kB / 4.906 GB, free: 20.49 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004215/14.64, allocations: 2.552 MB / 4.908 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005153/14.65, allocations: 3.52 MB / 4.912 GB, free: 19.45 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/14.66, allocations: 3.764 MB / 4.915 GB, free: 19.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.167e-05/14.66, allocations: 10.34 kB / 4.915 GB, free: 19.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.0222/14.68, allocations: 8.63 MB / 4.924 GB, free: 19.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003761/14.69, allocations: 10.02 MB / 4.934 GB, free: 8.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.81e-05/14.69, allocations: 25.62 kB / 4.934 GB, free: 8.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006139/14.69, allocations: 2.001 MB / 4.936 GB, free: 8.793 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005375/14.7, allocations: 0.9275 MB / 4.937 GB, free: 8.793 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008294/14.71, allocations: 6.162 MB / 4.943 GB, free: 4.828 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006545/14.71, allocations: 467.6 kB / 4.943 GB, free: 4.801 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001727/14.71, allocations: 231.6 kB / 4.943 GB, free: 4.766 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/14.71, allocations: 6.469 kB / 4.943 GB, free: 4.766 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02165/14.74, allocations: 7.997 MB / 4.951 GB, free: 2.609 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.84e-05/14.74, allocations: 26.62 kB / 4.951 GB, free: 2.609 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005493/14.74, allocations: 1.916 MB / 4.953 GB, free: 2.215 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005871/14.75, allocations: 0.9451 MB / 4.954 GB, free: 2.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006696/14.75, allocations: 5.943 MB / 4.96 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006004/14.76, allocations: 451.2 kB / 4.96 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/14.76, allocations: 230.7 kB / 4.96 GB, free: 13.2 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.001805/14.76, allocations: 221.8 kB / 4.961 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01541/14.78, allocations: 6.44 MB / 4.967 GB, free: 7.586 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/14.78, allocations: 272.7 kB / 4.967 GB, free: 7.316 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01808/14.8, allocations: 7.829 MB / 4.975 GB, free: 1.059 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.985e-05/14.8, allocations: 46.3 kB / 4.975 GB, free: 1.016 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.098e-05/14.8, allocations: 7.609 kB / 4.975 GB, free: 1.012 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4772/15.28, allocations: 6.582 MB / 4.981 GB, free: 54.52 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03774/15.31, allocations: 13.89 MB / 4.995 GB, free: 53.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.494e-05/15.31, allocations: 4.781 kB / 4.995 GB, free: 53.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004488/15.32, allocations: 0.6864 MB / 4.995 GB, free: 53.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008203/15.33, allocations: 2.406 MB / 4.998 GB, free: 53.61 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001274/15.33, allocations: 126.9 kB / 4.998 GB, free: 53.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006026/15.33, allocations: 5.864 MB / 5.004 GB, free: 50.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/15.33, allocations: 7.312 kB / 5.004 GB, free: 50.51 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02692/15.36, allocations: 11.66 MB / 5.015 GB, free: 49.89 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003325/15.36, allocations: 1.029 MB / 5.016 GB, free: 49.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008792/15.36, allocations: 65.42 kB / 5.016 GB, free: 49.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003839/15.37, allocations: 352.6 kB / 5.016 GB, free: 49.79 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004649/15.37, allocations: 256.4 kB / 5.017 GB, free: 49.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004196/15.37, allocations: 173.4 kB / 5.017 GB, free: 49.79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00164/15.37, allocations: 1.043 MB / 5.018 GB, free: 49.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/15.37, allocations: 3.875 kB / 5.018 GB, free: 49.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01176/15.38, allocations: 2.904 MB / 5.021 GB, free: 49.68 MB / 0.5105 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.03586/15.42, allocations: 15.96 MB / 5.036 GB, free: 47.72 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02045/15.44, allocations: 10.08 MB / 5.046 GB, free: 47.26 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/15.44, allocations: 6.766 kB / 5.046 GB, free: 47.26 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006271/15.45, allocations: 3.064 MB / 5.049 GB, free: 47.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007673/15.45, allocations: 1.177 MB / 5.05 GB, free: 47.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02867/15.48, allocations: 9.948 MB / 5.06 GB, free: 45.95 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002177/15.48, allocations: 2.482 MB / 5.062 GB, free: 45.16 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009112/15.49, allocations: 2.689 MB / 5.065 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00284/15.5, allocations: 1.389 MB / 5.066 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of SimCode: time 3.196e-06/15.5, allocations: 2.25 kB / 5.066 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6652/16.16, allocations: 141.1 MB / 5.204 GB, free: 49.59 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/16.16, allocations: 181.5 kB / 5.204 GB, free: 49.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.592/23.75, allocations: 0 / 5.204 GB, free: 49.4 MB / 0.5105 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)