Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009556/0.0009557, allocations: 86.95 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.974/2.974, allocations: 462.6 MB / 0.736 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003243, allocations: 14.41 kB / 0.9021 GB, free: 36.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.348, allocations: 159.6 MB / 1.058 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor): time 0.001469/0.3495, allocations: 0.9742 MB / 1.059 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001851/0.3514, allocations: 1.529 MB / 1.06 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.3515, allocations: 4 kB / 1.06 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.3516, allocations: 15.8 kB / 1.06 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.3518, allocations: 51.56 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009895/0.3528, allocations: 418.4 kB / 1.061 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004702/0.3532, allocations: 0.5271 MB / 1.061 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002801/0.3535, allocations: 139.7 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.3538, allocations: 187.4 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.354, allocations: 163.3 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.323e-05/0.3541, allocations: 24 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.3542, allocations: 39.92 kB / 1.062 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.853e-05/0.3543, allocations: 47.78 kB / 1.062 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.3544, allocations: 89.52 kB / 1.062 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000456/0.3549, allocations: 0.5067 MB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3549, allocations: 0 / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3549, allocations: 0 / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.3549, allocations: 0 / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001161/0.3561, allocations: 0.861 MB / 1.063 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.3561, allocations: 8.031 kB / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.3562, allocations: 51.53 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.3575, allocations: 498.5 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.3575, allocations: 28.52 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.949e-05/0.3576, allocations: 40 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006354/0.3582, allocations: 336.8 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3583, allocations: 0 / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.3583, allocations: 12 kB / 1.064 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3583, allocations: 4 kB / 1.064 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006124/0.3589, allocations: 274.1 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.3604, allocations: 0.9432 MB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006034/0.3611, allocations: 382.8 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004645/0.3615, allocations: 298.1 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.3616, allocations: 7.984 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007212/0.3623, allocations: 331 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 5.06e-06/0.3623, allocations: 0 / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.002226/0.3645, allocations: 0.8722 MB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.3647, allocations: 191.9 kB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.3651, allocations: 284.5 kB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.778e-05/0.3652, allocations: 45.7 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.3653, allocations: 176.7 kB / 1.068 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.3655, allocations: 126.2 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.13e-05/0.3656, allocations: 16 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001914/0.3658, allocations: 350.8 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007912/0.3666, allocations: 284.8 kB / 1.069 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008742/0.3675, allocations: 377.8 kB / 1.069 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009387/0.3684, allocations: 0.535 MB / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3684, allocations: 0 / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.00227/0.3707, allocations: 1.013 MB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000169/0.3709, allocations: 265.1 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3709, allocations: 4.25 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.3709, allocations: 8 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003631/0.3713, allocations: 71.89 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.3713, allocations: 4 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.3723, allocations: 193.9 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.3725, allocations: 71.86 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 19 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pul.booPul.y,pul.booPul.y,$PRE.pul1.booPul.y,pul1.booPul.y,intPul.y,$PRE.intPul.booPul.y,intPul.booPul.y,intPul1.y,$PRE.intPul1.booPul.y,intPul1.booPul.y,conInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 9 * 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.0003648/0.3729, allocations: 314.2 kB / 1.072 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.813e-05/0.373, allocations: 47.52 kB / 1.072 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.3731, allocations: 35.5 kB / 1.072 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3731, allocations: 4 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.3731, allocations: 3.984 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3731, allocations: 0 / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.3755, allocations: 1.223 MB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3755, allocations: 0 / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003413/0.3759, allocations: 75.89 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.3759, allocations: 4 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.376, allocations: 11.98 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.255e-05/0.376, allocations: 4 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.376, allocations: 7.891 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.3775, allocations: 0.7805 MB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.991e-05/0.3776, allocations: 116.6 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.551e-05/0.3777, allocations: 8 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.378, allocations: 35.97 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.3781, allocations: 39.91 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.919e-05/0.3782, allocations: 47.89 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002512/0.3785, allocations: 203.1 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.8e-07/0.3785, allocations: 0 / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006589/0.3792, allocations: 103.9 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pul.booPul.y,pul1.booPul.y,intPul.y,intPul.booPul.y,intPul1.y,intPul1.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 4 * 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.0002802/0.3795, allocations: 119.9 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002146/0.3816, allocations: 1.137 MB / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3816, allocations: 0 / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008291/0.3825, allocations: 0.5323 MB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007838/0.3833, allocations: 84.59 kB / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.3853, allocations: 0.8804 MB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000525/0.3859, allocations: 0.7966 MB / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003726/0.3862, allocations: 95.19 kB / 1.078 GB, free: 64 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.3864, allocations: 31.44 kB / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of SimCode: time 8.82e-07/0.3864, allocations: 0 / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of Templates: time 0.0155/0.4019, allocations: 5.853 MB / 1.084 GB, free: 10.27 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_RealExtractor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches