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.419/1.419, allocations: 251.9 MB / 266.9 MB, free: 10.88 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001182/0.001182, allocations: 184.7 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.4 MB / 0.5775 GB, free: 20.2 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.0009217/0.0009216, allocations: 89.55 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 6.281 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2632, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1939/0.4571, allocations: 132.1 MB / 1.029 GB, free: 11.64 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.4575, allocations: 71.95 kB / 1.029 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00812/0.4656, allocations: 2.653 MB / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.635e-06/0.4656, allocations: 0 / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.281e-05/0.4657, allocations: 4 kB / 1.032 GB, free: 8.906 MB / 0.6823 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.001126/0.4668, allocations: 0.5436 MB / 1.032 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.4669, allocations: 12.03 kB / 1.032 GB, free: 8.301 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.4669, allocations: 19.72 kB / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.4673, allocations: 250.8 kB / 1.033 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.4674, allocations: 16 kB / 1.033 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.4674, allocations: 23.92 kB / 1.033 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000791/0.4682, allocations: 301.2 kB / 1.033 GB, free: 7.656 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.4683, allocations: 0 / 1.033 GB, free: 7.656 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/0.4683, allocations: 11.98 kB / 1.033 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.4683, allocations: 4 kB / 1.033 GB, free: 7.641 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009703/0.4693, allocations: 347.7 kB / 1.033 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.4709, allocations: 0.6987 MB / 1.034 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008187/0.4717, allocations: 321.3 kB / 1.034 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.4718, allocations: 0 / 1.034 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007109/0.4725, allocations: 309.6 kB / 1.035 GB, free: 5.914 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=27): time 1.764e-06/0.4725, allocations: 4 kB / 1.035 GB, free: 5.91 MB / 0.6823 GB Notification: Performance of matching and sorting (n=27): time 0.001844/0.4743, allocations: 0.6847 MB / 1.035 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.4744, allocations: 59.39 kB / 1.035 GB, free: 5.152 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.4746, allocations: 169.4 kB / 1.035 GB, free: 4.98 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.4746, allocations: 37.7 kB / 1.035 GB, free: 4.938 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.942e-05/0.4747, allocations: 128.5 kB / 1.036 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.824e-05/0.4748, allocations: 71.09 kB / 1.036 GB, free: 4.734 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.769e-05/0.4748, allocations: 4 kB / 1.036 GB, free: 4.73 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.475, allocations: 334.8 kB / 1.036 GB, free: 4.395 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005002/0.4755, allocations: 187.9 kB / 1.036 GB, free: 4.211 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004984/0.476, allocations: 201 kB / 1.036 GB, free: 4.016 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004867/0.4765, allocations: 188.3 kB / 1.037 GB, free: 3.832 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4765, allocations: 3.953 kB / 1.037 GB, free: 3.828 MB / 0.6823 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001134/0.4777, allocations: 468.8 kB / 1.037 GB, free: 3.363 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.4777, allocations: 12 kB / 1.037 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4777, allocations: 0 / 1.037 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.4777, allocations: 0 / 1.037 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.4782, allocations: 95.86 kB / 1.037 GB, free: 3.258 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.4782, allocations: 0 / 1.037 GB, free: 3.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000305/0.4785, allocations: 67.78 kB / 1.037 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.4786, allocations: 12 kB / 1.037 GB, free: 3.18 MB / 0.6823 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 () * Number of clocked 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.0001774/0.4788, allocations: 160.2 kB / 1.037 GB, free: 3.016 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/0.4788, allocations: 23.67 kB / 1.037 GB, free: 2.992 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.665e-05/0.4789, allocations: 22.56 kB / 1.037 GB, free: 2.973 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4789, allocations: 4 kB / 1.037 GB, free: 2.969 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.4789, allocations: 4 kB / 1.037 GB, free: 2.965 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4789, allocations: 3.984 kB / 1.037 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.4804, allocations: 0.8622 MB / 1.038 GB, free: 2.043 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4804, allocations: 0 / 1.038 GB, free: 2.043 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002817/0.4807, allocations: 71.88 kB / 1.038 GB, free: 1.973 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4807, allocations: 0 / 1.038 GB, free: 1.973 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.4807, allocations: 7.938 kB / 1.038 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4808, allocations: 0 / 1.038 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.4808, allocations: 0 / 1.038 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.482, allocations: 0.6047 MB / 1.039 GB, free: 1.344 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.913e-05/0.4821, allocations: 104.8 kB / 1.039 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.627e-05/0.4822, allocations: 4 kB / 1.039 GB, free: 1.219 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/0.4825, allocations: 59.86 kB / 1.039 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.4827, allocations: 47.94 kB / 1.039 GB, free: 1.113 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.4827, allocations: 11.98 kB / 1.039 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001103/0.4828, allocations: 135.4 kB / 1.039 GB, free: 0.9688 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.464e-06/0.4828, allocations: 0 / 1.039 GB, free: 0.9688 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002951/0.4831, allocations: 55.94 kB / 1.039 GB, free: 0.9141 MB / 0.6823 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) * Number of clocked states: 0 () * 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.0001854/0.4833, allocations: 119 kB / 1.039 GB, free: 0.7891 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001193/0.4845, allocations: 443.6 kB / 1.04 GB, free: 364 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4845, allocations: 0 / 1.04 GB, free: 364 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005929/0.4851, allocations: 247.8 kB / 1.04 GB, free: 116 kB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.4854, allocations: 32.12 kB / 1.04 GB, free: 80 kB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.4865, allocations: 0.4889 MB / 1.041 GB, free: 15.56 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.4868, allocations: 0.7481 MB / 1.041 GB, free: 14.79 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001422/0.487, allocations: 37.92 kB / 1.041 GB, free: 14.75 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.218e-05/0.4871, allocations: 19.44 kB / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of SimCode: time 8.32e-07/0.4871, allocations: 0 / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of Templates: time 0.005712/0.4928, allocations: 2.776 MB / 1.044 GB, free: 11.97 MB / 0.698 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