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.008191/0.008191, allocations: 103.5 kB / 15.73 MB, free: 6.039 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.001955/0.001955, allocations: 191.7 kB / 16.67 MB, free: 5.973 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.206/2.206, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 62.41 kB / 0.9503 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2721, allocations: 140.4 MB / 1.087 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002904/0.2751, allocations: 1.423 MB / 1.089 GB, free: 0.6094 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008382/0.2759, allocations: 436.4 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.064e-05/0.276, allocations: 0 / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.363e-05/0.2761, allocations: 3.938 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.92e-05/0.2762, allocations: 3.938 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.2764, allocations: 27.86 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.2765, allocations: 51.84 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.2767, allocations: 12 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.859e-05/0.2767, allocations: 23.84 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.123e-05/0.2768, allocations: 19.92 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.2768, allocations: 4 kB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.227e-05/0.2769, allocations: 4 kB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.753e-05/0.2769, allocations: 11.92 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.638e-05/0.2769, allocations: 19.94 kB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.2771, allocations: 46.75 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2771, allocations: 4 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2771, allocations: 0 / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.2771, allocations: 0 / 1.089 GB, free: 15.95 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.0006508/0.2778, allocations: 393.8 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.2778, allocations: 8.031 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.2779, allocations: 34.73 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.2779, allocations: 8.844 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.2781, allocations: 176.3 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.2781, allocations: 384 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.2781, allocations: 8.375 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.2783, allocations: 53.8 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2783, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-06/0.2783, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.2783, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.159e-05/0.2784, allocations: 20 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004331/0.2788, allocations: 276.7 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.439e-05/0.2789, allocations: 38.52 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.141e-05/0.2789, allocations: 28.97 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.279, allocations: 80 / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.2792, allocations: 97.08 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.2792, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002997/0.2795, allocations: 143.5 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.2796, allocations: 85.09 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.621e-05/0.2797, allocations: 113.8 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.2797, allocations: 29.64 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.167e-05/0.2798, allocations: 88.08 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.2798, allocations: 23.73 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/0.2798, allocations: 25.7 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.2799, allocations: 326.7 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.781e-05/0.28, allocations: 19.98 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.677e-05/0.2801, allocations: 42.5 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.992e-05/0.2802, allocations: 106.4 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2802, allocations: 7.938 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001647/0.2803, allocations: 123.2 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.2804, allocations: 41.75 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2804, allocations: 4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.2804, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.681e-05/0.2805, allocations: 4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.2805, allocations: 4 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.91e-05/0.2806, allocations: 7.984 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-06/0.2806, allocations: 4 kB / 1.092 GB, free: 13.36 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.0001052/0.2807, allocations: 143.5 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.2807, allocations: 7.906 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.896e-05/0.2807, allocations: 20.36 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2808, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2808, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2808, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.2812, allocations: 400.1 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2812, allocations: 0 / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.014e-05/0.2812, allocations: 3.938 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2812, allocations: 4 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.2812, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2812, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2812, allocations: 7.938 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.2815, allocations: 237.2 kB / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.2815, allocations: 88.98 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.2815, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.2816, allocations: 11.97 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.2817, allocations: 11.94 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.2817, allocations: 4 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.814e-05/0.2818, allocations: 95.27 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2818, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002294/0.282, allocations: 12 kB / 1.093 GB, free: 12.21 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.000464/0.2825, allocations: 0.7668 MB / 1.093 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001914/0.2827, allocations: 123.3 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2827, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.929e-05/0.2828, allocations: 83.39 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.2831, allocations: 20.11 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.2843, allocations: 1.424 MB / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.2846, allocations: 0.6846 MB / 1.096 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.997e-05/0.2846, allocations: 4 kB / 1.096 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.288e-05/0.2847, allocations: 19.7 kB / 1.096 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.2847, allocations: 0 / 1.096 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.3019, allocations: 1.878 MB / 1.098 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.401/7.703, allocations: 9.188 kB / 1.098 GB, free: 7.117 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