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.001481/0.001481, allocations: 102.2 kB / 16.27 MB, free: 6 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.001678/0.001678, allocations: 191 kB / 17.2 MB, free: 5.609 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.447/1.447, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.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.207/2.207, allocations: 390.2 MB / 0.6653 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 64 kB / 0.8132 GB, free: 33.09 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2735, allocations: 140.4 MB / 0.9503 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00289/0.2764, allocations: 1.427 MB / 0.9517 GB, free: 7.434 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007715/0.2772, allocations: 431 kB / 0.9521 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.879e-05/0.2773, allocations: 3.938 kB / 0.9521 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.08e-05/0.2773, allocations: 3.938 kB / 0.9521 GB, free: 7 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.589e-05/0.2774, allocations: 15.92 kB / 0.9521 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001562/0.2776, allocations: 19.92 kB / 0.9521 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.2777, allocations: 51.84 kB / 0.9522 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.532e-05/0.2778, allocations: 7.984 kB / 0.9522 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.633e-05/0.2779, allocations: 19.94 kB / 0.9522 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.258e-05/0.2779, allocations: 19.92 kB / 0.9522 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.278, allocations: 4 kB / 0.9522 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.278, allocations: 7.938 kB / 0.9522 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.481e-05/0.278, allocations: 11.92 kB / 0.9522 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.134e-05/0.2781, allocations: 19.92 kB / 0.9522 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.2782, allocations: 39.89 kB / 0.9523 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.2782, allocations: 0 / 0.9523 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of FrontEnd: time 7.32e-07/0.2782, allocations: 0 / 0.9523 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.2782, allocations: 0 / 0.9523 GB, free: 6.785 MB / 0.7325 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.000605/0.2788, allocations: 401.3 kB / 0.9527 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2789, allocations: 11.97 kB / 0.9527 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.422e-05/0.2789, allocations: 8.844 kB / 0.9527 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.2791, allocations: 168.3 kB / 0.9528 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.2791, allocations: 384 / 0.9528 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.2791, allocations: 8.375 kB / 0.9528 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.2792, allocations: 57.97 kB / 0.9529 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.2793, allocations: 7.938 kB / 0.9529 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.2793, allocations: 0 / 0.9529 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.2793, allocations: 7.938 kB / 0.9529 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.664e-05/0.2794, allocations: 23.98 kB / 0.9529 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004335/0.2798, allocations: 268.8 kB / 0.9532 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.548e-05/0.2799, allocations: 38.56 kB / 0.9532 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.951e-05/0.2799, allocations: 24.98 kB / 0.9533 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.28, allocations: 0 / 0.9533 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.2802, allocations: 108.9 kB / 0.9534 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.2802, allocations: 0 / 0.9534 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0003101/0.2805, allocations: 139.3 kB / 0.9535 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.2806, allocations: 81.11 kB / 0.9536 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.156e-05/0.2807, allocations: 113.8 kB / 0.9537 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.2807, allocations: 25.7 kB / 0.9537 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.013e-05/0.2808, allocations: 84.14 kB / 0.9538 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.2808, allocations: 23.88 kB / 0.9538 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.714e-05/0.2809, allocations: 25.7 kB / 0.9538 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.281, allocations: 322.8 kB / 0.9541 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.948e-05/0.281, allocations: 15.98 kB / 0.9542 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.206e-05/0.2811, allocations: 38.56 kB / 0.9542 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.2812, allocations: 113.9 kB / 0.9543 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2812, allocations: 0 / 0.9543 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001615/0.2813, allocations: 123.2 kB / 0.9544 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.2814, allocations: 37.7 kB / 0.9545 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2814, allocations: 0 / 0.9545 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2814, allocations: 0 / 0.9545 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.604e-05/0.2815, allocations: 4 kB / 0.9545 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.2815, allocations: 4.328 kB / 0.9545 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.234e-05/0.2816, allocations: 15.92 kB / 0.9545 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.2816, allocations: 8.375 kB / 0.9545 GB, free: 4.23 MB / 0.7325 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 0.0001026/0.2817, allocations: 147.5 kB / 0.9546 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.976e-05/0.2817, allocations: 7.984 kB / 0.9546 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.903e-05/0.2817, allocations: 12.38 kB / 0.9546 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2818, allocations: 3.938 kB / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2818, allocations: 0 / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2818, allocations: 0 / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004/0.2822, allocations: 404 kB / 0.955 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2822, allocations: 4 kB / 0.955 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.814e-06/0.2822, allocations: 0 / 0.955 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2822, allocations: 0 / 0.955 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2822, allocations: 4 kB / 0.955 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2822, allocations: 4.062 kB / 0.955 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2822, allocations: 3.984 kB / 0.9551 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.2825, allocations: 233.1 kB / 0.9553 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.923e-05/0.2825, allocations: 85.02 kB / 0.9554 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.2825, allocations: 8.062 kB / 0.9554 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.2826, allocations: 7.984 kB / 0.9554 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/0.2827, allocations: 11.94 kB / 0.9554 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.2827, allocations: 7.984 kB / 0.9554 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.457e-05/0.2828, allocations: 87.28 kB / 0.9555 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2828, allocations: 0 / 0.9555 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000234/0.283, allocations: 12 kB / 0.9555 GB, free: 3.09 MB / 0.7325 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.0001068/0.2831, allocations: 107.2 kB / 0.9556 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001875/0.2833, allocations: 119.3 kB / 0.9557 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.2833, allocations: 0 / 0.9557 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.841e-05/0.2834, allocations: 91.33 kB / 0.9558 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.2837, allocations: 23.91 kB / 0.9558 GB, free: 2.719 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000373/0.2841, allocations: 187.1 kB / 0.956 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.2844, allocations: 0.6883 MB / 0.9567 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.2844, allocations: 11.44 kB / 0.9567 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.2844, allocations: 0 / 0.9567 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of Templates: time 0.002486/0.2869, allocations: 0.8909 MB / 0.9575 GB, free: 0.8867 MB / 0.7325 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/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