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.001459/0.001459, allocations: 111.1 kB / 16.37 MB, free: 6.012 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.001551/0.001551, allocations: 193.7 kB / 17.31 MB, free: 5.613 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.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.438/2.438, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 64.06 kB / 0.8707 GB, free: 1.477 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2988, allocations: 151.6 MB / 1.019 GB, free: 9.891 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002685/0.3015, allocations: 1.425 MB / 1.02 GB, free: 8.449 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006935/0.3022, allocations: 440.4 kB / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.952e-05/0.3023, allocations: 0 / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.3023, allocations: 0 / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.211e-05/0.3024, allocations: 19.84 kB / 1.021 GB, free: 7.996 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001458/0.3026, allocations: 27.92 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.3027, allocations: 47.86 kB / 1.021 GB, free: 7.922 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.641e-05/0.3028, allocations: 11.92 kB / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 4.885e-05/0.3029, allocations: 12 kB / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.003e-05/0.3029, allocations: 27.83 kB / 1.021 GB, free: 7.871 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.3029, allocations: 4 kB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.303, allocations: 4 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.166e-05/0.303, allocations: 4 kB / 1.021 GB, free: 7.859 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.554e-05/0.303, allocations: 31.86 kB / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.3031, allocations: 43.81 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3032, allocations: 0 / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.244e-06/0.3032, allocations: 3.938 kB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.3032, allocations: 0 / 1.021 GB, free: 7.781 MB / 0.795 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.0005832/0.3038, allocations: 393.1 kB / 1.021 GB, free: 7.344 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.3038, allocations: 8.922 kB / 1.021 GB, free: 7.336 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.453e-05/0.3038, allocations: 8.844 kB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.304, allocations: 176.3 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.304, allocations: 4.375 kB / 1.021 GB, free: 7.113 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.454e-05/0.304, allocations: 4.375 kB / 1.021 GB, free: 7.109 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.3041, allocations: 54 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.3041, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.3042, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.3042, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.103e-05/0.3042, allocations: 23.92 kB / 1.021 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003795/0.3046, allocations: 276.8 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.701e-05/0.3047, allocations: 42.5 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.347e-05/0.3047, allocations: 16.98 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.3048, allocations: 4 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.3049, allocations: 109.1 kB / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.3049, allocations: 0 / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of matching and sorting (n=9): time 0.0002796/0.3052, allocations: 139.3 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.3053, allocations: 81.11 kB / 1.022 GB, free: 6.262 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.822e-05/0.3054, allocations: 113.8 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.3054, allocations: 29.7 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.417e-05/0.3055, allocations: 84.14 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.3055, allocations: 15.8 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.3055, allocations: 25.72 kB / 1.022 GB, free: 5.973 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.832e-05/0.3056, allocations: 326.8 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.144e-05/0.3057, allocations: 16 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.437e-05/0.3057, allocations: 38.56 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.381e-05/0.3058, allocations: 118.6 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3058, allocations: 4 kB / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001369/0.306, allocations: 119.2 kB / 1.023 GB, free: 5.312 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.306, allocations: 37.77 kB / 1.023 GB, free: 5.27 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.306, allocations: 3.938 kB / 1.023 GB, free: 5.266 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.306, allocations: 0 / 1.023 GB, free: 5.266 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.377e-05/0.3061, allocations: 4 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.3061, allocations: 3.984 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.206e-05/0.3062, allocations: 11.94 kB / 1.023 GB, free: 5.246 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.3062, allocations: 4 kB / 1.023 GB, free: 5.242 MB / 0.795 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 9.485e-05/0.3063, allocations: 159.4 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.3063, allocations: 11.91 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.3063, allocations: 8.375 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3063, allocations: 4 kB / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3063, allocations: 0 / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3063, allocations: 0 / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.3067, allocations: 400.1 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3067, allocations: 3.938 kB / 1.024 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.009e-05/0.3067, allocations: 3.984 kB / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3067, allocations: 0 / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.3068, allocations: 4 kB / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.3068, allocations: 8.062 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3068, allocations: 0 / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.307, allocations: 237 kB / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.307, allocations: 77.11 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.3071, allocations: 4 kB / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3072, allocations: 7.984 kB / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.3072, allocations: 11.92 kB / 1.024 GB, free: 4.203 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.836e-05/0.3072, allocations: 12 kB / 1.024 GB, free: 4.191 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.043e-05/0.3073, allocations: 83.28 kB / 1.024 GB, free: 4.109 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3073, allocations: 4 kB / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002301/0.3075, allocations: 12 kB / 1.024 GB, free: 4.094 MB / 0.795 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.656e-05/0.3076, allocations: 99.23 kB / 1.024 GB, free: 3.988 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000182/0.3078, allocations: 123.3 kB / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3078, allocations: 0 / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.086e-05/0.3079, allocations: 91.45 kB / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.3082, allocations: 15.98 kB / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003392/0.3086, allocations: 145.5 kB / 1.024 GB, free: 3.566 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.3088, allocations: 0.6846 MB / 1.025 GB, free: 2.855 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.042e-05/0.3088, allocations: 11.84 kB / 1.025 GB, free: 2.844 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.3089, allocations: 11.44 kB / 1.025 GB, free: 2.832 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3089, allocations: 0 / 1.025 GB, free: 2.832 MB / 0.795 GB Notification: Performance of Templates: time 0.003063/0.312, allocations: 0.8737 MB / 1.026 GB, free: 1.973 MB / 0.795 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches