Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0007778/0.0007778, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0007699/0.0007699, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.8657/0.8657, allocations: 177.2 MB / 202.8 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.638/1.638, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.635e-06/2.635e-06, allocations: 0 / 0.9504 GB, free: 3.523 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.91e-05/3.174e-05, allocations: 10.16 kB / 0.9505 GB, free: 3.512 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001923/0.001955, allocations: 1.44 MB / 0.9519 GB, free: 2.055 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0005519/0.002507, allocations: 443.4 kB / 0.9523 GB, free: 1.617 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.033e-05/0.002537, allocations: 3.938 kB / 0.9523 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.202e-05/0.002559, allocations: 3.938 kB / 0.9523 GB, free: 1.609 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.241e-05/0.002622, allocations: 7.938 kB / 0.9523 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.000115/0.002737, allocations: 23.91 kB / 0.9523 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.306e-05/0.00282, allocations: 59.78 kB / 0.9524 GB, free: 1.52 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 6.173e-05/0.002881, allocations: 0 / 0.9524 GB, free: 1.52 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 5.668e-05/0.002938, allocations: 39.83 kB / 0.9524 GB, free: 1.48 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.841e-05/0.002987, allocations: 15.98 kB / 0.9524 GB, free: 1.465 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.003, allocations: 7.938 kB / 0.9524 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-06/0.003008, allocations: 0 / 0.9524 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.777e-05/0.003026, allocations: 8 kB / 0.9524 GB, free: 1.449 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.767e-05/0.003053, allocations: 11.98 kB / 0.9525 GB, free: 1.438 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 8.564e-05/0.003139, allocations: 43.88 kB / 0.9525 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.242e-06/0.00314, allocations: 0 / 0.9525 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of FrontEnd: time 9.82e-07/0.003141, allocations: 0 / 0.9525 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.046e-06/0.003144, allocations: 4 kB / 0.9525 GB, free: 1.391 MB / 0.9011 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.0003873/0.003531, allocations: 319.9 kB / 0.9528 GB, free: 1.043 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.003564, allocations: 8.031 kB / 0.9528 GB, free: 1.035 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.364e-05/0.003588, allocations: 42.67 kB / 0.9529 GB, free: 0.9844 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.212e-05/0.00361, allocations: 8.891 kB / 0.9529 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.249e-05/0.003682, allocations: 109.8 kB / 0.953 GB, free: 0.8438 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.003692, allocations: 8.312 kB / 0.953 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.003699, allocations: 384 / 0.953 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.003804, allocations: 83.94 kB / 0.9531 GB, free: 0.7422 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.00381, allocations: 4.188 kB / 0.9531 GB, free: 0.7383 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.003818, allocations: 4.125 kB / 0.9531 GB, free: 0.7344 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.003821, allocations: 0 / 0.9531 GB, free: 0.7344 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.058e-05/0.003872, allocations: 49.69 kB / 0.9531 GB, free: 0.6797 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002973/0.004169, allocations: 239.8 kB / 0.9533 GB, free: 412 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 7.314e-05/0.004242, allocations: 72.2 kB / 0.9534 GB, free: 324 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.639e-05/0.004279, allocations: 50.61 kB / 0.9535 GB, free: 264 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.004293, allocations: 0 / 0.9535 GB, free: 264 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001515/0.004444, allocations: 126.8 kB / 0.9536 GB, free: 112 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=9): time 9.52e-07/0.004445, allocations: 4 kB / 0.9536 GB, free: 108 kB / 0.9011 GB Notification: Performance of matching and sorting (n=9): time 0.0002324/0.004678, allocations: 202.7 kB / 0.9538 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.00472, allocations: 85.11 kB / 0.9539 GB, free: 15.78 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.273e-05/0.004782, allocations: 113.9 kB / 0.954 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.004793, allocations: 25.7 kB / 0.954 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.756e-05/0.004831, allocations: 88.2 kB / 0.9541 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.004848, allocations: 19.89 kB / 0.9541 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.004878, allocations: 21.72 kB / 0.9541 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.298e-05/0.004951, allocations: 322.8 kB / 0.9544 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.102e-05/0.004982, allocations: 37.7 kB / 0.9545 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.285e-05/0.005025, allocations: 84.2 kB / 0.9545 GB, free: 15.03 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.26e-05/0.005098, allocations: 110 kB / 0.9546 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.005099, allocations: 0 / 0.9546 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001157/0.005215, allocations: 160.9 kB / 0.9548 GB, free: 14.72 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.005242, allocations: 36.25 kB / 0.9548 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.005247, allocations: 4 kB / 0.9548 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.198e-06/0.005256, allocations: 0 / 0.9548 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.385e-05/0.00529, allocations: 7.938 kB / 0.9548 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.005294, allocations: 4 kB / 0.9548 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.34e-05/0.005338, allocations: 15.98 kB / 0.9549 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.005344, allocations: 4 kB / 0.9549 GB, free: 14.65 MB / 0.9167 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 6.983e-05/0.005413, allocations: 143.5 kB / 0.955 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.005425, allocations: 11.89 kB / 0.955 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.04e-05/0.005445, allocations: 12.42 kB / 0.955 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.005448, allocations: 4 kB / 0.955 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.005451, allocations: 0 / 0.955 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.005455, allocations: 0 / 0.955 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002838/0.005738, allocations: 404.8 kB / 0.9554 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.005739, allocations: 4 kB / 0.9554 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-06/0.005743, allocations: 0 / 0.9554 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.005744, allocations: 4 kB / 0.9554 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.00575, allocations: 3.938 kB / 0.9554 GB, free: 13.99 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.005751, allocations: 0 / 0.9554 GB, free: 13.99 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.005751, allocations: 0 / 0.9554 GB, free: 13.99 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.005886, allocations: 258.9 kB / 0.9557 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.025e-05/0.005896, allocations: 7.938 kB / 0.9557 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.005908, allocations: 4 kB / 0.9557 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.455e-05/0.005963, allocations: 8 kB / 0.9557 GB, free: 13.69 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.256e-05/0.005996, allocations: 11.98 kB / 0.9557 GB, free: 13.68 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.006006, allocations: 7.938 kB / 0.9557 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.063e-05/0.006037, allocations: 95.25 kB / 0.9558 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.006037, allocations: 0 / 0.9558 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001488/0.006185, allocations: 12 kB / 0.9558 GB, free: 13.57 MB / 0.9167 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.0002928/0.006478, allocations: 0.8021 MB / 0.9566 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001352/0.006613, allocations: 162.8 kB / 0.9568 GB, free: 12.54 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.006615, allocations: 0 / 0.9568 GB, free: 12.54 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.061e-05/0.006675, allocations: 113 kB / 0.9569 GB, free: 12.41 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.006863, allocations: 16.12 kB / 0.9569 GB, free: 12.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008909/0.007754, allocations: 1.574 MB / 0.9584 GB, free: 10.69 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.266e-05/0.007796, allocations: 67.34 kB / 0.9585 GB, free: 10.61 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.387e-05/0.00782, allocations: 11.77 kB / 0.9585 GB, free: 10.59 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.163e-05/0.007852, allocations: 16.5 kB / 0.9585 GB, free: 10.58 MB / 0.9167 GB Notification: Performance of SimCode: time 4.61e-07/0.007852, allocations: 0 / 0.9585 GB, free: 10.58 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.014/0.02185, allocations: 2.627 MB / 0.9611 GB, free: 8.109 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.989/7.011, allocations: 10.52 kB / 0.9611 GB, free: 8.102 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable del.u in file Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv. Warning: Get data of variable del.u from file Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv failed! Error: Could not read variable del.y in file Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv. Warning: Get data of variable del.y from file Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.022364255040884]