Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001154/0.001155, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001355/0.001355, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.787/2.787, allocations: 437.7 MB / 0.7117 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.000351, allocations: 15.94 kB / 0.8722 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7788/0.7792, allocations: 153.8 MB / 1.022 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.0017/0.7809, allocations: 1.137 MB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008025/0.7818, allocations: 415.3 kB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.671e-05/0.7818, allocations: 0 / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.181e-05/0.7819, allocations: 3.984 kB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001036/0.782, allocations: 7.938 kB / 1.024 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.7822, allocations: 15.98 kB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.7823, allocations: 43.8 kB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.7824, allocations: 11.98 kB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.169e-05/0.7825, allocations: 19.86 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.528e-05/0.7826, allocations: 19.92 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.7826, allocations: 4 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.398e-06/0.7826, allocations: 0 / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.205e-05/0.7827, allocations: 11.98 kB / 1.024 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.44e-05/0.7827, allocations: 33.64 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.372e-05/0.7828, allocations: 23.95 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.7828, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.924e-06/0.7828, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.7828, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 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.0005982/0.7834, allocations: 402.9 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.7835, allocations: 8.562 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.174e-05/0.7835, allocations: 4 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.7836, allocations: 167 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.7837, allocations: 4 kB / 1.025 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.7837, allocations: 4 kB / 1.025 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.7838, allocations: 65.55 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.7839, allocations: 0 / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.7839, allocations: 4 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.7839, allocations: 0 / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.649e-05/0.7839, allocations: 19.98 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004098/0.7844, allocations: 268.8 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.155e-05/0.7845, allocations: 34.58 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.498e-05/0.7845, allocations: 32.91 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.7845, allocations: 4 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.7847, allocations: 93.09 kB / 1.025 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.7847, allocations: 0 / 1.025 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002891/0.785, allocations: 151.2 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.7851, allocations: 89.09 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.402e-05/0.7852, allocations: 105.8 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.7852, allocations: 37.7 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.7853, allocations: 80.14 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.7853, allocations: 15.81 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.7853, allocations: 0 / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.7855, allocations: 322.8 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.616e-05/0.7855, allocations: 15.94 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-05/0.7856, allocations: 34.56 kB / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.95e-05/0.7856, allocations: 57.59 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.7856, allocations: 0 / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001798/0.7858, allocations: 131.2 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.13e-05/0.7859, allocations: 29.7 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.7859, allocations: 0 / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.7859, allocations: 4 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.267e-05/0.786, allocations: 8 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.786, allocations: 0 / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.759e-05/0.7861, allocations: 16.05 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.7861, allocations: 0 / 1.026 GB, free: 12.01 MB / 0.7794 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.7862, allocations: 149 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.7863, allocations: 11.89 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.7863, allocations: 16.31 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.7863, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.7863, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.7863, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004173/0.7868, allocations: 400.2 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7868, allocations: 0 / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.147e-06/0.7868, allocations: 0 / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.7868, allocations: 0 / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.7868, allocations: 16.03 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.7868, allocations: 0 / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7868, allocations: 384 / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.7871, allocations: 241 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.7871, allocations: 88.95 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.7872, allocations: 4 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.7873, allocations: 11.98 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.928e-05/0.7873, allocations: 11.98 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.7873, allocations: 0 / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.744e-05/0.7874, allocations: 87.28 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7874, allocations: 0 / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002471/0.7877, allocations: 12 kB / 1.027 GB, free: 10.86 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001222/0.7878, allocations: 115.2 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001909/0.788, allocations: 115.3 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.788, allocations: 0 / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.655e-05/0.7881, allocations: 87.39 kB / 1.027 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.7884, allocations: 17.97 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003677/0.7888, allocations: 161.7 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.7891, allocations: 0.6887 MB / 1.028 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.632e-05/0.7891, allocations: 7.859 kB / 1.028 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.658e-05/0.7892, allocations: 11.44 kB / 1.028 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of SimCode: time 3.9e-07/0.7892, allocations: 0 / 1.028 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of Templates: time 0.002936/0.7921, allocations: 0.7336 MB / 1.029 GB, free: 8.863 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches