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.001456/0.001456, allocations: 102.3 kB / 16.4 MB, free: 6.406 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.001399/0.001399, allocations: 192.2 kB / 17.35 MB, free: 5.695 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.14 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.284/2.284, allocations: 390.3 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 59.91 kB / 0.9515 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9859/0.9873, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002593/0.9899, allocations: 1.424 MB / 1.09 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007634/0.9907, allocations: 427.8 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.635e-05/0.9908, allocations: 1.094 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.494e-05/0.9908, allocations: 4.594 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.783e-05/0.9909, allocations: 11.06 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.9911, allocations: 23.45 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.9913, allocations: 54.94 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.9914, allocations: 5.641 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.723e-05/0.9914, allocations: 18.98 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.341e-05/0.9915, allocations: 25.98 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.9916, allocations: 3.281 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.457e-05/0.9916, allocations: 3.812 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.887e-05/0.9916, allocations: 7.719 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.982e-05/0.9917, allocations: 28.58 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.9918, allocations: 43.23 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.9918, allocations: 0.9688 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.214e-06/0.9918, allocations: 0 / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.774e-06/0.9918, allocations: 0 / 1.091 GB, free: 4.109 MB / 0.8575 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.0006114/0.9924, allocations: 393.7 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.9925, allocations: 10.42 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.9925, allocations: 15.75 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.9927, allocations: 166.7 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.9927, allocations: 3.25 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.9927, allocations: 3.281 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.9928, allocations: 59.16 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.9929, allocations: 0.5625 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.9929, allocations: 1.125 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.9929, allocations: 0.7188 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.555e-05/0.993, allocations: 20 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003917/0.9934, allocations: 282 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.897e-05/0.9935, allocations: 39.84 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.067e-05/0.9935, allocations: 23.03 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.9935, allocations: 1.188 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.9937, allocations: 112.8 kB / 1.092 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.9937, allocations: 1.719 kB / 1.092 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002863/0.994, allocations: 142.7 kB / 1.092 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.9941, allocations: 81.41 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.078e-05/0.9941, allocations: 115.4 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.9942, allocations: 26.8 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.4e-05/0.9942, allocations: 86.55 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.9942, allocations: 16.59 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.9943, allocations: 29 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.407e-05/0.9943, allocations: 326.1 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.587e-05/0.9944, allocations: 14.34 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.366e-05/0.9944, allocations: 37.72 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.897e-05/0.9945, allocations: 111.6 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.9945, allocations: 1.094 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001534/0.9947, allocations: 126.3 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.9947, allocations: 32.53 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.9947, allocations: 2.172 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.9948, allocations: 1.438 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.746e-05/0.9948, allocations: 8.375 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.9948, allocations: 0.5625 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.691e-05/0.9949, allocations: 14.83 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.9949, allocations: 3.594 kB / 1.093 GB, free: 1.965 MB / 0.8575 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 8.246e-05/0.995, allocations: 149 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.578e-05/0.995, allocations: 12.09 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/0.9951, allocations: 10.27 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.9951, allocations: 2.266 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.9951, allocations: 0 / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.9951, allocations: 1.422 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003689/0.9955, allocations: 407.2 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.9955, allocations: 1.219 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.218e-06/0.9955, allocations: 1.922 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.9955, allocations: 0 / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.9955, allocations: 6.453 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.9955, allocations: 0.6875 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9955, allocations: 1.328 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.9957, allocations: 236.3 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.46e-05/0.9958, allocations: 79.97 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.9958, allocations: 3.016 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.9959, allocations: 7.656 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/0.996, allocations: 14.59 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.996, allocations: 7.672 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.356e-05/0.996, allocations: 83.45 kB / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.996, allocations: 0 / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002357/0.9963, allocations: 18.3 kB / 1.094 GB, free: 1.035 MB / 0.8575 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 9.911e-05/0.9964, allocations: 102.5 kB / 1.094 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001839/0.9966, allocations: 122.4 kB / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.9966, allocations: 128 / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.424e-05/0.9967, allocations: 92.86 kB / 1.094 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.997, allocations: 17.55 kB / 1.094 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003555/0.9973, allocations: 185.2 kB / 1.094 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.9976, allocations: 0.6844 MB / 1.095 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.977e-05/0.9976, allocations: 11.16 kB / 1.095 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.9976, allocations: 0 / 1.095 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of Templates: time 0.00278/1, allocations: 0.9106 MB / 1.096 GB, free: 15.82 MB / 0.8731 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