Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pul.y|pul1.y|pul2.y|pul3.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pul.y|pul1.y|pul2.y|pul3.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002079/0.00208, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.622/1.622, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.01/3.01, allocations: 472.6 MB / 0.7447 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 64.08 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4542/0.4564, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.002593/0.459, allocations: 1.025 MB / 1.069 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002258/0.4613, allocations: 1.498 MB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.4615, allocations: 0 / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.4617, allocations: 11.86 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.4619, allocations: 39.7 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.4632, allocations: 420.5 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005467/0.4638, allocations: 423.1 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.464, allocations: 49.64 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003931/0.4644, allocations: 151.5 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.4647, allocations: 127.5 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.4648, allocations: 20 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.465, allocations: 35.98 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.748e-05/0.4651, allocations: 27.86 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.4654, allocations: 135.4 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006306/0.466, allocations: 471 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.466, allocations: 0 / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.695e-06/0.466, allocations: 0 / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.466, allocations: 3.938 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001029/0.4671, allocations: 0.6379 MB / 1.072 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.4671, allocations: 12.03 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.4673, allocations: 24.75 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.4675, allocations: 223 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/0.4675, allocations: 12.38 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.4676, allocations: 24.38 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002273/0.4678, allocations: 125.6 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4678, allocations: 192 / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.4679, allocations: 7.875 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.4679, allocations: 4 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001236/0.468, allocations: 55.91 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.469, allocations: 0.8795 MB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.4692, allocations: 114.4 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.331e-05/0.4693, allocations: 51.48 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.4693, allocations: 4 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002924/0.4696, allocations: 176.5 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 3.997e-06/0.4696, allocations: 0 / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0005383/0.4702, allocations: 225.3 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.4703, allocations: 140.5 kB / 1.074 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.4706, allocations: 236.9 kB / 1.075 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.4707, allocations: 45.64 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.4708, allocations: 132.5 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.4709, allocations: 31.61 kB / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/0.4711, allocations: 89.66 kB / 1.075 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4712, allocations: 334.8 kB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003255/0.4715, allocations: 148.2 kB / 1.075 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.4719, allocations: 222.7 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.4724, allocations: 368.9 kB / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.4724, allocations: 0 / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009539/0.4733, allocations: 0.5592 MB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.4734, allocations: 134.8 kB / 1.077 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.4735, allocations: 7.938 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.4735, allocations: 4 kB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.611e-05/0.4736, allocations: 19.92 kB / 1.077 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.4736, allocations: 4 kB / 1.077 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/0.4743, allocations: 119.8 kB / 1.077 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.468e-05/0.4744, allocations: 27.98 kB / 1.077 GB, free: 0.8164 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,pul3.booPul.y,$PRE.pul3.booPul.y,pul3.y,$whenCondition5,$whenCondition6,pul1.booPul.y,$PRE.pul1.booPul.y,pul1.y,$whenCondition3,$whenCondition4,pul2.booPul.y,$PRE.pul2.booPul.y,pul2.y,$whenCondition1,$whenCondition2,pul.booPul.y,$PRE.pul.booPul.y,pul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * 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.0001785/0.4746, allocations: 151 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.857e-05/0.4746, allocations: 19.86 kB / 1.077 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.103e-05/0.4747, allocations: 33.22 kB / 1.077 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.4747, allocations: 0 / 1.077 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4747, allocations: 4 kB / 1.077 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4747, allocations: 3.938 kB / 1.077 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.475, allocations: 257.5 kB / 1.077 GB, free: 300 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.475, allocations: 0 / 1.077 GB, free: 300 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.34e-05/0.475, allocations: 15.98 kB / 1.077 GB, free: 284 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.475, allocations: 0 / 1.077 GB, free: 284 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.4751, allocations: 4 kB / 1.077 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.4751, allocations: 4 kB / 1.077 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4751, allocations: 3.938 kB / 1.077 GB, free: 272 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002833/0.4754, allocations: 219.2 kB / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.388e-05/0.4754, allocations: 96.92 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.4755, allocations: 7.984 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.273e-05/0.4755, allocations: 4 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.4756, allocations: 23.86 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.4756, allocations: 8 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001921/0.4758, allocations: 168.5 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4758, allocations: 3.938 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003572/0.4762, allocations: 68 kB / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition7,$whenCondition8,pul3.y,pul3.booPul.y,$whenCondition5,$whenCondition6,pul1.y,pul1.booPul.y,$whenCondition3,$whenCondition4,pul2.y,pul2.booPul.y,$whenCondition1,$whenCondition2,pul.y,pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002013/0.4764, allocations: 111.2 kB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007944/0.4772, allocations: 0.5287 MB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4772, allocations: 0 / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.4773, allocations: 67.84 kB / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.4778, allocations: 65.03 kB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008078/0.4787, allocations: 392.5 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.4791, allocations: 0.7284 MB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.4792, allocations: 22.3 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.4792, allocations: 15.44 kB / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of SimCode: time 6.11e-07/0.4792, allocations: 0 / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of Templates: time 0.01028/0.4895, allocations: 4.37 MB / 1.084 GB, free: 9.293 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches