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.001391/0.001391, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001652/0.001652, allocations: 216.3 kB / 22.26 MB, free: 5.113 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.357/1.357, allocations: 230.6 MB / 256 MB, free: 8.016 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.131/3.131, allocations: 0.505 GB / 0.8101 GB, free: 22.05 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.002017/0.002017, allocations: 65.28 kB / 1.177 GB, free: 17.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3414, allocations: 180.2 MB / 1.353 GB, free: 8.477 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002598/0.344, allocations: 1.457 MB / 1.354 GB, free: 7.012 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0008469/0.3448, allocations: 474.8 kB / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.097e-05/0.3449, allocations: 0 / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.741e-05/0.3449, allocations: 3.938 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.696e-05/0.345, allocations: 19.84 kB / 1.355 GB, free: 6.52 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001488/0.3451, allocations: 19.98 kB / 1.355 GB, free: 6.5 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.3453, allocations: 51.86 kB / 1.355 GB, free: 6.449 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 7.66e-05/0.3453, allocations: 3.984 kB / 1.355 GB, free: 6.445 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.255e-05/0.3454, allocations: 19.88 kB / 1.355 GB, free: 6.426 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.048e-05/0.3455, allocations: 31.84 kB / 1.355 GB, free: 6.395 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.3455, allocations: 4 kB / 1.355 GB, free: 6.391 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 1.15e-05/0.3455, allocations: 4 kB / 1.355 GB, free: 6.387 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.31e-05/0.3455, allocations: 3.984 kB / 1.355 GB, free: 6.383 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.679e-05/0.3456, allocations: 31.8 kB / 1.355 GB, free: 6.352 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.3457, allocations: 36.12 kB / 1.355 GB, free: 6.316 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3457, allocations: 3.984 kB / 1.355 GB, free: 6.312 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3457, allocations: 4 kB / 1.355 GB, free: 6.309 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.3457, allocations: 0 / 1.355 GB, free: 6.309 MB / 1.045 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.0006024/0.3463, allocations: 329.8 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.3463, allocations: 8.031 kB / 1.355 GB, free: 5.945 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.747e-05/0.3464, allocations: 34.75 kB / 1.355 GB, free: 5.902 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.152e-05/0.3464, allocations: 8.891 kB / 1.355 GB, free: 5.895 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.3465, allocations: 106.5 kB / 1.355 GB, free: 5.766 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.3466, allocations: 12.36 kB / 1.355 GB, free: 5.754 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.3466, allocations: 384 / 1.355 GB, free: 5.754 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.3467, allocations: 57.8 kB / 1.355 GB, free: 5.691 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3467, allocations: 0 / 1.355 GB, free: 5.691 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3467, allocations: 0 / 1.355 GB, free: 5.691 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.3467, allocations: 4 kB / 1.355 GB, free: 5.688 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.349e-05/0.3468, allocations: 19.92 kB / 1.355 GB, free: 5.668 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004705/0.3473, allocations: 247.9 kB / 1.356 GB, free: 5.383 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.588e-05/0.3474, allocations: 42.56 kB / 1.356 GB, free: 5.332 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.065e-05/0.3474, allocations: 16.98 kB / 1.356 GB, free: 5.312 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.3474, allocations: 0 / 1.356 GB, free: 5.312 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.3476, allocations: 109 kB / 1.356 GB, free: 5.188 MB / 1.045 GB Notification: Performance of pre-optimization done (n=9): time 1.512e-06/0.3476, allocations: 0 / 1.356 GB, free: 5.188 MB / 1.045 GB Notification: Performance of matching and sorting (n=9): time 0.0002953/0.3479, allocations: 139.4 kB / 1.356 GB, free: 5.039 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.348, allocations: 85.11 kB / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.487e-05/0.3481, allocations: 113.8 kB / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.3481, allocations: 29.7 kB / 1.356 GB, free: 4.781 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.635e-05/0.3482, allocations: 84.14 kB / 1.356 GB, free: 4.695 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.446e-05/0.3482, allocations: 19.84 kB / 1.356 GB, free: 4.676 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.3482, allocations: 25.7 kB / 1.356 GB, free: 4.645 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3484, allocations: 322.8 kB / 1.357 GB, free: 4.32 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.652e-05/0.3484, allocations: 16.28 kB / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.499e-05/0.3485, allocations: 50.48 kB / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.3486, allocations: 105.9 kB / 1.357 GB, free: 4.121 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3486, allocations: 0 / 1.357 GB, free: 4.121 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001783/0.3488, allocations: 131.2 kB / 1.357 GB, free: 3.98 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.3488, allocations: 37.7 kB / 1.357 GB, free: 3.938 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3488, allocations: 0 / 1.357 GB, free: 3.938 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.3488, allocations: 4.062 kB / 1.357 GB, free: 3.934 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.289e-05/0.3489, allocations: 4 kB / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3489, allocations: 0 / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.908e-05/0.349, allocations: 7.984 kB / 1.357 GB, free: 3.922 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.349, allocations: 4 kB / 1.357 GB, free: 3.918 MB / 1.045 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.0001249/0.3491, allocations: 159.3 kB / 1.357 GB, free: 3.746 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.056e-05/0.3491, allocations: 7.953 kB / 1.357 GB, free: 3.738 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.3492, allocations: 8.375 kB / 1.357 GB, free: 3.73 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.3492, allocations: 8 kB / 1.357 GB, free: 3.723 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3492, allocations: 0 / 1.357 GB, free: 3.723 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.3492, allocations: 0 / 1.357 GB, free: 3.723 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.3496, allocations: 371.2 kB / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3496, allocations: 0 / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.336e-06/0.3496, allocations: 0 / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3496, allocations: 0 / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.3496, allocations: 11.94 kB / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.3496, allocations: 3.984 kB / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3496, allocations: 3.938 kB / 1.358 GB, free: 3.285 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.3499, allocations: 233.1 kB / 1.358 GB, free: 3.035 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.472e-05/0.3499, allocations: 7.953 kB / 1.358 GB, free: 3.027 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.3499, allocations: 0 / 1.358 GB, free: 3.027 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.35, allocations: 16.05 kB / 1.358 GB, free: 3.012 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.3501, allocations: 11.92 kB / 1.358 GB, free: 3 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.3501, allocations: 4 kB / 1.358 GB, free: 2.996 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.3501, allocations: 87.38 kB / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3501, allocations: 7.938 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002371/0.3504, allocations: 16 kB / 1.358 GB, free: 2.887 MB / 1.045 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.0006171/0.351, allocations: 0.7609 MB / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000204/0.3512, allocations: 108.2 kB / 1.359 GB, free: 1.977 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.3512, allocations: 4.125 kB / 1.359 GB, free: 1.973 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.3513, allocations: 83.38 kB / 1.359 GB, free: 1.879 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.3516, allocations: 26.25 kB / 1.359 GB, free: 1.855 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.3531, allocations: 1.424 MB / 1.36 GB, free: 340 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.3535, allocations: 0.6885 MB / 1.361 GB, free: 15.62 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.457e-05/0.3535, allocations: 7.984 kB / 1.361 GB, free: 15.61 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.3535, allocations: 19.38 kB / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of SimCode: time 8.21e-07/0.3535, allocations: 0 / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.3853, allocations: 2.048 MB / 1.363 GB, free: 13.67 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.35, allocations: 8 kB / 1.363 GB, free: 13.66 MB / 1.061 GB " [Timeout remaining time 288] (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: 18.97036871011369]