Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00174/0.00174, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 213.6 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.148/3.148, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002704/0.002704, allocations: 63.02 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3684, allocations: 181.9 MB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003032/0.3714, allocations: 1.458 MB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009439/0.3723, allocations: 436 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.231e-05/0.3724, allocations: 4 kB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.354e-05/0.3724, allocations: 7.938 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.646e-05/0.3725, allocations: 11.86 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.3727, allocations: 23.97 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.3728, allocations: 43.86 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.294e-05/0.3729, allocations: 8 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.388e-05/0.373, allocations: 23.86 kB / 1.365 GB, free: 12.11 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.392e-05/0.3731, allocations: 19.86 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.3731, allocations: 4 kB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 1.315e-05/0.3731, allocations: 4 kB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.544e-05/0.3731, allocations: 7.984 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.843e-05/0.3732, allocations: 23.92 kB / 1.365 GB, free: 12.05 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.3733, allocations: 44.05 kB / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3733, allocations: 0 / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3733, allocations: 0 / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.3733, allocations: 0 / 1.365 GB, free: 12 MB / 1.061 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.0006512/0.374, allocations: 315.9 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.374, allocations: 12.03 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.374, allocations: 38.67 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.3741, allocations: 12.89 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.3742, allocations: 110.5 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.3742, allocations: 4.312 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.3742, allocations: 4.375 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.3744, allocations: 87.48 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.3744, allocations: 0 / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.3744, allocations: 0 / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3744, allocations: 4 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.877e-05/0.3745, allocations: 45.69 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004178/0.3749, allocations: 239.8 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.375, allocations: 68.27 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.829e-05/0.3751, allocations: 50.67 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.3751, allocations: 0 / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.3753, allocations: 134.7 kB / 1.366 GB, free: 10.72 MB / 1.061 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.3753, allocations: 0 / 1.366 GB, free: 10.72 MB / 1.061 GB Notification: Performance of matching and sorting (n=9): time 0.0003436/0.3757, allocations: 194.7 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.3757, allocations: 89.11 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.783e-05/0.3758, allocations: 109.8 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3759, allocations: 29.7 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.385e-05/0.3759, allocations: 84.14 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.376, allocations: 27.78 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.376, allocations: 25.72 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3761, allocations: 326.8 kB / 1.367 GB, free: 9.777 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.639e-05/0.3762, allocations: 37.7 kB / 1.367 GB, free: 9.734 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.053e-05/0.3763, allocations: 68.2 kB / 1.367 GB, free: 9.652 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.3764, allocations: 117.9 kB / 1.368 GB, free: 9.516 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3764, allocations: 0 / 1.368 GB, free: 9.516 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001907/0.3766, allocations: 149 kB / 1.368 GB, free: 9.352 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.3766, allocations: 40.66 kB / 1.368 GB, free: 9.309 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-06/0.3766, allocations: 4.453 kB / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3766, allocations: 4 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.235e-05/0.3767, allocations: 384 / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3767, allocations: 4 kB / 1.368 GB, free: 9.297 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.373e-05/0.3768, allocations: 11.94 kB / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.3768, allocations: 12.06 kB / 1.368 GB, free: 9.273 MB / 1.061 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.0001229/0.3769, allocations: 159.3 kB / 1.368 GB, free: 9.102 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.3769, allocations: 4 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/0.377, allocations: 8.359 kB / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.377, allocations: 4 kB / 1.368 GB, free: 9.082 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.377, allocations: 0 / 1.368 GB, free: 9.082 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.377, allocations: 0 / 1.368 GB, free: 9.082 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004721/0.3774, allocations: 404.9 kB / 1.368 GB, free: 8.625 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3774, allocations: 0 / 1.368 GB, free: 8.625 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.684e-06/0.3774, allocations: 0 / 1.368 GB, free: 8.625 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3774, allocations: 0 / 1.368 GB, free: 8.625 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3775, allocations: 4 kB / 1.368 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3775, allocations: 0 / 1.368 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3775, allocations: 3.938 kB / 1.368 GB, free: 8.617 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002689/0.3777, allocations: 258.9 kB / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.837e-05/0.3778, allocations: 15.94 kB / 1.369 GB, free: 8.32 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.3778, allocations: 8 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.3779, allocations: 4 kB / 1.369 GB, free: 8.309 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.3779, allocations: 11.92 kB / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.3779, allocations: 0 / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.178e-05/0.378, allocations: 91.27 kB / 1.369 GB, free: 8.207 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.378, allocations: 0 / 1.369 GB, free: 8.207 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002355/0.3782, allocations: 16 kB / 1.369 GB, free: 8.191 MB / 1.061 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.0005692/0.3788, allocations: 0.7976 MB / 1.369 GB, free: 7.355 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002286/0.379, allocations: 170.7 kB / 1.37 GB, free: 7.164 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.379, allocations: 0 / 1.37 GB, free: 7.164 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.3791, allocations: 109.1 kB / 1.37 GB, free: 7.039 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.3794, allocations: 30.28 kB / 1.37 GB, free: 7.012 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.381, allocations: 1.567 MB / 1.371 GB, free: 5.312 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.814e-05/0.3811, allocations: 67.34 kB / 1.371 GB, free: 5.227 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.601e-05/0.3811, allocations: 8.109 kB / 1.371 GB, free: 5.219 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.747e-05/0.3811, allocations: 23.42 kB / 1.371 GB, free: 5.195 MB / 1.061 GB Notification: Performance of SimCode: time 4.11e-07/0.3811, allocations: 0 / 1.371 GB, free: 5.195 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02998/0.4111, allocations: 2.49 MB / 1.374 GB, free: 2.844 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.34, allocations: 1.719 kB / 1.374 GB, free: 2.844 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.95467821182683]