Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|extIndSig.u.1.|extIndSig.u.2.|extIndSig.u.3.|extIndSig.u.4.|extIndSig.index|extIndSig.y|extIndSig1.index|extIndSig1.y|extIndSig2.index|extIndSig2.y|extIndSig3.index|extIndSig3.y|extIndSig4.index|extIndSig4.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|extIndSig.u.1.|extIndSig.u.2.|extIndSig.u.3.|extIndSig.u.4.|extIndSig.index|extIndSig.y|extIndSig1.index|extIndSig1.y|extIndSig2.index|extIndSig2.y|extIndSig3.index|extIndSig3.y|extIndSig4.index|extIndSig4.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.463/1.463, allocations: 249.3 MB / 261.8 MB, free: 5.832 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 190.5 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.1 MB / 0.572 GB, free: 10.6 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007916/0.0007913, allocations: 94.45 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.276e-05/3.279e-05, allocations: 0 / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1821, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6866/0.8688, allocations: 132.1 MB / 1.021 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.8691, allocations: 73.7 kB / 1.021 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009405/0.8785, allocations: 2.657 MB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8785, allocations: 0 / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.565e-05/0.8786, allocations: 4 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001007/0.8796, allocations: 0.5259 MB / 1.024 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.8796, allocations: 12.03 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.8797, allocations: 23.72 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.88, allocations: 247.7 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.8801, allocations: 11.56 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/0.8801, allocations: 23.23 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003676/0.8805, allocations: 214.6 kB / 1.024 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.036e-06/0.8805, allocations: 0 / 1.024 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.8806, allocations: 18.67 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.8806, allocations: 4 kB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/0.8809, allocations: 158.7 kB / 1.025 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.8822, allocations: 0.6989 MB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.8826, allocations: 180.7 kB / 1.025 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.8828, allocations: 117.7 kB / 1.026 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.8828, allocations: 4 kB / 1.026 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003437/0.8832, allocations: 223.8 kB / 1.026 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.8832, allocations: 0 / 1.026 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of matching and sorting (n=27): time 0.0005439/0.8837, allocations: 330.6 kB / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.8838, allocations: 55.41 kB / 1.026 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.8839, allocations: 171 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.884, allocations: 37.19 kB / 1.026 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.501e-05/0.884, allocations: 122.4 kB / 1.026 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.452e-05/0.8841, allocations: 74.09 kB / 1.027 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.553e-05/0.8841, allocations: 3.938 kB / 1.027 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.8842, allocations: 337.6 kB / 1.027 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.8844, allocations: 97.86 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.8846, allocations: 100.6 kB / 1.027 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.8847, allocations: 96.73 kB / 1.027 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.8847, allocations: 4 kB / 1.027 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004148/0.8852, allocations: 280.6 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.8852, allocations: 5.875 kB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.8852, allocations: 4 kB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.8852, allocations: 4 kB / 1.027 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000436/0.8857, allocations: 87.05 kB / 1.028 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.8857, allocations: 11.92 kB / 1.028 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.886, allocations: 74.81 kB / 1.028 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.886, allocations: 7.125 kB / 1.028 GB, free: 12.48 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.extIndSig.index,extIndSig.index,extIndSig.k[1],extIndSig.k[2],extIndSig.k[3],extIndSig.k[4],extIndSig.k[5],$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count,$PRE.extIndSig1.index,extIndSig1.index,extIndSig1.k[1],extIndSig1.k[2],extIndSig1.k[3],extIndSig1.k[4],extIndSig1.k[5]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.8862, allocations: 136.9 kB / 1.028 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.8862, allocations: 19.81 kB / 1.028 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.284e-05/0.8863, allocations: 32.73 kB / 1.028 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.8863, allocations: 0 / 1.028 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.8863, allocations: 8 kB / 1.028 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.8863, allocations: 0 / 1.028 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007395/0.887, allocations: 0.6692 MB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.887, allocations: 0 / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.8873, allocations: 71.69 kB / 1.029 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-06/0.8874, allocations: 0 / 1.029 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.8874, allocations: 11.17 kB / 1.029 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.8874, allocations: 0 / 1.029 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.8874, allocations: 0 / 1.029 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000495/0.8879, allocations: 424.1 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.888, allocations: 92.86 kB / 1.029 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.133e-05/0.888, allocations: 11.3 kB / 1.029 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.8884, allocations: 59.19 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.8885, allocations: 54.64 kB / 1.029 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.8885, allocations: 4 kB / 1.029 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.456e-05/0.8886, allocations: 136.2 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8886, allocations: 3.938 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002771/0.8889, allocations: 62.16 kB / 1.029 GB, free: 10.87 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,extIndSig.index,extIndSig.k[1],extIndSig.k[2],extIndSig.k[3],extIndSig.k[4],extIndSig.k[5],pul.T_start,pul.count,pul1.T_start,pul1.count,extIndSig1.index,extIndSig1.k[1],extIndSig1.k[2],extIndSig1.k[3],extIndSig1.k[4],extIndSig1.k[5]) * Number of discrete states: 4 (pul1.count,pul.count,extIndSig.index,extIndSig1.index) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001777/0.8891, allocations: 130.6 kB / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004435/0.8896, allocations: 259.6 kB / 1.03 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.8896, allocations: 0 / 1.03 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.8898, allocations: 148.6 kB / 1.03 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.8901, allocations: 33.48 kB / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007451/0.8908, allocations: 345 kB / 1.03 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.8912, allocations: 0.7365 MB / 1.031 GB, free: 9.379 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001551/0.8913, allocations: 38.05 kB / 1.031 GB, free: 9.34 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.732e-05/0.8914, allocations: 22.94 kB / 1.031 GB, free: 9.32 MB / 0.6511 GB Notification: Performance of SimCode: time 4.01e-07/0.8914, allocations: 0 / 1.031 GB, free: 9.32 MB / 0.6511 GB Notification: Performance of Templates: time 0.00565/0.8971, allocations: 2.792 MB / 1.034 GB, free: 6.551 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable extIndSig2.index in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat. Warning: Get data of variable extIndSig2.index from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat failed! Error: Could not read variable extIndSig2.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat. Warning: Get data of variable extIndSig2.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat failed! Error: Could not read variable extIndSig3.index in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat. Warning: Get data of variable extIndSig3.index from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat failed! Error: Could not read variable extIndSig3.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat. Warning: Get data of variable extIndSig3.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat failed! Error: Could not read variable extIndSig4.index in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat. Warning: Get data of variable extIndSig4.index from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat failed! Error: Could not read variable extIndSig4.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat. Warning: Get data of variable extIndSig4.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat failed! " Variables in the reference:time,extIndSig.u[1],extIndSig.u[2],extIndSig.u[3],extIndSig.u[4],extIndSig.index,extIndSig.y,extIndSig1.index,extIndSig1.y,extIndSig2.index,extIndSig2.y,extIndSig3.index,extIndSig3.y,extIndSig4.index,extIndSig4.y Variables in the result:conInt.k,conInt.y,conInt1.k,conInt1.y,extIndSig.allowOutOfRange,extIndSig.index,extIndSig.nin,extIndSig.outOfRangeValue,extIndSig.u[1],extIndSig.u[2],extIndSig.u[3],extIndSig.u[4],extIndSig.y,extIndSig1.allowOutOfRange,extIndSig1.index,extIndSig1.nin,extIndSig1.outOfRangeValue,extIndSig1.y,pul.amplitude,pul.nperiod,pul.offset,pul.period,pul.startTime,pul.width,pul1.amplitude,pul1.nperiod,pul1.offset,pul1.period,pul1.startTime,pul1.width,ram.duration,ram.height,ram.offset,ram.startTime,ram1.duration,ram1.height,ram1.offset,ram1.startTime,ram2.duration,ram2.height,ram2.offset,ram2.startTime,time