Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.001591/0.001591, allocations: 108 kB / 15.61 MB, free: 152 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.002016/0.002015, allocations: 197 kB / 16.53 MB, free: 6.664 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.481/1.481, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.509/2.509, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 67.89 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.657/0.6584, allocations: 140.4 MB / 0.9497 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001689/0.6601, allocations: 0.6574 MB / 0.9504 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009358/0.6611, allocations: 1.05 MB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.94e-05/0.6611, allocations: 1.188 kB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.617e-05/0.6612, allocations: 3.938 kB / 0.9514 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.208e-05/0.6612, allocations: 7.922 kB / 0.9514 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.6615, allocations: 38.09 kB / 0.9514 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.471e-05/0.6615, allocations: 44.73 kB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.022e-05/0.6616, allocations: 17.12 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.767e-05/0.6617, allocations: 14.22 kB / 0.9515 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.514e-05/0.6617, allocations: 26.25 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.6618, allocations: 3.406 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.216e-05/0.6618, allocations: 17.58 kB / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.429e-05/0.6618, allocations: 6.219 kB / 0.9516 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.6619, allocations: 19.94 kB / 0.9516 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.677e-05/0.662, allocations: 51.53 kB / 0.9516 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.662, allocations: 1.094 kB / 0.9516 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.242e-06/0.662, allocations: 0 / 0.9516 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.662, allocations: 4 kB / 0.9516 GB, free: 7.668 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003882/0.6624, allocations: 360.9 kB / 0.952 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.6624, allocations: 10.31 kB / 0.952 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.56e-05/0.6625, allocations: 40.31 kB / 0.952 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.6625, allocations: 2.281 kB / 0.952 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.108e-05/0.6626, allocations: 175 kB / 0.9522 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.6626, allocations: 1.531 kB / 0.9522 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.6626, allocations: 3.406 kB / 0.9522 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.6628, allocations: 62.14 kB / 0.9523 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.6628, allocations: 3.938 kB / 0.9523 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.6628, allocations: 0 / 0.9523 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.6628, allocations: 9.266 kB / 0.9523 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.663, allocations: 44.86 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003562/0.6634, allocations: 275.4 kB / 0.9526 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.6635, allocations: 44.52 kB / 0.9526 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.724e-05/0.6636, allocations: 24.34 kB / 0.9526 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.6636, allocations: 5.016 kB / 0.9527 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.6638, allocations: 75.89 kB / 0.9527 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.503e-06/0.6638, allocations: 0 / 0.9527 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0003461/0.6641, allocations: 100.5 kB / 0.9528 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.6642, allocations: 56.52 kB / 0.9529 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.432e-05/0.6642, allocations: 107.4 kB / 0.953 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.6642, allocations: 30.89 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.512e-05/0.6643, allocations: 89.33 kB / 0.9531 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.6643, allocations: 14.47 kB / 0.9531 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.6643, allocations: 22.3 kB / 0.9531 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.492e-05/0.6644, allocations: 316.3 kB / 0.9534 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.282e-05/0.6645, allocations: 20.39 kB / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.65e-05/0.6646, allocations: 55.03 kB / 0.9535 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.6648, allocations: 80.33 kB / 0.9536 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.6648, allocations: 0 / 0.9536 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002353/0.665, allocations: 98.41 kB / 0.9537 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.665, allocations: 5.625 kB / 0.9537 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.665, allocations: 0 / 0.9537 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.6651, allocations: 2.406 kB / 0.9537 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.749e-05/0.6652, allocations: 12.7 kB / 0.9537 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.6652, allocations: 6.609 kB / 0.9537 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.405e-05/0.6652, allocations: 8.781 kB / 0.9537 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.6653, allocations: 2.375 kB / 0.9537 GB, free: 5.613 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 5.089e-05/0.6653, allocations: 125.3 kB / 0.9538 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.6653, allocations: 9.109 kB / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002345/0.6656, allocations: 89.19 kB / 0.9539 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.6656, allocations: 1.188 kB / 0.9539 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.6656, allocations: 1.094 kB / 0.9539 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.6656, allocations: 0 / 0.9539 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/0.6659, allocations: 353.3 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.6659, allocations: 4.062 kB / 0.9543 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.908e-05/0.666, allocations: 10.8 kB / 0.9543 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.666, allocations: 0 / 0.9543 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.666, allocations: 1.219 kB / 0.9543 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.666, allocations: 0 / 0.9543 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.666, allocations: 0 / 0.9543 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002198/0.6663, allocations: 190 kB / 0.9545 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.61e-05/0.6663, allocations: 78.39 kB / 0.9545 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.6663, allocations: 1.688 kB / 0.9545 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.6664, allocations: 11.55 kB / 0.9545 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.034e-05/0.6664, allocations: 9.641 kB / 0.9546 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.6664, allocations: 1.625 kB / 0.9546 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.438e-05/0.6665, allocations: 93.39 kB / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6665, allocations: 0 / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002384/0.6667, allocations: 9.688 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004099/0.6671, allocations: 0.7219 MB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002463/0.6674, allocations: 57.36 kB / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.6674, allocations: 0 / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.6675, allocations: 36.22 kB / 0.9554 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.6678, allocations: 9.812 kB / 0.9555 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.669, allocations: 1.362 MB / 0.9568 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.497e-05/0.6691, allocations: 0.6881 MB / 0.9575 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.979e-05/0.6691, allocations: 6.953 kB / 0.9575 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.6692, allocations: 13.69 kB / 0.9575 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of SimCode: time 2.8e-07/0.6692, allocations: 1.281 kB / 0.9575 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.6848, allocations: 1.673 MB / 0.9591 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/8.285, allocations: 15.64 kB / 0.9591 GB, free: 0.9648 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches