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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001676/0.001676, allocations: 108 kB / 15.6 MB, free: 132 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.00216/0.00216, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.512/1.512, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.838/2.838, allocations: 472.7 MB / 0.7452 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 58.89 kB / 0.9121 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.3713, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002715/0.3741, allocations: 1.419 MB / 1.07 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006949/0.3748, allocations: 439 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.14e-05/0.3749, allocations: 0 / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.3749, allocations: 3.938 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.769e-05/0.375, allocations: 11.91 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001521/0.3751, allocations: 19.92 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3753, allocations: 55.8 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.921e-05/0.3754, allocations: 4 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.27e-05/0.3754, allocations: 27.92 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.221e-05/0.3755, allocations: 19.86 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.3755, allocations: 11.92 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.3756, allocations: 4 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.714e-05/0.3756, allocations: 7.984 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.057e-05/0.3756, allocations: 19.88 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.3758, allocations: 35.89 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3758, allocations: 0 / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3758, allocations: 0 / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.3758, allocations: 0 / 1.07 GB, free: 8.289 MB / 0.8262 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.0005943/0.3764, allocations: 393.4 kB / 1.071 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.3764, allocations: 12.02 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.3765, allocations: 8.844 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.3766, allocations: 172.2 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.3766, allocations: 12.31 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.3766, allocations: 4.375 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.3768, allocations: 49.98 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.3768, allocations: 8 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.3768, allocations: 4 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.3768, allocations: 0 / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.23e-05/0.3769, allocations: 15.98 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003862/0.3773, allocations: 268.8 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.139e-05/0.3774, allocations: 42.52 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.839e-05/0.3774, allocations: 24.97 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.3774, allocations: 4 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.3776, allocations: 97.09 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.3777, allocations: 0 / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002968/0.378, allocations: 143.3 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.378, allocations: 93.03 kB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.167e-05/0.3781, allocations: 105.8 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.3781, allocations: 33.7 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.318e-05/0.3782, allocations: 84.14 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.3782, allocations: 15.81 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/0.3782, allocations: 25.98 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3784, allocations: 318.8 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.248e-05/0.3784, allocations: 19.98 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.697e-05/0.3785, allocations: 46.44 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.291e-05/0.3785, allocations: 106.4 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3786, allocations: 0 / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000153/0.3787, allocations: 135.2 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.3788, allocations: 39.25 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3788, allocations: 0 / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3788, allocations: 64 / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.906e-05/0.3788, allocations: 11.94 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.3789, allocations: 0 / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.502e-05/0.3789, allocations: 15.98 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-06/0.3789, allocations: 4 kB / 1.072 GB, free: 5.734 MB / 0.8262 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.0001095/0.3791, allocations: 151.6 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.3791, allocations: 7.906 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.3791, allocations: 8.375 kB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.3791, allocations: 7.984 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3791, allocations: 0 / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.3791, allocations: 0 / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003774/0.3795, allocations: 400.2 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3795, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.053e-06/0.3795, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3795, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.3796, allocations: 15.92 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.3796, allocations: 0 / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3796, allocations: 0 / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.3798, allocations: 229.1 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.135e-05/0.3799, allocations: 92.94 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.3799, allocations: 4 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.38, allocations: 8 kB / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.394e-05/0.3801, allocations: 12.02 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.3801, allocations: 11.88 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.257e-05/0.3801, allocations: 87.27 kB / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3801, allocations: 0 / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002285/0.3804, allocations: 16 kB / 1.073 GB, free: 4.59 MB / 0.8262 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.0001001/0.3805, allocations: 103.2 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000171/0.3807, allocations: 119.3 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3807, allocations: 0 / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.032e-05/0.3808, allocations: 91.39 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.381, allocations: 12 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00033/0.3814, allocations: 161.3 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.3817, allocations: 0.6846 MB / 1.075 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.84e-05/0.3817, allocations: 4 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.66e-05/0.3817, allocations: 11.44 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3818, allocations: 0 / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of Templates: time 0.003011/0.3848, allocations: 0.8742 MB / 1.075 GB, free: 2.465 MB / 0.8262 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches