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: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000981/0.0009811, allocations: 176.4 kB / 8.347 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.433/1.433, allocations: 221.5 MB / 230.3 MB, free: 7.5 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.0009293/0.0009293, allocations: 99.53 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.8e-05/1.796e-05, allocations: 3.984 kB / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 50.42 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.87/10.97, allocations: 3.573 GB / 3.952 GB, free: 122.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/10.97, allocations: 83.02 kB / 3.952 GB, free: 122.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.971/14.94, allocations: 0.8764 GB / 4.828 GB, free: 26.39 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.387e-06/14.94, allocations: 0 / 4.828 GB, free: 26.39 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004269/14.95, allocations: 79.33 kB / 4.828 GB, free: 26.39 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.02401/14.97, allocations: 5.806 MB / 4.834 GB, free: 23.78 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/14.97, allocations: 10.53 kB / 4.834 GB, free: 23.78 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003731/14.97, allocations: 413 kB / 4.834 GB, free: 23.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008928/14.98, allocations: 2.392 MB / 4.837 GB, free: 23.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005379/14.98, allocations: 258.3 kB / 4.837 GB, free: 22.97 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002139/14.98, allocations: 183.5 kB / 4.837 GB, free: 22.97 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01166/15, allocations: 5.118 MB / 4.842 GB, free: 22.95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/15.01, allocations: 4.825 MB / 4.847 GB, free: 22.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002338/15.01, allocations: 13.94 kB / 4.847 GB, free: 22.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001732/15.01, allocations: 6.953 kB / 4.847 GB, free: 22.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003329/15.01, allocations: 265.3 kB / 4.847 GB, free: 22.37 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.04115/15.05, allocations: 20.43 MB / 4.867 GB, free: 12.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00674/15.06, allocations: 3.396 MB / 4.87 GB, free: 12.87 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003461/15.07, allocations: 2.143 MB / 4.872 GB, free: 12.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002067/15.07, allocations: 2.737 MB / 4.875 GB, free: 9.926 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004608/15.07, allocations: 2.508 MB / 4.878 GB, free: 9.672 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001998/15.07, allocations: 192.1 kB / 4.878 GB, free: 9.547 MB / 490.7 MB Notification: Performance of pre-optimization done (n=311): time 1.213e-05/15.07, allocations: 0 / 4.878 GB, free: 9.547 MB / 490.7 MB Notification: Performance of matching and sorting (n=371): time 0.08299/15.16, allocations: 23.58 MB / 4.901 GB, free: 7.328 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001677/15.16, allocations: 0.601 MB / 4.901 GB, free: 6.637 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002596/15.16, allocations: 1.413 MB / 4.903 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001302/15.16, allocations: 31.27 kB / 4.903 GB, free: 22.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001159/15.16, allocations: 1.332 MB / 4.904 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001968/15.16, allocations: 1.258 MB / 4.905 GB, free: 20.92 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003817/15.16, allocations: 5.656 kB / 4.905 GB, free: 20.92 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003423/15.17, allocations: 478 kB / 4.906 GB, free: 20.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003638/15.17, allocations: 2.557 MB / 4.908 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004545/15.17, allocations: 3.513 MB / 4.912 GB, free: 19.56 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009593/15.18, allocations: 3.765 MB / 4.915 GB, free: 19.51 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.515e-05/15.18, allocations: 7.562 kB / 4.915 GB, free: 19.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02175/15.2, allocations: 8.63 MB / 4.924 GB, free: 19.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003829/15.21, allocations: 10.03 MB / 4.934 GB, free: 8.941 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.562e-05/15.21, allocations: 22.62 kB / 4.934 GB, free: 8.941 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005585/15.21, allocations: 2.007 MB / 4.936 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0048/15.22, allocations: 0.9266 MB / 4.936 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006658/15.23, allocations: 6.149 MB / 4.942 GB, free: 5.293 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007048/15.23, allocations: 473.5 kB / 4.943 GB, free: 5.266 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/15.23, allocations: 232.9 kB / 4.943 GB, free: 5.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/15.23, allocations: 5.312 kB / 4.943 GB, free: 5.23 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02073/15.26, allocations: 7.996 MB / 4.951 GB, free: 3.074 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001479/15.26, allocations: 27.78 kB / 4.951 GB, free: 3.074 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005449/15.26, allocations: 1.925 MB / 4.953 GB, free: 2.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004987/15.27, allocations: 0.9385 MB / 4.954 GB, free: 2.648 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006135/15.27, allocations: 5.955 MB / 4.96 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005408/15.28, allocations: 447.5 kB / 4.96 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/15.28, allocations: 231.7 kB / 4.96 GB, free: 14.39 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.001645/15.28, allocations: 212.4 kB / 4.96 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00089/15.28, allocations: 271.2 kB / 4.961 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01635/15.3, allocations: 7.836 MB / 4.968 GB, free: 7.688 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/15.3, allocations: 40 kB / 4.968 GB, free: 7.648 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/15.3, allocations: 4 kB / 4.968 GB, free: 7.645 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01277/15.31, allocations: 6.087 MB / 4.974 GB, free: 2.465 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4313/15.74, allocations: 13.95 MB / 4.988 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.859e-05/15.74, allocations: 4.875 kB / 4.988 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004344/15.75, allocations: 0.6874 MB / 4.989 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008487/15.75, allocations: 2.401 MB / 4.991 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001409/15.76, allocations: 128.1 kB / 4.991 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005942/15.76, allocations: 5.864 MB / 4.997 GB, free: 50.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.486e-05/15.76, allocations: 3.125 kB / 4.997 GB, free: 50.65 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02842/15.79, allocations: 11.67 MB / 5.008 GB, free: 50.03 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004003/15.79, allocations: 1.025 MB / 5.009 GB, free: 49.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001571/15.8, allocations: 67.19 kB / 5.009 GB, free: 49.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004717/15.8, allocations: 357.1 kB / 5.01 GB, free: 49.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008968/15.8, allocations: 255.5 kB / 5.01 GB, free: 49.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005879/15.8, allocations: 169.8 kB / 5.01 GB, free: 49.93 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001898/15.8, allocations: 1.046 MB / 5.011 GB, free: 49.82 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.61e-07/15.8, allocations: 0 / 5.011 GB, free: 49.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01462/15.82, allocations: 2.909 MB / 5.014 GB, free: 49.82 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.00987/15.83, allocations: 3.231 MB / 5.017 GB, free: 49.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01953/15.85, allocations: 10.09 MB / 5.027 GB, free: 49.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.729e-05/15.85, allocations: 4.734 kB / 5.027 GB, free: 49.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005765/15.85, allocations: 3.054 MB / 5.03 GB, free: 49.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007077/15.86, allocations: 1.168 MB / 5.031 GB, free: 49.08 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01892/15.88, allocations: 8.485 MB / 5.039 GB, free: 47.93 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001991/15.88, allocations: 2.478 MB / 5.042 GB, free: 47.14 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008526/15.89, allocations: 2.691 MB / 5.044 GB, free: 47.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/15.89, allocations: 299.4 kB / 5.045 GB, free: 47.05 MB / 0.5105 GB Notification: Performance of SimCode: time 1.262e-06/15.89, allocations: 0 / 5.045 GB, free: 47.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.1526/16.05, allocations: 109.7 MB / 5.152 GB, free: 7.719 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (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 & ./Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2WithControls/RoomCO2WithControls.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches