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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_10_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.001227/0.001227, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.155/1.155, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.224/2.224, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001205, allocations: 67.89 kB / 0.8693 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4523/0.4535, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002301/0.4559, allocations: 1.415 MB / 1.019 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006099/0.4565, allocations: 439 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.293e-05/0.4565, allocations: 0 / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.464e-05/0.4566, allocations: 3.938 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.527e-05/0.4566, allocations: 15.92 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001271/0.4568, allocations: 15.92 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.297e-05/0.4569, allocations: 51.84 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.707e-05/0.457, allocations: 12 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.418e-05/0.457, allocations: 23.86 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.519e-05/0.4571, allocations: 23.91 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.4571, allocations: 4 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.071e-05/0.4571, allocations: 4 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.963e-05/0.4571, allocations: 7.938 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.907e-05/0.4572, allocations: 19.92 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.273e-05/0.4573, allocations: 42.08 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4573, allocations: 0 / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.133e-06/0.4573, allocations: 4 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.4573, allocations: 0 / 1.019 GB, free: 388 kB / 0.7637 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.0005019/0.4578, allocations: 397 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.4578, allocations: 8.031 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.034e-05/0.4579, allocations: 34.75 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.707e-05/0.4579, allocations: 4.844 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.912e-05/0.458, allocations: 176.3 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.458, allocations: 8.375 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.458, allocations: 384 / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.4582, allocations: 57.8 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.4582, allocations: 3.938 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.4582, allocations: 3.984 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.4582, allocations: 4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.646e-05/0.4582, allocations: 12 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003275/0.4586, allocations: 276.7 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.221e-05/0.4587, allocations: 46.56 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.397e-05/0.4587, allocations: 24.97 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.4587, allocations: 0 / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.4589, allocations: 101 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.4589, allocations: 0 / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002359/0.4591, allocations: 143.4 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.4592, allocations: 85.11 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.49e-05/0.4593, allocations: 109.8 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.4593, allocations: 29.7 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.666e-05/0.4593, allocations: 88.12 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.4593, allocations: 15.81 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.4594, allocations: 29.66 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.546e-05/0.4595, allocations: 318.8 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.117e-05/0.4595, allocations: 15.94 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.12e-05/0.4595, allocations: 42.56 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.737e-05/0.4596, allocations: 113.9 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4596, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001479/0.4598, allocations: 131.2 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.4598, allocations: 33.69 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.4598, allocations: 4.062 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.4599, allocations: 4 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.79e-05/0.4599, allocations: 7.984 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.4599, allocations: 0 / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.172e-05/0.46, allocations: 4 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.46, allocations: 4.375 kB / 1.022 GB, free: 13.79 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 (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.581e-05/0.4601, allocations: 156.8 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.4601, allocations: 4 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.4601, allocations: 4.375 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.4601, allocations: 7.938 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.4601, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4602, allocations: 7.984 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.4605, allocations: 404 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.4605, allocations: 4 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.009e-05/0.4605, allocations: 11.94 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.4605, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.4605, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4605, allocations: 4 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.4605, allocations: 7.938 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.4607, allocations: 225.2 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.953e-05/0.4608, allocations: 81.02 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.4608, allocations: 11.98 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.857e-05/0.4609, allocations: 4 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-05/0.4609, allocations: 11.92 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.461, allocations: 4 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.581e-05/0.461, allocations: 91.27 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.461, allocations: 0 / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002187/0.4612, allocations: 20 kB / 1.023 GB, free: 12.63 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 (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.0003686/0.4616, allocations: 0.7622 MB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.4618, allocations: 128.1 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.4618, allocations: 0 / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.441e-05/0.4619, allocations: 95.38 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.4621, allocations: 15.94 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.4632, allocations: 1.41 MB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/0.4634, allocations: 0.6807 MB / 1.026 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.897e-05/0.4634, allocations: 7.859 kB / 1.026 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.4634, allocations: 23.42 kB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.4634, allocations: 0 / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9668/1.43, allocations: 1.838 MB / 1.028 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/14.74, allocations: 13.86 kB / 1.028 GB, free: 7.559 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > 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