Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00168/0.00168, allocations: 204 kB / 18.11 MB, free: 3.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 226.5 MB / 245.4 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008533/0.0008534, allocations: 104.5 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002219, allocations: 4 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2265, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.041/7.267, allocations: 3.575 GB / 3.975 GB, free: 60.89 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/7.268, allocations: 91.95 kB / 3.975 GB, free: 60.8 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.405/10.67, allocations: 0.8693 GB / 4.844 GB, free: 33.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.619e-06/10.67, allocations: 2.391 kB / 4.844 GB, free: 33.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003891/10.67, allocations: 83.33 kB / 4.845 GB, free: 33.34 MB / 0.4948 GB 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.02687/10.7, allocations: 6.09 MB / 4.85 GB, free: 30.39 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/10.7, allocations: 11.88 kB / 4.85 GB, free: 30.39 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003691/10.7, allocations: 413.4 kB / 4.851 GB, free: 30.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01307/10.72, allocations: 4.336 MB / 4.855 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006288/10.72, allocations: 361.9 kB / 4.855 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00228/10.72, allocations: 302.5 kB / 4.856 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/10.74, allocations: 5.358 MB / 4.861 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002758/10.74, allocations: 13.72 kB / 4.861 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002036/10.74, allocations: 133.9 kB / 4.861 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003592/10.74, allocations: 261.9 kB / 4.861 GB, free: 28.87 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/10.75, allocations: 5.624 MB / 4.867 GB, free: 28.84 MB / 0.4948 GB 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.04024/10.79, allocations: 20.48 MB / 4.887 GB, free: 19.81 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007308/10.8, allocations: 3.664 MB / 4.89 GB, free: 19.76 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004051/10.8, allocations: 2.284 MB / 4.893 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002282/10.81, allocations: 3.234 MB / 4.896 GB, free: 16.26 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005334/10.81, allocations: 2.681 MB / 4.898 GB, free: 16.03 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002155/10.81, allocations: 286.4 kB / 4.899 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 1.311e-05/10.81, allocations: 0 / 4.899 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.1114/10.93, allocations: 34.14 MB / 4.932 GB, free: 8.473 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/10.93, allocations: 483.9 kB / 4.933 GB, free: 7.895 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/10.93, allocations: 2.158 MB / 4.935 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001179/10.93, allocations: 101.7 kB / 4.935 GB, free: 5.949 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009035/10.93, allocations: 1.297 MB / 4.936 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001496/10.93, allocations: 1.322 MB / 4.937 GB, free: 3.586 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000299/10.93, allocations: 84 kB / 4.937 GB, free: 3.504 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001926/10.93, allocations: 490 kB / 4.938 GB, free: 3.066 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004844/10.94, allocations: 2.928 MB / 4.941 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01545/10.95, allocations: 4.623 MB / 4.945 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01365/10.97, allocations: 6.996 MB / 4.952 GB, free: 8.164 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.5e-05/10.97, allocations: 8 kB / 4.952 GB, free: 8.156 MB / 0.5105 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02089/10.99, allocations: 9.176 MB / 4.961 GB, free: 0.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.2906/11.28, allocations: 0.9074 MB / 4.962 GB, free: 46.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.029e-05/11.28, allocations: 25.34 kB / 4.962 GB, free: 46.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01013/11.29, allocations: 2.774 MB / 4.965 GB, free: 46.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004671/11.29, allocations: 0.9247 MB / 4.966 GB, free: 46.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009068/11.3, allocations: 6.738 MB / 4.972 GB, free: 43.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005663/11.31, allocations: 0.5388 MB / 4.973 GB, free: 43.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00122/11.31, allocations: 225.6 kB / 4.973 GB, free: 43.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/11.31, allocations: 6.891 kB / 4.973 GB, free: 43.18 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02291/11.33, allocations: 9.372 MB / 4.982 GB, free: 42.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.831e-05/11.33, allocations: 26.69 kB / 4.982 GB, free: 42.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008377/11.34, allocations: 2.572 MB / 4.985 GB, free: 42.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004699/11.35, allocations: 0.942 MB / 4.985 GB, free: 42.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008142/11.35, allocations: 6.579 MB / 4.992 GB, free: 39.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005037/11.36, allocations: 0.5237 MB / 4.992 GB, free: 39.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008995/11.36, allocations: 233 kB / 4.993 GB, free: 39.79 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 () * 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.002777/11.36, allocations: 1.097 MB / 4.994 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008051/11.36, allocations: 311.6 kB / 4.994 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/11.38, allocations: 8.828 MB / 5.003 GB, free: 39.32 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.615e-05/11.38, allocations: 42.44 kB / 5.003 GB, free: 39.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/11.38, allocations: 0 / 5.003 GB, free: 39.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.012/11.39, allocations: 6.852 MB / 5.009 GB, free: 38.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02464/11.42, allocations: 13.18 MB / 5.022 GB, free: 38.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.565e-05/11.42, allocations: 3.094 kB / 5.022 GB, free: 38.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00536/11.42, allocations: 0.7121 MB / 5.023 GB, free: 38.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01845/11.44, allocations: 3.142 MB / 5.026 GB, free: 38.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001364/11.44, allocations: 174.2 kB / 5.026 GB, free: 38.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/11.45, allocations: 6.367 MB / 5.032 GB, free: 35.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/11.45, allocations: 5.156 kB / 5.032 GB, free: 35.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03247/11.48, allocations: 11.02 MB / 5.043 GB, free: 34.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004031/11.49, allocations: 1.051 MB / 5.044 GB, free: 34.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001417/11.49, allocations: 133.4 kB / 5.044 GB, free: 34.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006036/11.5, allocations: 432.2 kB / 5.045 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008949/11.5, allocations: 258.7 kB / 5.045 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006704/11.5, allocations: 177.2 kB / 5.045 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003116/11.5, allocations: 1.457 MB / 5.047 GB, free: 34.28 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.11e-07/11.5, allocations: 2.297 kB / 5.047 GB, free: 34.28 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01455/11.52, allocations: 3.204 MB / 5.05 GB, free: 34.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.01146/11.53, allocations: 3.16 MB / 5.053 GB, free: 34.01 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03013/11.56, allocations: 11.31 MB / 5.064 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/11.56, allocations: 4.953 kB / 5.064 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00632/11.56, allocations: 3.495 MB / 5.067 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007231/11.57, allocations: 1.467 MB / 5.069 GB, free: 33.44 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/11.59, allocations: 11.57 MB / 5.08 GB, free: 30.14 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001746/11.59, allocations: 2.407 MB / 5.082 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007365/11.6, allocations: 2.672 MB / 5.085 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/11.6, allocations: 339.1 kB / 5.085 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of SimCode: time 8.52e-07/11.6, allocations: 0 / 5.085 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of Templates: time 0.4482/12.05, allocations: 125.9 MB / 5.208 GB, free: 55.14 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2WithControls/RoomCO2WithControls.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches