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.00992/0.00992, allocations: 100.1 kB / 15.73 MB, free: 6.055 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.001932/0.001932, allocations: 190.2 kB / 16.67 MB, free: 5.969 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.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.759/2.759, allocations: 472.6 MB / 0.7453 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.91 kB / 1.069 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.144/1.145, allocations: 159.9 MB / 1.226 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse): time 0.002534/1.148, allocations: 1.164 MB / 1.227 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002959/1.151, allocations: 2.168 MB / 1.229 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/1.151, allocations: 4 kB / 1.229 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 6.193e-05/1.151, allocations: 19.69 kB / 1.229 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001937/1.151, allocations: 83.27 kB / 1.229 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003356/1.155, allocations: 1.403 MB / 1.23 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001733/1.156, allocations: 1.299 MB / 1.232 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.177e-05/1.156, allocations: 16.75 kB / 1.232 GB, free: 7.586 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005855/1.157, allocations: 479.2 kB / 1.232 GB, free: 7.117 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006009/1.158, allocations: 446.8 kB / 1.233 GB, free: 6.68 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001806/1.158, allocations: 104 kB / 1.233 GB, free: 6.578 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002452/1.158, allocations: 120 kB / 1.233 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.072e-05/1.158, allocations: 55.77 kB / 1.233 GB, free: 6.406 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0004788/1.159, allocations: 395 kB / 1.233 GB, free: 6.02 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001023/1.16, allocations: 0.9668 MB / 1.234 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/1.16, allocations: 0 / 1.234 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.104e-06/1.16, allocations: 0 / 1.234 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.332e-05/1.16, allocations: 0 / 1.234 GB, free: 5.055 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.001397/1.161, allocations: 1.187 MB / 1.235 GB, free: 3.719 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/1.161, allocations: 8.031 kB / 1.235 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/1.161, allocations: 68.73 kB / 1.235 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/1.162, allocations: 228.5 kB / 1.236 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.665e-05/1.162, allocations: 36.31 kB / 1.236 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/1.162, allocations: 68.36 kB / 1.236 GB, free: 3.277 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/1.162, allocations: 211 kB / 1.236 GB, free: 3.02 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/1.162, allocations: 4.125 kB / 1.236 GB, free: 3.016 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/1.162, allocations: 11.92 kB / 1.236 GB, free: 3.004 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/1.162, allocations: 4 kB / 1.236 GB, free: 3 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/1.162, allocations: 71.78 kB / 1.236 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009437/1.163, allocations: 0.8418 MB / 1.237 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/1.164, allocations: 331.2 kB / 1.237 GB, free: 1.535 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/1.164, allocations: 136.9 kB / 1.237 GB, free: 1.355 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/1.164, allocations: 19.92 kB / 1.237 GB, free: 1.336 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005673/1.164, allocations: 459 kB / 1.238 GB, free: 0.8164 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/1.164, allocations: 0 / 1.238 GB, free: 0.8164 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.0009959/1.165, allocations: 0.5656 MB / 1.238 GB, free: 252 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000224/1.166, allocations: 439.2 kB / 1.239 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002819/1.166, allocations: 296.4 kB / 1.239 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001272/1.166, allocations: 69.69 kB / 1.239 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/1.166, allocations: 161.4 kB / 1.239 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/1.166, allocations: 95.33 kB / 1.239 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005035/1.167, allocations: 278 kB / 1.24 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001579/1.167, allocations: 346.8 kB / 1.24 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008483/1.168, allocations: 421.3 kB / 1.24 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/1.169, allocations: 0.7106 MB / 1.241 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/1.17, allocations: 1.199 MB / 1.242 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/1.17, allocations: 4 kB / 1.242 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002826/1.173, allocations: 1.72 MB / 1.244 GB, free: 9.957 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002903/1.173, allocations: 481.4 kB / 1.244 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/1.173, allocations: 9.094 kB / 1.244 GB, free: 9.387 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.002e-05/1.173, allocations: 16 kB / 1.244 GB, free: 9.371 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.766e-05/1.174, allocations: 31.86 kB / 1.244 GB, free: 9.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.999e-05/1.174, allocations: 23.92 kB / 1.244 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/1.176, allocations: 403.2 kB / 1.245 GB, free: 8.922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/1.176, allocations: 95.92 kB / 1.245 GB, free: 8.828 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.0003685/1.176, allocations: 226 kB / 1.245 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/1.176, allocations: 47.69 kB / 1.245 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.54e-05/1.176, allocations: 34.14 kB / 1.245 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/1.177, allocations: 8 kB / 1.245 GB, free: 8.508 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/1.177, allocations: 8 kB / 1.245 GB, free: 8.5 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/1.177, allocations: 7.984 kB / 1.245 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003872/1.177, allocations: 329.4 kB / 1.245 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/1.177, allocations: 4 kB / 1.245 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.328e-05/1.177, allocations: 27.92 kB / 1.245 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.779e-06/1.177, allocations: 7.938 kB / 1.245 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.957e-05/1.177, allocations: 19.98 kB / 1.246 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/1.177, allocations: 7.938 kB / 1.246 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/1.177, allocations: 7.938 kB / 1.246 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006648/1.178, allocations: 0.516 MB / 1.246 GB, free: 7.473 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.45e-05/1.178, allocations: 124.7 kB / 1.246 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/1.178, allocations: 15.98 kB / 1.246 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/1.178, allocations: 15.98 kB / 1.246 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.683e-05/1.178, allocations: 55.83 kB / 1.246 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/1.178, allocations: 31.98 kB / 1.246 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001785/1.178, allocations: 195.1 kB / 1.246 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/1.178, allocations: 0 / 1.246 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007132/1.179, allocations: 196 kB / 1.247 GB, free: 6.832 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.0002361/1.179, allocations: 135 kB / 1.247 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002162/1.181, allocations: 1.753 MB / 1.248 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.181, allocations: 1.875 kB / 1.248 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002722/1.182, allocations: 188.6 kB / 1.249 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007528/1.183, allocations: 129.3 kB / 1.249 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/1.184, allocations: 0.6324 MB / 1.249 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/1.184, allocations: 0.7761 MB / 1.25 GB, free: 2.938 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001233/1.184, allocations: 46.91 kB / 1.25 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.043e-05/1.184, allocations: 39.42 kB / 1.25 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of SimCode: time 4.21e-07/1.184, allocations: 0 / 1.25 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of Templates: time 0.02151/1.206, allocations: 11.96 MB / 1.262 GB, free: 7.043 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