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: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00124/0.00124, allocations: 194.2 kB / 16.25 MB, free: 6.629 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.336/2.336, allocations: 390.2 MB / 0.6643 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7198/0.7211, allocations: 140.4 MB / 0.9491 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003082/0.7242, allocations: 1.484 MB / 0.9505 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008058/0.7251, allocations: 432.2 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.661e-05/0.7252, allocations: 0.9062 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.528e-05/0.7252, allocations: 3.938 kB / 0.951 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.286e-05/0.7253, allocations: 9.125 kB / 0.951 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001659/0.7255, allocations: 20 kB / 0.951 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.7256, allocations: 53.23 kB / 0.951 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.601e-05/0.7257, allocations: 15.5 kB / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.06e-05/0.7258, allocations: 15.31 kB / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.102e-05/0.7259, allocations: 30.97 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.7259, allocations: 2.906 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.258e-05/0.7259, allocations: 4.281 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.182e-05/0.726, allocations: 5.297 kB / 0.9511 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.929e-05/0.726, allocations: 26.36 kB / 0.9511 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.7261, allocations: 35.02 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7261, allocations: 0 / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7261, allocations: 1.719 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.7261, allocations: 4 kB / 0.9512 GB, free: 7.57 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.0005786/0.7267, allocations: 397.1 kB / 0.9515 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.7268, allocations: 9.688 kB / 0.9516 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.697e-05/0.7268, allocations: 3.812 kB / 0.9516 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.7269, allocations: 170.8 kB / 0.9517 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.727, allocations: 1.625 kB / 0.9517 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.727, allocations: 15.39 kB / 0.9517 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.7271, allocations: 53.59 kB / 0.9518 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.7271, allocations: 3.938 kB / 0.9518 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.7272, allocations: 1.062 kB / 0.9518 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.7272, allocations: 5 kB / 0.9518 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.336e-05/0.7272, allocations: 22.27 kB / 0.9518 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004072/0.7277, allocations: 268.2 kB / 0.9521 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.284e-05/0.7277, allocations: 45.81 kB / 0.9521 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.709e-05/0.7278, allocations: 20.45 kB / 0.9521 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.7278, allocations: 1.094 kB / 0.9521 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002059/0.728, allocations: 107.5 kB / 0.9522 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.723e-06/0.728, allocations: 0 / 0.9522 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002578/0.7283, allocations: 140.4 kB / 0.9524 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.7283, allocations: 79.27 kB / 0.9524 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.457e-05/0.7284, allocations: 115.8 kB / 0.9526 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.7284, allocations: 27.2 kB / 0.9526 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.761e-05/0.7285, allocations: 89.86 kB / 0.9527 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.7285, allocations: 15.59 kB / 0.9527 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.7285, allocations: 26.58 kB / 0.9527 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.476e-05/0.7286, allocations: 324 kB / 0.953 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.329e-05/0.7286, allocations: 12.47 kB / 0.953 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.403e-05/0.7287, allocations: 42.66 kB / 0.9531 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.473e-05/0.7288, allocations: 109 kB / 0.9532 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.7288, allocations: 0 / 0.9532 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001442/0.7289, allocations: 129.9 kB / 0.9533 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.7289, allocations: 31.55 kB / 0.9533 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.729, allocations: 1.469 kB / 0.9533 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.729, allocations: 1.281 kB / 0.9533 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.077e-05/0.729, allocations: 10.78 kB / 0.9533 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.729, allocations: 5.344 kB / 0.9533 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.58e-05/0.7291, allocations: 12.7 kB / 0.9534 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.7291, allocations: 6.438 kB / 0.9534 GB, free: 5.332 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.618e-05/0.7292, allocations: 152.2 kB / 0.9535 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.7292, allocations: 7.25 kB / 0.9535 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.7293, allocations: 9.688 kB / 0.9535 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.7293, allocations: 1.25 kB / 0.9535 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.7293, allocations: 5.531 kB / 0.9535 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.7293, allocations: 3.938 kB / 0.9535 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003206/0.7296, allocations: 403 kB / 0.9539 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.7296, allocations: 0 / 0.9539 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.779e-06/0.7296, allocations: 5.484 kB / 0.9539 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.7296, allocations: 0 / 0.9539 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.7297, allocations: 6.047 kB / 0.9539 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.7297, allocations: 0.9375 kB / 0.9539 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7297, allocations: 0 / 0.9539 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/0.7299, allocations: 240.8 kB / 0.9542 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.443e-05/0.7299, allocations: 84.73 kB / 0.9542 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.7299, allocations: 0.6562 kB / 0.9542 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.73, allocations: 8.953 kB / 0.9543 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.141e-05/0.7301, allocations: 15.42 kB / 0.9543 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.7301, allocations: 3.625 kB / 0.9543 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.918e-05/0.7302, allocations: 85.34 kB / 0.9544 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7302, allocations: 4 kB / 0.9544 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002417/0.7304, allocations: 13.75 kB / 0.9544 GB, free: 4.352 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.0001037/0.7305, allocations: 107.3 kB / 0.9545 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001759/0.7307, allocations: 116.2 kB / 0.9546 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.7307, allocations: 0 / 0.9546 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.228e-05/0.7308, allocations: 89.73 kB / 0.9547 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.7311, allocations: 21.23 kB / 0.9547 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003246/0.7314, allocations: 159 kB / 0.9548 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.7316, allocations: 0.6913 MB / 0.9555 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.05e-05/0.7316, allocations: 7.859 kB / 0.9555 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.42e-05/0.7316, allocations: 10.06 kB / 0.9555 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.7316, allocations: 4 kB / 0.9555 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of Templates: time 0.003081/0.7347, allocations: 0.8188 MB / 0.9563 GB, free: 2.793 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (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 & ./Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches