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.0009628/0.0009629, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.0008529/0.000853, allocations: 98.84 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.435e-05/2.438e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09432, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.885/9.979, allocations: 3.574 GB / 3.959 GB, free: 12.95 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/9.98, allocations: 86.34 kB / 3.959 GB, free: 12.91 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.003/13.98, allocations: 0.8845 GB / 4.844 GB, free: 25.07 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.835e-06/13.98, allocations: 4 kB / 4.844 GB, free: 25.07 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002358/13.98, allocations: 86.56 kB / 4.844 GB, free: 24.99 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.0224/14.01, allocations: 5.807 MB / 4.849 GB, free: 19.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/14.01, allocations: 8.031 kB / 4.849 GB, free: 19.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002945/14.01, allocations: 411.6 kB / 4.85 GB, free: 18.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00685/14.02, allocations: 2.399 MB / 4.852 GB, free: 16.22 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003565/14.02, allocations: 368.4 kB / 4.852 GB, free: 15.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001691/14.02, allocations: 299.9 kB / 4.853 GB, free: 15.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009484/14.03, allocations: 5.248 MB / 4.858 GB, free: 10.09 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.738e-05/14.03, allocations: 7.938 kB / 4.858 GB, free: 10.09 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005692/14.03, allocations: 128 kB / 4.858 GB, free: 9.961 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002463/14.03, allocations: 265.9 kB / 4.858 GB, free: 9.699 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008173/14.04, allocations: 5.501 MB / 4.864 GB, free: 4.188 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.4326/14.47, allocations: 20.61 MB / 4.884 GB, free: 39.17 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007936/14.48, allocations: 3.583 MB / 4.887 GB, free: 39.13 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004124/14.48, allocations: 2.239 MB / 4.889 GB, free: 39.11 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002537/14.48, allocations: 3.234 MB / 4.893 GB, free: 35.63 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005813/14.49, allocations: 2.614 MB / 4.895 GB, free: 35.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00221/14.49, allocations: 284.5 kB / 4.895 GB, free: 35.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 1.095e-05/14.49, allocations: 0 / 4.895 GB, free: 35.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.1113/14.6, allocations: 30.3 MB / 4.925 GB, free: 34.12 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/14.6, allocations: 483.5 kB / 4.925 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003347/14.61, allocations: 1.908 MB / 4.927 GB, free: 33.34 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0015/14.61, allocations: 98.86 kB / 4.927 GB, free: 33.31 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001189/14.61, allocations: 1.293 MB / 4.929 GB, free: 32.87 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00244/14.61, allocations: 1.32 MB / 4.93 GB, free: 32.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003608/14.61, allocations: 86.91 kB / 4.93 GB, free: 32.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002678/14.61, allocations: 479.3 kB / 4.931 GB, free: 31.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004251/14.62, allocations: 2.61 MB / 4.933 GB, free: 31.89 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005121/14.62, allocations: 3.591 MB / 4.937 GB, free: 30.85 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004581/14.63, allocations: 3.151 MB / 4.94 GB, free: 30.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.859e-05/14.63, allocations: 13.75 kB / 4.94 GB, free: 30.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.01573/14.64, allocations: 8.27 MB / 4.948 GB, free: 30.27 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00269/14.64, allocations: 10.25 MB / 4.958 GB, free: 19.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.812e-05/14.64, allocations: 24.94 kB / 4.958 GB, free: 19.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007158/14.65, allocations: 2.171 MB / 4.96 GB, free: 19.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004997/14.66, allocations: 0.9297 MB / 4.961 GB, free: 19.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005718/14.66, allocations: 5.96 MB / 4.967 GB, free: 16.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00687/14.67, allocations: 0.5427 MB / 4.967 GB, free: 16.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001075/14.67, allocations: 228.1 kB / 4.967 GB, free: 16.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/14.67, allocations: 3.969 kB / 4.967 GB, free: 16.4 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01943/14.69, allocations: 8.49 MB / 4.976 GB, free: 16.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000128/14.69, allocations: 24.47 kB / 4.976 GB, free: 16.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006003/14.7, allocations: 1.982 MB / 4.978 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0053/14.7, allocations: 0.9421 MB / 4.979 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00532/14.71, allocations: 5.798 MB / 4.984 GB, free: 13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005754/14.71, allocations: 0.5295 MB / 4.985 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001282/14.71, allocations: 226.9 kB / 4.985 GB, free: 12.99 MB / 0.4948 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.002491/14.72, allocations: 362.8 kB / 4.985 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/14.72, allocations: 307 kB / 4.986 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/14.73, allocations: 8.041 MB / 4.993 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.153e-05/14.73, allocations: 42.59 kB / 4.994 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/14.73, allocations: 3.094 kB / 4.994 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008115/14.74, allocations: 6.023 MB / 4.999 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02469/14.76, allocations: 13.31 MB / 5.012 GB, free: 9.324 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.074e-05/14.76, allocations: 7.297 kB / 5.012 GB, free: 9.324 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00392/14.77, allocations: 0.7043 MB / 5.013 GB, free: 9.297 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008885/14.78, allocations: 2.586 MB / 5.016 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001139/14.78, allocations: 175.2 kB / 5.016 GB, free: 8.828 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005042/14.78, allocations: 5.647 MB / 5.021 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/14.78, allocations: 0.9375 kB / 5.021 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01815/14.8, allocations: 10.59 MB / 5.032 GB, free: 17.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003231/14.8, allocations: 1.076 MB / 5.033 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008349/14.81, allocations: 131 kB / 5.033 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003545/14.81, allocations: 427.7 kB / 5.033 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/14.81, allocations: 258.2 kB / 5.033 GB, free: 16.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004097/14.81, allocations: 176 kB / 5.034 GB, free: 16.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002/14.81, allocations: 1.44 MB / 5.035 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.61e-07/14.81, allocations: 0 / 5.035 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01129/14.82, allocations: 3.184 MB / 5.038 GB, free: 12.44 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) * 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,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00855/14.83, allocations: 3.093 MB / 5.041 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01968/14.85, allocations: 10.47 MB / 5.051 GB, free: 1.598 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.276e-05/14.85, allocations: 5.109 kB / 5.051 GB, free: 1.594 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009186/14.86, allocations: 3.456 MB / 5.055 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008749/14.87, allocations: 1.415 MB / 5.056 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/14.89, allocations: 8.775 MB / 5.065 GB, free: 7.398 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003427/14.9, allocations: 2.475 MB / 5.067 GB, free: 5.469 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01206/14.91, allocations: 2.911 MB / 5.07 GB, free: 3.559 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002267/14.91, allocations: 312.8 kB / 5.07 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of SimCode: time 1.363e-06/14.91, allocations: 0 / 5.07 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of Templates: time 0.535/15.45, allocations: 130.9 MB / 5.198 GB, free: 49.38 MB / 0.5261 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