Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001275/0.001275, allocations: 106.3 kB / 16.36 MB, free: 5.879 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.001205/0.001205, allocations: 199.3 kB / 17.3 MB, free: 5.52 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.407/1.407, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.534/2.534, allocations: 442.6 MB / 0.7165 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 64.03 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3184, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00429/0.3228, allocations: 1.438 MB / 1.028 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.324, allocations: 442.7 kB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.324e-05/0.3241, allocations: 0 / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.113e-05/0.3242, allocations: 3.938 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.3243, allocations: 23.84 kB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.3246, allocations: 15.98 kB / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.3247, allocations: 47.86 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.3249, allocations: 11.98 kB / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.852e-05/0.325, allocations: 19.88 kB / 1.029 GB, free: 32 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.954e-05/0.3251, allocations: 23.89 kB / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/0.3252, allocations: 4 kB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.805e-05/0.3252, allocations: 4 kB / 1.029 GB, free: 0 / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.706e-05/0.3253, allocations: 7.984 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.82e-05/0.3254, allocations: 23.92 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.3255, allocations: 35.84 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 9.859e-06/0.3256, allocations: 3.984 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.354e-06/0.3256, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.3256, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 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.0009005/0.3265, allocations: 398.3 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.3266, allocations: 8.031 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.296e-05/0.3266, allocations: 12.84 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.3269, allocations: 172.3 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.3269, allocations: 4.375 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.327, allocations: 4.375 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.3271, allocations: 53.98 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3272, allocations: 0 / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.3272, allocations: 4 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3272, allocations: 0 / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.134e-05/0.3273, allocations: 19.98 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005904/0.3279, allocations: 276.7 kB / 1.03 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.3281, allocations: 38.56 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.955e-05/0.3282, allocations: 20.98 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.3282, allocations: 7.938 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002446/0.3285, allocations: 101.2 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 2.184e-06/0.3285, allocations: 7.938 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.00047/0.329, allocations: 143.2 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/0.3291, allocations: 85.11 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.3292, allocations: 113.8 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.3292, allocations: 33.64 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.368e-05/0.3293, allocations: 80.14 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.568e-05/0.3294, allocations: 15.81 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.3295, allocations: 25.7 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002149/0.3297, allocations: 326.8 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.134e-05/0.3298, allocations: 15.98 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.837e-05/0.3299, allocations: 38.56 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001997/0.3301, allocations: 113.9 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3301, allocations: 0 / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002972/0.3304, allocations: 131.2 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.3306, allocations: 33.7 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.3306, allocations: 0 / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3306, allocations: 0 / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.065e-05/0.3307, allocations: 4 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.3307, allocations: 0 / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.3309, allocations: 15.92 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.3309, allocations: 0 / 1.031 GB, free: 13.38 MB / 0.8106 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.0001546/0.331, allocations: 155.4 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.3311, allocations: 19.89 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.3311, allocations: 8.375 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3312, allocations: 0 / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3312, allocations: 0 / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3312, allocations: 0 / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006369/0.3318, allocations: 400.1 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3319, allocations: 0 / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.083e-05/0.3319, allocations: 0 / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3319, allocations: 0 / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.3319, allocations: 11.98 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3319, allocations: 4 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3319, allocations: 384 / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000356/0.3323, allocations: 240.9 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.004e-05/0.3324, allocations: 77.11 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.3324, allocations: 4 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.3326, allocations: 11.98 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.659e-05/0.3327, allocations: 7.938 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.3327, allocations: 11.98 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.315e-05/0.3328, allocations: 87.83 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.41e-07/0.3328, allocations: 0 / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004331/0.3333, allocations: 12 kB / 1.032 GB, free: 12.23 MB / 0.8106 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.0001693/0.3335, allocations: 107.3 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000332/0.3338, allocations: 115.6 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3338, allocations: 0 / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.334, allocations: 95.5 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.3345, allocations: 15.98 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006412/0.3351, allocations: 149.5 kB / 1.032 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.3356, allocations: 0.6807 MB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.618e-05/0.3357, allocations: 4 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.3357, allocations: 11.44 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of SimCode: time 5.01e-07/0.3357, allocations: 4 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of Templates: time 0.005701/0.3415, allocations: 0.8659 MB / 1.034 GB, free: 10.12 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches