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: 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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 183.3 kB / 18.04 MB, free: 3.781 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.441/1.441, allocations: 205.4 MB / 224.2 MB, free: 9.059 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.0007623/0.0007626, allocations: 93.48 kB / 272.5 MB, free: 8.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003396, allocations: 8 kB / 329.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2631, allocations: 47.57 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.695/7.958, allocations: 3.633 GB / 4.002 GB, free: 82.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/7.959, allocations: 94.7 kB / 4.002 GB, free: 82.61 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.234/11.19, allocations: 0.8957 GB / 4.897 GB, free: 28.59 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.613e-06/11.19, allocations: 0 / 4.897 GB, free: 28.59 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002775/11.19, allocations: 78.8 kB / 4.898 GB, free: 28.58 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.02099/11.21, allocations: 6.273 MB / 4.904 GB, free: 25.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/11.21, allocations: 11.5 kB / 4.904 GB, free: 25.32 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002374/11.22, allocations: 418 kB / 4.904 GB, free: 25.13 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008909/11.23, allocations: 4.253 MB / 4.908 GB, free: 24.38 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003146/11.23, allocations: 366.1 kB / 4.909 GB, free: 24.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/11.23, allocations: 300.8 kB / 4.909 GB, free: 24.23 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/11.24, allocations: 5.366 MB / 4.914 GB, free: 22.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/11.24, allocations: 6.719 kB / 4.914 GB, free: 22.71 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005977/11.24, allocations: 131.1 kB / 4.914 GB, free: 22.62 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002155/11.24, allocations: 264.9 kB / 4.914 GB, free: 22.58 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00866/11.25, allocations: 5.635 MB / 4.92 GB, free: 18.26 MB / 474.7 MB 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.02891/11.28, allocations: 20.53 MB / 4.94 GB, free: 14.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006469/11.28, allocations: 3.666 MB / 4.944 GB, free: 10.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003582/11.29, allocations: 2.289 MB / 4.946 GB, free: 8.137 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003392/11.29, allocations: 3.856 MB / 4.95 GB, free: 3.504 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004686/11.29, allocations: 2.681 MB / 4.952 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001707/11.3, allocations: 276.8 kB / 4.952 GB, free: 480 kB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 8.927e-06/11.3, allocations: 0 / 4.952 GB, free: 480 kB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.3775/11.67, allocations: 34.19 MB / 4.986 GB, free: 44.03 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/11.67, allocations: 483.2 kB / 4.986 GB, free: 43.49 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003137/11.68, allocations: 2.216 MB / 4.989 GB, free: 43.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009856/11.68, allocations: 100 kB / 4.989 GB, free: 43.22 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/11.68, allocations: 1.314 MB / 4.99 GB, free: 42.78 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001698/11.68, allocations: 1.327 MB / 4.991 GB, free: 42.12 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005599/11.68, allocations: 80.66 kB / 4.991 GB, free: 42.12 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003792/11.68, allocations: 481.9 kB / 4.992 GB, free: 41.81 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005895/11.69, allocations: 2.931 MB / 4.995 GB, free: 41.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006229/11.69, allocations: 3.932 MB / 4.998 GB, free: 40.76 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/11.71, allocations: 7.001 MB / 5.005 GB, free: 39.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.843e-05/11.71, allocations: 6.656 kB / 5.005 GB, free: 39.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.01891/11.72, allocations: 9.197 MB / 5.014 GB, free: 39.28 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004961/11.73, allocations: 0.9155 MB / 5.015 GB, free: 38.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.274e-05/11.73, allocations: 24.97 kB / 5.015 GB, free: 38.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009355/11.73, allocations: 2.773 MB / 5.018 GB, free: 38.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004799/11.74, allocations: 0.9354 MB / 5.019 GB, free: 38.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008407/11.75, allocations: 6.747 MB / 5.025 GB, free: 35.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00531/11.75, allocations: 0.546 MB / 5.026 GB, free: 35.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008747/11.75, allocations: 243.4 kB / 5.026 GB, free: 35.01 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/11.75, allocations: 3.656 kB / 5.026 GB, free: 35.01 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02007/11.77, allocations: 9.394 MB / 5.035 GB, free: 34.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-05/11.77, allocations: 24.44 kB / 5.035 GB, free: 34.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008179/11.78, allocations: 2.58 MB / 5.038 GB, free: 34.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/11.79, allocations: 0.9484 MB / 5.039 GB, free: 34.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00794/11.79, allocations: 6.582 MB / 5.045 GB, free: 31.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00516/11.8, allocations: 0.524 MB / 5.046 GB, free: 31.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009193/11.8, allocations: 237.6 kB / 5.046 GB, free: 31.6 MB / 490.7 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 () * 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.004059/11.81, allocations: 1.105 MB / 5.047 GB, free: 31.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/11.81, allocations: 312.5 kB / 5.047 GB, free: 31.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01643/11.82, allocations: 8.771 MB / 5.056 GB, free: 30.95 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.18e-05/11.82, allocations: 43.47 kB / 5.056 GB, free: 30.95 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/11.82, allocations: 0 / 5.056 GB, free: 30.95 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01235/11.84, allocations: 6.866 MB / 5.063 GB, free: 30.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02462/11.86, allocations: 13.11 MB / 5.075 GB, free: 26.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.916e-05/11.86, allocations: 0 / 5.075 GB, free: 26.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003187/11.86, allocations: 0.7104 MB / 5.076 GB, free: 26.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01116/11.87, allocations: 3.159 MB / 5.079 GB, free: 25.86 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008087/11.88, allocations: 178.3 kB / 5.079 GB, free: 25.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007142/11.88, allocations: 6.374 MB / 5.086 GB, free: 21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/11.88, allocations: 7.969 kB / 5.086 GB, free: 20.99 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01869/11.9, allocations: 11.04 MB / 5.096 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002908/11.9, allocations: 1.057 MB / 5.097 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001001/11.91, allocations: 138.3 kB / 5.098 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003715/11.91, allocations: 417.7 kB / 5.098 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005417/11.91, allocations: 264.8 kB / 5.098 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004348/11.91, allocations: 196.8 kB / 5.098 GB, free: 9.98 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002178/11.91, allocations: 1.495 MB / 5.1 GB, free: 8.723 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.21e-07/11.91, allocations: 0 / 5.1 GB, free: 8.723 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01273/11.92, allocations: 3.275 MB / 5.103 GB, free: 5.914 MB / 490.7 MB 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) * 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.009184/11.93, allocations: 3.347 MB / 5.106 GB, free: 3.777 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02944/11.96, allocations: 11.82 MB / 5.118 GB, free: 11.59 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/11.96, allocations: 4.984 kB / 5.118 GB, free: 11.59 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.00713/11.97, allocations: 3.497 MB / 5.121 GB, free: 8.676 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007649/11.98, allocations: 1.466 MB / 5.123 GB, free: 7.59 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02244/12, allocations: 11.73 MB / 5.134 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002896/12, allocations: 2.415 MB / 5.137 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01028/12.01, allocations: 2.552 MB / 5.139 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002178/12.02, allocations: 360.1 kB / 5.139 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of SimCode: time 7.21e-07/12.02, allocations: 0 / 5.139 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of Templates: time 0.4382/12.45, allocations: 128.1 MB / 5.264 GB, free: 54.07 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (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 & ./Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/TraceSubstances/RoomCO2WithControls/RoomCO2WithControls.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches