Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.0018/0.0018, allocations: 99.56 kB / 16.27 MB, free: 5.977 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.002031/0.002031, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.531/1.531, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437.1 MB / 0.7111 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 71.95 kB / 0.8699 GB, free: 2.152 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3357, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse): time 0.002568/0.3383, allocations: 1.173 MB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00298/0.3413, allocations: 2.163 MB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.823e-05/0.3414, allocations: 0 / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 6.78e-05/0.3415, allocations: 27.67 kB / 1.021 GB, free: 7.215 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.3417, allocations: 83.27 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003042/0.3448, allocations: 1.375 MB / 1.023 GB, free: 5.801 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001341/0.3461, allocations: 1.287 MB / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 7.944e-05/0.3462, allocations: 24.72 kB / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005055/0.3467, allocations: 479.2 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.3471, allocations: 347.1 kB / 1.025 GB, free: 3.676 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.3473, allocations: 108 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.3476, allocations: 123.9 kB / 1.025 GB, free: 3.449 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.587e-05/0.3476, allocations: 63.77 kB / 1.025 GB, free: 3.387 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000455/0.3481, allocations: 391 kB / 1.025 GB, free: 3.004 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0009588/0.3491, allocations: 0.9626 MB / 1.026 GB, free: 2.039 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3491, allocations: 0 / 1.026 GB, free: 2.039 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3491, allocations: 0 / 1.026 GB, free: 2.039 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.3491, allocations: 4 kB / 1.026 GB, free: 2.035 MB / 0.795 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.00138/0.3505, allocations: 1.164 MB / 1.028 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.3505, allocations: 8.922 kB / 1.028 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.3507, allocations: 76.5 kB / 1.028 GB, free: 0.6484 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.3509, allocations: 224.3 kB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.236e-05/0.351, allocations: 36.36 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.3512, allocations: 68.36 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.3515, allocations: 217 kB / 1.028 GB, free: 24 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3515, allocations: 192 / 1.028 GB, free: 24 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.3515, allocations: 7.938 kB / 1.028 GB, free: 16 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.3515, allocations: 4 kB / 1.028 GB, free: 12 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.3517, allocations: 75.8 kB / 1.028 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009583/0.3526, allocations: 0.8406 MB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.353, allocations: 331.2 kB / 1.029 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.3532, allocations: 132.9 kB / 1.029 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.3532, allocations: 11.94 kB / 1.029 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006369/0.3538, allocations: 474.4 kB / 1.03 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=45): time 3.407e-06/0.3539, allocations: 3.984 kB / 1.03 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of matching and sorting (n=45): time 0.001052/0.3549, allocations: 0.5618 MB / 1.03 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002418/0.3552, allocations: 435.2 kB / 1.031 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.3555, allocations: 300.4 kB / 1.031 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.3556, allocations: 61.7 kB / 1.031 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.3558, allocations: 169.2 kB / 1.031 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.014e-05/0.3559, allocations: 90.94 kB / 1.031 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004939/0.3564, allocations: 274.1 kB / 1.032 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3566, allocations: 346.8 kB / 1.032 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008654/0.3575, allocations: 429.3 kB / 1.032 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.3586, allocations: 0.6989 MB / 1.033 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.36, allocations: 1.195 MB / 1.034 GB, free: 8.809 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.36, allocations: 4 kB / 1.034 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002901/0.3629, allocations: 1.72 MB / 1.036 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.000349/0.3633, allocations: 485.4 kB / 1.036 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.3633, allocations: 8 kB / 1.036 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.934e-05/0.3633, allocations: 16 kB / 1.037 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.863e-05/0.3634, allocations: 36.66 kB / 1.037 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.3634, allocations: 15.94 kB / 1.037 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002431/0.3659, allocations: 423 kB / 1.037 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.3661, allocations: 95.92 kB / 1.037 GB, free: 5.836 MB / 0.8106 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.0003481/0.3664, allocations: 217.5 kB / 1.037 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.175e-05/0.3665, allocations: 51.45 kB / 1.037 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.912e-05/0.3666, allocations: 38.14 kB / 1.037 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.3666, allocations: 8 kB / 1.037 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.3666, allocations: 4 kB / 1.037 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.3666, allocations: 4 kB / 1.037 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004036/0.3671, allocations: 333.3 kB / 1.038 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.3671, allocations: 7.984 kB / 1.038 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.905e-05/0.3671, allocations: 19.92 kB / 1.038 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.707e-06/0.3671, allocations: 7.938 kB / 1.038 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.3672, allocations: 27.98 kB / 1.038 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.3672, allocations: 4 kB / 1.038 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.3672, allocations: 7.938 kB / 1.038 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007045/0.3679, allocations: 0.508 MB / 1.038 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.368, allocations: 120.6 kB / 1.038 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.3681, allocations: 19.98 kB / 1.038 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3682, allocations: 8 kB / 1.038 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3683, allocations: 63.81 kB / 1.038 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.254e-05/0.3684, allocations: 31.98 kB / 1.038 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002171/0.3686, allocations: 195 kB / 1.039 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3686, allocations: 0 / 1.039 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007391/0.3694, allocations: 204 kB / 1.039 GB, free: 3.848 MB / 0.8106 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.0002546/0.3696, allocations: 131.2 kB / 1.039 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002481/0.3721, allocations: 1.765 MB / 1.041 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3721, allocations: 3.938 kB / 1.041 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006518/0.3728, allocations: 360.9 kB / 1.041 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007524/0.3735, allocations: 136.1 kB / 1.041 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.3747, allocations: 0.6757 MB / 1.042 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.3751, allocations: 0.7799 MB / 1.043 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.3752, allocations: 35.44 kB / 1.043 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3752, allocations: 0 / 1.043 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.01219/0.3874, allocations: 7.564 MB / 1.05 GB, free: 8.199 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches