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.486/1.486, allocations: 249.5 MB / 257 MB, free: 6.957 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.001094/0.001094, allocations: 179.5 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.3 MB / 0.5671 GB, free: 15.86 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.000825/0.000825, allocations: 90.41 kB / 0.6714 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.278e-05/1.279e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1855, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5949/0.7804, allocations: 132.3 MB / 1.014 GB, free: 5.473 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.7806, allocations: 68.33 kB / 1.015 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00796/0.7886, allocations: 2.64 MB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.705e-06/0.7886, allocations: 4 kB / 1.017 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.7886, allocations: 0 / 1.017 GB, free: 3.078 MB / 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.000969/0.7896, allocations: 0.5242 MB / 1.018 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.7896, allocations: 12.03 kB / 1.018 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.525e-05/0.7897, allocations: 23.72 kB / 1.018 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.79, allocations: 244.6 kB / 1.018 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.7901, allocations: 15.05 kB / 1.018 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/0.7901, allocations: 12 kB / 1.018 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002856/0.7904, allocations: 156.5 kB / 1.018 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.7907, allocations: 200.3 kB / 1.018 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.7908, allocations: 0.75 kB / 1.018 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.7908, allocations: 4 kB / 1.018 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.7908, allocations: 4 kB / 1.018 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.7921, allocations: 0.6558 MB / 1.019 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.7924, allocations: 172.5 kB / 1.019 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.7925, allocations: 106.5 kB / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.7926, allocations: 3.938 kB / 1.019 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003033/0.7929, allocations: 213 kB / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=27): time 3.106e-06/0.7929, allocations: 4 kB / 1.019 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of matching and sorting (n=27): time 0.0004823/0.7934, allocations: 319.7 kB / 1.02 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.7934, allocations: 55.41 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.7936, allocations: 157.6 kB / 1.02 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.7936, allocations: 37.5 kB / 1.02 GB, free: 476 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.961e-05/0.7937, allocations: 127.8 kB / 1.02 GB, free: 364 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.311e-05/0.7938, allocations: 62.92 kB / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.7939, allocations: 0 / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.794, allocations: 334.6 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.7943, allocations: 101.7 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.7944, allocations: 97.97 kB / 1.021 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.7946, allocations: 82.28 kB / 1.021 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7946, allocations: 0 / 1.021 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003642/0.795, allocations: 265.6 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.795, allocations: 4 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.795, allocations: 0 / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.795, allocations: 4 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004425/0.7954, allocations: 95.73 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.7955, allocations: 0 / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.7958, allocations: 71.62 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.7958, allocations: 11.75 kB / 1.021 GB, free: 15.42 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.0001124/0.796, allocations: 118.7 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.796, allocations: 24.33 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.011e-05/0.7961, allocations: 26.62 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.7961, allocations: 0 / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.7961, allocations: 4 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.7961, allocations: 3.984 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006361/0.7967, allocations: 0.6302 MB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.7967, allocations: 4 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003009/0.797, allocations: 59.94 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.7971, allocations: 4 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.7971, allocations: 7.859 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.7971, allocations: 4 kB / 1.022 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.7971, allocations: 0 / 1.022 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/0.7975, allocations: 396.5 kB / 1.022 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.598e-05/0.7976, allocations: 104.8 kB / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/0.7977, allocations: 7.922 kB / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.798, allocations: 51.94 kB / 1.023 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.7981, allocations: 51.61 kB / 1.023 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.7982, allocations: 15.88 kB / 1.023 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.288e-05/0.7983, allocations: 128.1 kB / 1.023 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7983, allocations: 0 / 1.023 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002731/0.7985, allocations: 47.94 kB / 1.023 GB, free: 13.89 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.0001417/0.7987, allocations: 119.5 kB / 1.023 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003775/0.7991, allocations: 249.2 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.7991, allocations: 0 / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.7993, allocations: 146.3 kB / 1.023 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.7995, allocations: 19.86 kB / 1.023 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006177/0.8002, allocations: 336.6 kB / 1.024 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.8004, allocations: 0.7479 MB / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000135/0.8006, allocations: 33.84 kB / 1.024 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.15e-05/0.8007, allocations: 18.81 kB / 1.024 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.8007, allocations: 0 / 1.024 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of Templates: time 0.004897/0.8056, allocations: 2.623 MB / 1.027 GB, free: 9.781 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,conInt1.k,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