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.001073/0.001073, allocations: 181 kB / 16.39 MB, free: 5.766 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.337/1.337, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 97.53 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003193, allocations: 11.94 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2803, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.99/9.27, allocations: 3.574 GB / 3.966 GB, free: 67.03 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/9.271, allocations: 89.59 kB / 3.966 GB, free: 66.98 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.439/12.71, allocations: 0.8859 GB / 4.852 GB, free: 27.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.673e-06/12.71, allocations: 0 / 4.852 GB, free: 27.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002795/12.71, allocations: 88.31 kB / 4.852 GB, free: 27.96 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.02472/12.74, allocations: 6.095 MB / 4.858 GB, free: 24.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/12.74, allocations: 15.39 kB / 4.858 GB, free: 24.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003268/12.74, allocations: 410.6 kB / 4.859 GB, free: 24.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008337/12.75, allocations: 2.405 MB / 4.861 GB, free: 24.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000438/12.75, allocations: 361.9 kB / 4.861 GB, free: 23.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001844/12.75, allocations: 301.9 kB / 4.862 GB, free: 23.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/12.76, allocations: 5.323 MB / 4.867 GB, free: 23.29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001009/12.76, allocations: 10.84 kB / 4.867 GB, free: 23.28 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006915/12.76, allocations: 136.5 kB / 4.867 GB, free: 23.28 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002635/12.76, allocations: 261.6 kB / 4.867 GB, free: 23.27 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/12.77, allocations: 5.625 MB / 4.873 GB, free: 23.21 MB / 490.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.0393/12.81, allocations: 20.61 MB / 4.893 GB, free: 12.56 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006643/12.82, allocations: 3.661 MB / 4.896 GB, free: 11.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002424/12.82, allocations: 3.242 MB / 4.9 GB, free: 7.773 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004692/12.83, allocations: 2.654 MB / 4.902 GB, free: 6.5 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001964/12.83, allocations: 289.6 kB / 4.902 GB, free: 6.223 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 5.761e-06/12.83, allocations: 0 / 4.902 GB, free: 6.223 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.4882/13.32, allocations: 34.6 MB / 4.936 GB, free: 43.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/13.32, allocations: 478.9 kB / 4.937 GB, free: 42.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002819/13.32, allocations: 1.938 MB / 4.939 GB, free: 42.28 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001179/13.32, allocations: 97.52 kB / 4.939 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001017/13.32, allocations: 1.292 MB / 4.94 GB, free: 41.81 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001735/13.32, allocations: 1.326 MB / 4.941 GB, free: 41.15 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003256/13.32, allocations: 85.88 kB / 4.941 GB, free: 41.15 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002019/13.32, allocations: 480.3 kB / 4.942 GB, free: 40.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005174/13.33, allocations: 2.924 MB / 4.945 GB, free: 40.82 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006427/13.34, allocations: 3.91 MB / 4.948 GB, free: 39.79 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007222/13.34, allocations: 3.46 MB / 4.952 GB, free: 39.66 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.649e-05/13.34, allocations: 7.875 kB / 4.952 GB, free: 39.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.01979/13.36, allocations: 9.164 MB / 4.961 GB, free: 39.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002192/13.36, allocations: 10.26 MB / 4.971 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.293e-05/13.36, allocations: 31.81 kB / 4.971 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01059/13.38, allocations: 2.77 MB / 4.974 GB, free: 28.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004978/13.38, allocations: 0.9286 MB / 4.974 GB, free: 28.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008834/13.39, allocations: 6.742 MB / 4.981 GB, free: 25.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005822/13.4, allocations: 0.5346 MB / 4.982 GB, free: 25.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/13.4, allocations: 229.3 kB / 4.982 GB, free: 25.37 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/13.4, allocations: 2.938 kB / 4.982 GB, free: 25.37 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0213/13.42, allocations: 9.375 MB / 4.991 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/13.42, allocations: 22.72 kB / 4.991 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008969/13.43, allocations: 2.573 MB / 4.993 GB, free: 25.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005035/13.43, allocations: 0.9372 MB / 4.994 GB, free: 25.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00838/13.44, allocations: 6.587 MB / 5.001 GB, free: 21.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00629/13.45, allocations: 0.5221 MB / 5.001 GB, free: 21.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001268/13.45, allocations: 227.1 kB / 5.002 GB, free: 21.95 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 () * 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.00357/13.45, allocations: 1.094 MB / 5.003 GB, free: 21.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/13.45, allocations: 307.9 kB / 5.003 GB, free: 21.61 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01714/13.47, allocations: 8.861 MB / 5.012 GB, free: 21.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-05/13.47, allocations: 41.12 kB / 5.012 GB, free: 21.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/13.47, allocations: 2.5 kB / 5.012 GB, free: 21.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0138/13.48, allocations: 6.847 MB / 5.018 GB, free: 20.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02857/13.51, allocations: 13.22 MB / 5.031 GB, free: 20.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/13.51, allocations: 0 / 5.031 GB, free: 20.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003544/13.52, allocations: 0.7037 MB / 5.032 GB, free: 20.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01235/13.53, allocations: 3.15 MB / 5.035 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001419/13.53, allocations: 175.2 kB / 5.035 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007517/13.54, allocations: 6.366 MB / 5.041 GB, free: 16.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/13.54, allocations: 3.344 kB / 5.041 GB, free: 16.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01974/13.56, allocations: 11.13 MB / 5.052 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003617/13.56, allocations: 1.079 MB / 5.053 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/13.56, allocations: 127.2 kB / 5.053 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005168/13.57, allocations: 427.7 kB / 5.054 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006054/13.57, allocations: 262.1 kB / 5.054 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004681/13.57, allocations: 177.5 kB / 5.054 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002238/13.57, allocations: 1.466 MB / 5.056 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.61e-07/13.57, allocations: 1.594 kB / 5.056 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01151/13.58, allocations: 3.173 MB / 5.059 GB, free: 11.9 MB / 0.4948 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.01035/13.59, allocations: 3.136 MB / 5.062 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02501/13.62, allocations: 11.33 MB / 5.073 GB, free: 7.984 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.577e-05/13.62, allocations: 0.9844 kB / 5.073 GB, free: 7.984 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007336/13.62, allocations: 3.489 MB / 5.076 GB, free: 5.891 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007147/13.63, allocations: 1.414 MB / 5.078 GB, free: 4.934 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02123/13.65, allocations: 11.55 MB / 5.089 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002414/13.66, allocations: 2.467 MB / 5.091 GB, free: 9.27 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009118/13.66, allocations: 2.647 MB / 5.094 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/13.67, allocations: 337.1 kB / 5.094 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of SimCode: time 1.633e-06/13.67, allocations: 0 / 5.094 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of Templates: time 0.5291/14.2, allocations: 123.6 MB / 5.215 GB, free: 63.4 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