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.001269/0.001269, allocations: 106.4 kB / 16.41 MB, free: 6.512 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.001285/0.001285, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.15 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.327/2.327, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001375, allocations: 59.91 kB / 0.9515 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7613/0.7627, allocations: 140.4 MB / 1.089 GB, free: 5.809 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002419/0.7652, allocations: 1.428 MB / 1.09 GB, free: 4.816 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000686/0.7659, allocations: 428.2 kB / 1.09 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.204e-05/0.7659, allocations: 1.125 kB / 1.09 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.162e-05/0.7659, allocations: 4.5 kB / 1.09 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.576e-05/0.7661, allocations: 19.2 kB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001629/0.7662, allocations: 20.23 kB / 1.09 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.7664, allocations: 54.72 kB / 1.09 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.269e-05/0.7665, allocations: 5.891 kB / 1.09 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.099e-05/0.7665, allocations: 21.7 kB / 1.09 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.566e-05/0.7666, allocations: 31.27 kB / 1.091 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.7666, allocations: 3.375 kB / 1.091 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.318e-05/0.7666, allocations: 4.125 kB / 1.091 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.7667, allocations: 6.906 kB / 1.091 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.168e-05/0.7667, allocations: 24.86 kB / 1.091 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.7669, allocations: 35.48 kB / 1.091 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.7669, allocations: 0 / 1.091 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7669, allocations: 0.75 kB / 1.091 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.7669, allocations: 0 / 1.091 GB, free: 4.402 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.0005529/0.7674, allocations: 402 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.7675, allocations: 9.406 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.746e-05/0.7675, allocations: 13.31 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.169e-05/0.7676, allocations: 164.3 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.7677, allocations: 7.109 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.7677, allocations: 3.625 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.7678, allocations: 55.62 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.7678, allocations: 0 / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.7678, allocations: 1.188 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.7678, allocations: 0 / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.237e-05/0.7679, allocations: 21.25 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003677/0.7683, allocations: 281 kB / 1.092 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.865e-05/0.7684, allocations: 43.22 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.735e-05/0.7684, allocations: 23.64 kB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.7685, allocations: 2.109 kB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.7686, allocations: 96.17 kB / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.7686, allocations: 4 kB / 1.092 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002869/0.7689, allocations: 144.2 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.769, allocations: 85.81 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.89e-05/0.7691, allocations: 107 kB / 1.092 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.7691, allocations: 26.67 kB / 1.092 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.415e-05/0.7691, allocations: 87.73 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.7691, allocations: 15.94 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-05/0.7692, allocations: 23.95 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.207e-05/0.7692, allocations: 331.2 kB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.603e-05/0.7693, allocations: 14.62 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.718e-05/0.7693, allocations: 41.58 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.354e-05/0.7694, allocations: 111.1 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.7694, allocations: 0 / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001539/0.7696, allocations: 126.8 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.7696, allocations: 37.62 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.7697, allocations: 5.781 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.7697, allocations: 0.8125 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.7697, allocations: 7.828 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.7697, allocations: 6.219 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.194e-05/0.7698, allocations: 6.078 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.7698, allocations: 3.594 kB / 1.093 GB, free: 2.254 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.076e-05/0.7699, allocations: 153.3 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.7699, allocations: 8.078 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.77, allocations: 10.47 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.77, allocations: 1.656 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.77, allocations: 0.8438 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.77, allocations: 0.5625 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003523/0.7703, allocations: 403.7 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.7703, allocations: 4.781 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.747e-06/0.7704, allocations: 1.406 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.7704, allocations: 0.8438 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.7704, allocations: 6.547 kB / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.7704, allocations: 1.203 kB / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.7704, allocations: 0 / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001954/0.7706, allocations: 237.3 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.776e-05/0.7706, allocations: 83.81 kB / 1.094 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.7707, allocations: 2.406 kB / 1.094 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.7708, allocations: 12.41 kB / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/0.7708, allocations: 18.11 kB / 1.094 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.7709, allocations: 3.891 kB / 1.094 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.504e-05/0.7709, allocations: 87.3 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7709, allocations: 0.7812 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002358/0.7711, allocations: 13.5 kB / 1.094 GB, free: 1.316 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.303e-05/0.7712, allocations: 106.5 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001747/0.7714, allocations: 113.8 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7714, allocations: 5.219 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.551e-05/0.7715, allocations: 89.28 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.7718, allocations: 17.41 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003651/0.7722, allocations: 178.2 kB / 1.094 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.7723, allocations: 0.6847 MB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.7724, allocations: 10.78 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.7724, allocations: 0.9688 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of Templates: time 0.003038/0.7754, allocations: 0.915 MB / 1.096 GB, free: 112 kB / 0.8575 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