Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.2 MB / 0.6647 GB, free: 288 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001428, allocations: 63.91 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6537/0.6551, allocations: 140.4 MB / 0.9497 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.001864/0.6571, allocations: 0.9608 MB / 0.9507 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001598/0.6587, allocations: 1.437 MB / 0.9521 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.601e-05/0.6588, allocations: 6.281 kB / 0.9521 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.826e-05/0.6588, allocations: 15.75 kB / 0.9521 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.659, allocations: 52.34 kB / 0.9521 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009292/0.6599, allocations: 440 kB / 0.9526 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004107/0.6603, allocations: 0.509 MB / 0.9531 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.6605, allocations: 42.05 kB / 0.9531 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.6606, allocations: 185 kB / 0.9533 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.6608, allocations: 145.5 kB / 0.9534 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.267e-05/0.6609, allocations: 48.75 kB / 0.9535 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.661, allocations: 59.3 kB / 0.9535 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.589e-05/0.6611, allocations: 36.17 kB / 0.9536 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.6612, allocations: 171.9 kB / 0.9537 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003359/0.6616, allocations: 495.3 kB / 0.9542 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.6616, allocations: 0 / 0.9542 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6616, allocations: 0 / 0.9542 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.976e-06/0.6616, allocations: 0 / 0.9542 GB, free: 5.906 MB / 0.7169 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.000616/0.6622, allocations: 0.631 MB / 0.9548 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.6623, allocations: 8.375 kB / 0.9548 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.667e-05/0.6623, allocations: 41.45 kB / 0.9549 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.577e-05/0.6624, allocations: 32.03 kB / 0.9549 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.6625, allocations: 227.4 kB / 0.9551 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.6626, allocations: 24.95 kB / 0.9551 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.132e-05/0.6626, allocations: 18.03 kB / 0.9551 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/0.6628, allocations: 125.1 kB / 0.9553 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.6628, allocations: 0 / 0.9553 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.6628, allocations: 1.188 kB / 0.9553 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.6628, allocations: 2.656 kB / 0.9553 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.6629, allocations: 62.77 kB / 0.9553 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007429/0.6637, allocations: 0.8741 MB / 0.9562 GB, free: 4 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.6638, allocations: 123.5 kB / 0.9563 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.666e-05/0.6639, allocations: 51.55 kB / 0.9563 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.6639, allocations: 2.344 kB / 0.9564 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.6642, allocations: 170.1 kB / 0.9565 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.392e-06/0.6642, allocations: 1.344 kB / 0.9565 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0004583/0.6647, allocations: 227.6 kB / 0.9567 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.6647, allocations: 140 kB / 0.9569 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.665, allocations: 243.3 kB / 0.9571 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/0.665, allocations: 38.64 kB / 0.9571 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.456e-05/0.6651, allocations: 129.4 kB / 0.9573 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.6651, allocations: 37.73 kB / 0.9573 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.6653, allocations: 91.17 kB / 0.9574 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.593e-05/0.6654, allocations: 336.3 kB / 0.9577 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.6656, allocations: 146.8 kB / 0.9578 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002823/0.6659, allocations: 227 kB / 0.9581 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003714/0.6663, allocations: 363.8 kB / 0.9584 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.6663, allocations: 0 / 0.9584 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008134/0.6671, allocations: 0.5539 MB / 0.9589 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.969e-05/0.6672, allocations: 139 kB / 0.9591 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.6672, allocations: 6.953 kB / 0.9591 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.6672, allocations: 4.125 kB / 0.9591 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.887e-05/0.6673, allocations: 21.58 kB / 0.9591 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.6673, allocations: 3.281 kB / 0.9591 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000683/0.668, allocations: 120.3 kB / 0.9592 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.314e-05/0.6681, allocations: 34.3 kB / 0.9593 GB, free: 1.48 MB / 0.7169 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.000119/0.6682, allocations: 143.4 kB / 0.9594 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.6682, allocations: 25.92 kB / 0.9594 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.711e-05/0.6683, allocations: 18.62 kB / 0.9594 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.6683, allocations: 6.125 kB / 0.9594 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6683, allocations: 2.281 kB / 0.9594 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.6683, allocations: 5.953 kB / 0.9595 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.6685, allocations: 256.1 kB / 0.9597 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6685, allocations: 1.062 kB / 0.9597 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.694e-05/0.6685, allocations: 11.34 kB / 0.9597 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.6685, allocations: 2.156 kB / 0.9597 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.6686, allocations: 6.641 kB / 0.9597 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.6686, allocations: 10.19 kB / 0.9597 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6686, allocations: 1.125 kB / 0.9597 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002392/0.6688, allocations: 219.2 kB / 0.9599 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.712e-05/0.6689, allocations: 103.5 kB / 0.96 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.6689, allocations: 2.188 kB / 0.96 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.26e-05/0.669, allocations: 21.98 kB / 0.9601 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.357e-05/0.669, allocations: 14.64 kB / 0.9601 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.669, allocations: 5.719 kB / 0.9601 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001184/0.6691, allocations: 169.6 kB / 0.9602 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6692, allocations: 1.375 kB / 0.9602 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003249/0.6695, allocations: 66.84 kB / 0.9603 GB, free: 0.6094 MB / 0.7169 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.0005066/0.67, allocations: 0.7738 MB / 0.9611 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000718/0.6707, allocations: 0.5277 MB / 0.9616 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.6707, allocations: 5.188 kB / 0.9616 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.6708, allocations: 65.84 kB / 0.9616 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/0.6713, allocations: 57.86 kB / 0.9617 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.6749, allocations: 2.999 MB / 0.9646 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.6751, allocations: 0.7298 MB / 0.9653 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.753e-05/0.6752, allocations: 18.55 kB / 0.9654 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.435e-05/0.6753, allocations: 62.34 kB / 0.9654 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of SimCode: time 5.61e-07/0.6753, allocations: 7.938 kB / 0.9654 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.7027, allocations: 6.347 MB / 0.9716 GB, free: 9.125 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.879/8.582, allocations: 11.95 kB / 0.9716 GB, free: 9.117 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches