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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004624/0.004624, allocations: 96.34 kB / 15.73 MB, free: 6.055 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.001042/0.001042, allocations: 202.8 kB / 16.68 MB, free: 5.977 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.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.331/2.331, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 61.59 kB / 0.9504 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2832, allocations: 140.4 MB / 1.087 GB, free: 2.156 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00289/0.2862, allocations: 1.439 MB / 1.089 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008298/0.287, allocations: 432.4 kB / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.2871, allocations: 0 / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.695e-05/0.2872, allocations: 7.922 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.335e-05/0.2873, allocations: 3.938 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001827/0.2875, allocations: 23.92 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001316/0.2876, allocations: 51.83 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.2877, allocations: 8 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.557e-05/0.2878, allocations: 19.92 kB / 1.089 GB, free: 168 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.2879, allocations: 19.92 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.2879, allocations: 4 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.963e-05/0.2879, allocations: 4 kB / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.944e-05/0.288, allocations: 11.88 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.15e-05/0.288, allocations: 23.92 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.2882, allocations: 52.03 kB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2882, allocations: 0 / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.315e-06/0.2882, allocations: 0 / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.2882, allocations: 0 / 1.089 GB, free: 52 kB / 0.8419 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.0006668/0.2889, allocations: 389.1 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.2889, allocations: 8.031 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.452e-05/0.289, allocations: 34.73 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.7e-05/0.289, allocations: 12.89 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.2892, allocations: 172.3 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.2892, allocations: 384 / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.2892, allocations: 8.375 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/0.2894, allocations: 57.73 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.2894, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.2894, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2894, allocations: 3.938 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.775e-05/0.2895, allocations: 20 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000428/0.2899, allocations: 276.8 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.933e-05/0.29, allocations: 34.58 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.36e-05/0.29, allocations: 32.91 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.2901, allocations: 3.984 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/0.2903, allocations: 93.09 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.2903, allocations: 4 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002961/0.2906, allocations: 143.3 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.2907, allocations: 81.09 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.124e-05/0.2908, allocations: 117.8 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.2908, allocations: 25.7 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.404e-05/0.2908, allocations: 84.14 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.2909, allocations: 23.92 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/0.2909, allocations: 25.7 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.291, allocations: 326.8 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.569e-05/0.2911, allocations: 15.98 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.065e-05/0.2911, allocations: 38.56 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.2913, allocations: 110.3 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2913, allocations: 0 / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001579/0.2914, allocations: 127.3 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.2915, allocations: 37.69 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2915, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.2915, allocations: 4 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.877e-05/0.2916, allocations: 8 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.2916, allocations: 8 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.029e-05/0.2916, allocations: 11.92 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.2917, allocations: 4 kB / 1.092 GB, free: 13.46 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 0.0001013/0.2918, allocations: 147.5 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.2918, allocations: 8.328 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.942e-05/0.2918, allocations: 16.36 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2918, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2918, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2919, allocations: 3.938 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004033/0.2923, allocations: 400.1 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2923, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.215e-06/0.2923, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2923, allocations: 4 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2923, allocations: 4 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2923, allocations: 0 / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.2923, allocations: 3.938 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002159/0.2925, allocations: 237.1 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.2926, allocations: 85.09 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.2926, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.2927, allocations: 11.98 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.2928, allocations: 11.94 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.2928, allocations: 4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.919e-05/0.2929, allocations: 91.27 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2929, allocations: 0 / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002429/0.2931, allocations: 12 kB / 1.093 GB, free: 12.32 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 0.000492/0.2936, allocations: 0.7707 MB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001724/0.2938, allocations: 119.3 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2938, allocations: 0 / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.708e-05/0.2939, allocations: 91.27 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.2942, allocations: 19.92 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.2955, allocations: 1.416 MB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.2958, allocations: 0.6884 MB / 1.096 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.131e-05/0.2958, allocations: 4 kB / 1.096 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.644e-05/0.2959, allocations: 19.42 kB / 1.096 GB, free: 9.012 MB / 0.8575 GB Notification: Performance of SimCode: time 3e-07/0.2959, allocations: 0 / 1.096 GB, free: 9.012 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/0.3153, allocations: 1.885 MB / 1.098 GB, free: 7.215 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.721, allocations: 10.84 kB / 1.098 GB, free: 7.207 MB / 0.8575 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv","/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