Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Logical.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul_a1.y|booPul_a2.y|booPul_a3.y|booPul_a4.y|booPul_a5.y|booPul_b1.y|booPul_b2.y|booPul_b3.y|booPul_b4.y|booPul_b5.y|booPul_c1.y|booPul_c2.y|booPul_c3.y|booPul_c4.y|booPul_c5.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul_a1.y|booPul_a2.y|booPul_a3.y|booPul_a4.y|booPul_a5.y|booPul_b1.y|booPul_b2.y|booPul_b3.y|booPul_b4.y|booPul_b5.y|booPul_c1.y|booPul_c2.y|booPul_c3.y|booPul_c4.y|booPul_c5.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007893/0.007893, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001553/0.001553, allocations: 189.5 kB / 16.67 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.724/2.724, allocations: 472.6 MB / 0.7453 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 64.12 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046/1.048, allocations: 159.9 MB / 1.226 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse): time 0.002282/1.05, allocations: 1.165 MB / 1.227 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002581/1.052, allocations: 2.176 MB / 1.229 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.842e-05/1.053, allocations: 0 / 1.229 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 6.059e-05/1.053, allocations: 19.69 kB / 1.229 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001706/1.053, allocations: 83.2 kB / 1.229 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002816/1.056, allocations: 1.401 MB / 1.23 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001276/1.057, allocations: 1.295 MB / 1.232 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.978e-05/1.057, allocations: 20.75 kB / 1.232 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004602/1.057, allocations: 479.2 kB / 1.232 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005684/1.058, allocations: 438.8 kB / 1.233 GB, free: 6.551 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001938/1.058, allocations: 108 kB / 1.233 GB, free: 6.445 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002509/1.058, allocations: 120 kB / 1.233 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.379e-05/1.059, allocations: 59.77 kB / 1.233 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000444/1.059, allocations: 387 kB / 1.233 GB, free: 5.891 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001036/1.06, allocations: 0.9666 MB / 1.234 GB, free: 4.93 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/1.06, allocations: 3.984 kB / 1.234 GB, free: 4.926 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.463e-06/1.06, allocations: 0 / 1.234 GB, free: 4.926 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.197e-06/1.06, allocations: 0 / 1.234 GB, free: 4.926 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001354/1.061, allocations: 1.183 MB / 1.235 GB, free: 3.594 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/1.062, allocations: 15.97 kB / 1.235 GB, free: 3.578 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/1.062, allocations: 72.73 kB / 1.235 GB, free: 3.508 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/1.062, allocations: 220.6 kB / 1.236 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/1.062, allocations: 32.38 kB / 1.236 GB, free: 3.219 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/1.062, allocations: 68.36 kB / 1.236 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/1.062, allocations: 214.9 kB / 1.236 GB, free: 2.891 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/1.062, allocations: 192 / 1.236 GB, free: 2.891 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/1.062, allocations: 11.92 kB / 1.236 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/1.062, allocations: 4 kB / 1.236 GB, free: 2.875 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/1.063, allocations: 71.78 kB / 1.236 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000825/1.063, allocations: 0.8417 MB / 1.237 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/1.064, allocations: 327.2 kB / 1.237 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/1.064, allocations: 140.8 kB / 1.237 GB, free: 1.23 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/1.064, allocations: 19.92 kB / 1.237 GB, free: 1.211 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005268/1.064, allocations: 455 kB / 1.238 GB, free: 0.6953 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=45): time 3.386e-06/1.064, allocations: 0 / 1.238 GB, free: 0.6953 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.0009608/1.065, allocations: 0.5697 MB / 1.238 GB, free: 124 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002332/1.066, allocations: 447.2 kB / 1.239 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/1.066, allocations: 296.3 kB / 1.239 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001217/1.066, allocations: 69.69 kB / 1.239 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/1.066, allocations: 153.4 kB / 1.239 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.928e-05/1.066, allocations: 103.3 kB / 1.239 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004632/1.067, allocations: 274.1 kB / 1.239 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001506/1.067, allocations: 354.8 kB / 1.24 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008138/1.068, allocations: 421.3 kB / 1.24 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/1.069, allocations: 0.7028 MB / 1.241 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/1.07, allocations: 1.191 MB / 1.242 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/1.07, allocations: 4 kB / 1.242 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002722/1.073, allocations: 1.728 MB / 1.244 GB, free: 9.828 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003043/1.073, allocations: 478.6 kB / 1.244 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/1.073, allocations: 12 kB / 1.244 GB, free: 9.258 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.716e-05/1.073, allocations: 16 kB / 1.244 GB, free: 9.242 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.008e-05/1.073, allocations: 32.73 kB / 1.244 GB, free: 9.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.606e-05/1.073, allocations: 23.91 kB / 1.244 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/1.075, allocations: 407.2 kB / 1.245 GB, free: 8.789 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/1.076, allocations: 99.92 kB / 1.245 GB, free: 8.691 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 60 (booPul_c5.y,$PRE.booPul_c5.y,$whenCondition29,$whenCondition30,booPul_b5.y,$PRE.booPul_b5.y,$whenCondition27,$whenCondition28,booPul_a5.y,$PRE.booPul_a5.y,$whenCondition25,$whenCondition26,booPul_c4.y,$PRE.booPul_c4.y,$whenCondition23,$whenCondition24,booPul_b4.y,$PRE.booPul_b4.y,$whenCondition21,$whenCondition22,booPul_a4.y,$PRE.booPul_a4.y,$whenCondition19,$whenCondition20,booPul_c3.y,$PRE.booPul_c3.y,$whenCondition17,$whenCondition18,booPul_b3.y,$PRE.booPul_b3.y,$whenCondition15,$whenCondition16,booPul_a3.y,$PRE.booPul_a3.y,$whenCondition13,$whenCondition14,booPul_c2.y,$PRE.booPul_c2.y,$whenCondition11,$whenCondition12,booPul_b2.y,$PRE.booPul_b2.y,$whenCondition9,$whenCondition10,booPul_a2.y,$PRE.booPul_a2.y,$whenCondition7,$whenCondition8,booPul_c1.y,$PRE.booPul_c1.y,$whenCondition5,$whenCondition6,booPul_b1.y,$PRE.booPul_b1.y,$whenCondition3,$whenCondition4,booPul_a1.y,$PRE.booPul_a1.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 15 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003293/1.076, allocations: 222 kB / 1.245 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.805e-05/1.076, allocations: 51.69 kB / 1.245 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.004e-05/1.076, allocations: 38.14 kB / 1.245 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/1.076, allocations: 8 kB / 1.245 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/1.076, allocations: 4 kB / 1.245 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/1.076, allocations: 7.984 kB / 1.245 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003732/1.077, allocations: 333.4 kB / 1.245 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/1.077, allocations: 0 / 1.245 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.888e-05/1.077, allocations: 19.92 kB / 1.245 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/1.077, allocations: 7.938 kB / 1.245 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/1.077, allocations: 23.98 kB / 1.245 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.311e-06/1.077, allocations: 4 kB / 1.245 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.077, allocations: 7.938 kB / 1.245 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006338/1.077, allocations: 0.516 MB / 1.246 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.757e-05/1.077, allocations: 120.8 kB / 1.246 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/1.077, allocations: 23.92 kB / 1.246 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/1.078, allocations: 8 kB / 1.246 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.641e-05/1.078, allocations: 63.81 kB / 1.246 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.028e-05/1.078, allocations: 31.92 kB / 1.246 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001568/1.078, allocations: 191.1 kB / 1.246 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/1.078, allocations: 0 / 1.246 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000602/1.078, allocations: 200 kB / 1.247 GB, free: 6.699 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition29,$whenCondition30,booPul_c5.y,$whenCondition27,$whenCondition28,booPul_b5.y,$whenCondition25,$whenCondition26,booPul_a5.y,$whenCondition23,$whenCondition24,booPul_c4.y,$whenCondition21,$whenCondition22,booPul_b4.y,$whenCondition19,$whenCondition20,booPul_a4.y,$whenCondition17,$whenCondition18,booPul_c3.y,$whenCondition15,$whenCondition16,booPul_b3.y,$whenCondition13,$whenCondition14,booPul_a3.y,$whenCondition11,$whenCondition12,booPul_c2.y,$whenCondition9,$whenCondition10,booPul_b2.y,$whenCondition7,$whenCondition8,booPul_a2.y,$whenCondition5,$whenCondition6,booPul_c1.y,$whenCondition3,$whenCondition4,booPul_b1.y,$whenCondition1,$whenCondition2,booPul_a1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 15 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001924/1.079, allocations: 131.1 kB / 1.247 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001924/1.081, allocations: 1.749 MB / 1.248 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/1.081, allocations: 4 kB / 1.248 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002582/1.081, allocations: 191.6 kB / 1.249 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006852/1.082, allocations: 126.2 kB / 1.249 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009402/1.083, allocations: 0.6358 MB / 1.249 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/1.083, allocations: 0.7761 MB / 1.25 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000111/1.083, allocations: 46.95 kB / 1.25 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.047e-05/1.083, allocations: 35.42 kB / 1.25 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of SimCode: time 4.5e-07/1.083, allocations: 0 / 1.25 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of Templates: time 0.02162/1.105, allocations: 11.97 MB / 1.262 GB, free: 6.898 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches