Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.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.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",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.001661/0.001661, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002145/0.002145, allocations: 190.6 kB / 16.25 MB, free: 6.637 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.457/1.457, allocations: 222.9 MB / 239.9 MB, free: 4.539 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 3.15/3.15, allocations: 390.2 MB / 0.6644 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7466/0.7485, allocations: 140.4 MB / 0.9492 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003146/0.7517, allocations: 1.48 MB / 0.9507 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008754/0.7527, allocations: 436.2 kB / 0.9511 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.469e-05/0.7527, allocations: 4 kB / 0.9511 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.267e-05/0.7528, allocations: 0 / 0.9511 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.7529, allocations: 5.281 kB / 0.9511 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002043/0.7531, allocations: 28.16 kB / 0.9511 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.7533, allocations: 52.62 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.7534, allocations: 3.812 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.649e-05/0.7535, allocations: 24.55 kB / 0.9512 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.477e-05/0.7536, allocations: 17.45 kB / 0.9512 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.7536, allocations: 7.844 kB / 0.9512 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.569e-05/0.7536, allocations: 3.812 kB / 0.9512 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.81e-05/0.7537, allocations: 5.312 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.407e-05/0.7537, allocations: 30.22 kB / 0.9513 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.7539, allocations: 37.39 kB / 0.9513 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.7539, allocations: 1.25 kB / 0.9513 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.465e-06/0.7539, allocations: 0 / 0.9513 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.754, allocations: 0 / 0.9513 GB, free: 7.492 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007689/0.7547, allocations: 399.1 kB / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 7.313e-05/0.7548, allocations: 9.969 kB / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.308e-05/0.7549, allocations: 32.34 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.618e-05/0.7549, allocations: 4 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.7551, allocations: 179.1 kB / 0.9519 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.7551, allocations: 5.688 kB / 0.9519 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.7551, allocations: 4.062 kB / 0.9519 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.7553, allocations: 49.75 kB / 0.9519 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.7553, allocations: 0 / 0.9519 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.7553, allocations: 4 kB / 0.9519 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.7553, allocations: 9.547 kB / 0.952 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.604e-05/0.7554, allocations: 21.42 kB / 0.952 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.7558, allocations: 272.8 kB / 0.9522 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.16e-05/0.7559, allocations: 40.94 kB / 0.9523 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.83e-05/0.7559, allocations: 21.08 kB / 0.9523 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.756, allocations: 13.56 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.7562, allocations: 103 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.7562, allocations: 0 / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.000316/0.7565, allocations: 136.2 kB / 0.9525 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.7566, allocations: 83.73 kB / 0.9526 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.259e-05/0.7567, allocations: 111.8 kB / 0.9527 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.7567, allocations: 27.02 kB / 0.9527 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.7568, allocations: 97.44 kB / 0.9528 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/0.7568, allocations: 15.59 kB / 0.9529 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.457e-05/0.7568, allocations: 26.31 kB / 0.9529 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.446e-05/0.7569, allocations: 324.2 kB / 0.9532 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.04e-05/0.757, allocations: 13.19 kB / 0.9532 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.408e-05/0.757, allocations: 37.75 kB / 0.9532 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.7571, allocations: 116.8 kB / 0.9534 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.7571, allocations: 0 / 0.9534 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001767/0.7573, allocations: 117.6 kB / 0.9535 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.7574, allocations: 37.73 kB / 0.9535 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.7574, allocations: 4.766 kB / 0.9535 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.7574, allocations: 1.062 kB / 0.9535 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.033e-05/0.7575, allocations: 3.188 kB / 0.9535 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.7575, allocations: 1.062 kB / 0.9535 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.663e-05/0.7576, allocations: 13.47 kB / 0.9535 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.7576, allocations: 6.781 kB / 0.9535 GB, free: 5.211 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 9.472e-05/0.7577, allocations: 153.8 kB / 0.9537 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.7577, allocations: 3.156 kB / 0.9537 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.91e-05/0.7577, allocations: 11.22 kB / 0.9537 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.7577, allocations: 0 / 0.9537 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.7577, allocations: 0 / 0.9537 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.7578, allocations: 5.438 kB / 0.9537 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003719/0.7581, allocations: 414.9 kB / 0.9541 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.7581, allocations: 0 / 0.9541 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.023e-05/0.7582, allocations: 5.062 kB / 0.9541 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.7582, allocations: 0.9062 kB / 0.9541 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.7582, allocations: 2.219 kB / 0.9541 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7582, allocations: 0 / 0.9541 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.7582, allocations: 5.156 kB / 0.9541 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002071/0.7584, allocations: 232.9 kB / 0.9543 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.793e-05/0.7585, allocations: 86.23 kB / 0.9544 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.7585, allocations: 6.391 kB / 0.9544 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.7586, allocations: 5.156 kB / 0.9544 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.7586, allocations: 15.8 kB / 0.9544 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.7587, allocations: 3.844 kB / 0.9544 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.036e-05/0.7587, allocations: 93.2 kB / 0.9545 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7587, allocations: 0 / 0.9545 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002454/0.759, allocations: 14.25 kB / 0.9545 GB, free: 4.227 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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0004028/0.7594, allocations: 0.7669 MB / 0.9553 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001838/0.7596, allocations: 119.9 kB / 0.9554 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.7596, allocations: 0 / 0.9554 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.673e-05/0.7597, allocations: 93.39 kB / 0.9555 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.76, allocations: 15.34 kB / 0.9555 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.7612, allocations: 1.443 MB / 0.9569 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.7613, allocations: 0.6905 MB / 0.9576 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.036e-05/0.7614, allocations: 3.656 kB / 0.9576 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.921e-05/0.7614, allocations: 18.33 kB / 0.9576 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7614, allocations: 0 / 0.9576 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01387/0.7753, allocations: 1.725 MB / 0.9593 GB, free: 356 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/0.7756, allocations: 201.6 kB / 0.9595 GB, free: 92 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.744, allocations: 0 / 0.9595 GB, free: 92 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches