Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001767/0.001767, allocations: 107.8 kB / 16.45 MB, free: 6.453 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.00209/0.00209, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.416/1.416, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.086/3.086, allocations: 0.49 GB / 0.7916 GB, free: 33.32 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_12_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.002018/0.002018, allocations: 64.81 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3285, allocations: 176.1 MB / 1.321 GB, free: 3.363 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002729/0.3312, allocations: 1.441 MB / 1.322 GB, free: 1.914 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008592/0.3321, allocations: 474.8 kB / 1.323 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.868e-05/0.3321, allocations: 4 kB / 1.323 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.173e-05/0.3322, allocations: 3.938 kB / 1.323 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.272e-05/0.3323, allocations: 11.86 kB / 1.323 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.3324, allocations: 23.97 kB / 1.323 GB, free: 1.402 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.3325, allocations: 47.8 kB / 1.323 GB, free: 1.355 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.803e-05/0.3326, allocations: 11.98 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.863e-05/0.3327, allocations: 15.94 kB / 1.323 GB, free: 1.328 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.663e-05/0.3327, allocations: 23.84 kB / 1.323 GB, free: 1.305 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.3328, allocations: 8 kB / 1.323 GB, free: 1.297 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.246e-05/0.3328, allocations: 4 kB / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.859e-05/0.3328, allocations: 8 kB / 1.323 GB, free: 1.285 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.859e-05/0.3329, allocations: 27.84 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.333, allocations: 40.11 kB / 1.323 GB, free: 1.219 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.333, allocations: 0 / 1.323 GB, free: 1.219 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.202e-06/0.333, allocations: 0 / 1.323 GB, free: 1.219 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.333, allocations: 0 / 1.323 GB, free: 1.219 MB / 1.014 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.0006414/0.3336, allocations: 401 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.3337, allocations: 11.98 kB / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.735e-05/0.3337, allocations: 38.69 kB / 1.323 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.3337, allocations: 0.9375 kB / 1.323 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.3339, allocations: 176.3 kB / 1.323 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3339, allocations: 8.375 kB / 1.323 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.3339, allocations: 384 / 1.323 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.334, allocations: 49.81 kB / 1.324 GB, free: 452 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.334, allocations: 0 / 1.324 GB, free: 452 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.334, allocations: 4 kB / 1.324 GB, free: 448 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.334, allocations: 11.97 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.722e-05/0.3341, allocations: 23.88 kB / 1.324 GB, free: 412 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004069/0.3345, allocations: 264.8 kB / 1.324 GB, free: 96 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 8.585e-05/0.3346, allocations: 42.56 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.084e-05/0.3346, allocations: 16.98 kB / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.3347, allocations: 3.984 kB / 1.324 GB, free: 20 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.3349, allocations: 112.9 kB / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.3349, allocations: 0 / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0002912/0.3352, allocations: 139.4 kB / 1.324 GB, free: 15.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/0.3352, allocations: 85.05 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.174e-05/0.3353, allocations: 113.9 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.3353, allocations: 33.7 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.157e-05/0.3354, allocations: 84.12 kB / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.3354, allocations: 23.84 kB / 1.324 GB, free: 15.37 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.513e-05/0.3355, allocations: 25.72 kB / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3356, allocations: 318.8 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.475e-05/0.3356, allocations: 20 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.916e-05/0.3357, allocations: 30.56 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.3358, allocations: 117.9 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3358, allocations: 0 / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002073/0.336, allocations: 131.3 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.3361, allocations: 33.7 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3361, allocations: 3.984 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3361, allocations: 0 / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.738e-05/0.3361, allocations: 4 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.3361, allocations: 0 / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.273e-05/0.3362, allocations: 4 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.3362, allocations: 12.06 kB / 1.325 GB, free: 14.62 MB / 1.029 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.0001427/0.3364, allocations: 159.4 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.3364, allocations: 7.953 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/0.3364, allocations: 4.375 kB / 1.325 GB, free: 14.44 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.3364, allocations: 4 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3364, allocations: 0 / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3365, allocations: 0 / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004867/0.3369, allocations: 408.5 kB / 1.326 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3369, allocations: 4 kB / 1.326 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.544e-06/0.3369, allocations: 3.938 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3369, allocations: 0 / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.337, allocations: 4 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.337, allocations: 0 / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.337, allocations: 3.938 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.3372, allocations: 233.1 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.3372, allocations: 85.06 kB / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.3373, allocations: 11.98 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.3374, allocations: 4 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.3374, allocations: 11.92 kB / 1.326 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.3374, allocations: 8.062 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.38e-05/0.3375, allocations: 91.27 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3375, allocations: 0 / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002311/0.3377, allocations: 16 kB / 1.326 GB, free: 13.46 MB / 1.029 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.000579/0.3383, allocations: 0.761 MB / 1.327 GB, free: 12.67 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001852/0.3385, allocations: 107.3 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3385, allocations: 0 / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.347e-05/0.3386, allocations: 83.39 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.3389, allocations: 20.86 kB / 1.327 GB, free: 12.44 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.3403, allocations: 1.432 MB / 1.328 GB, free: 10.91 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.3406, allocations: 0.6885 MB / 1.329 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.685e-05/0.3406, allocations: 0 / 1.329 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.924e-05/0.3406, allocations: 15.44 kB / 1.329 GB, free: 10.18 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3406, allocations: 0 / 1.329 GB, free: 10.18 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02537/0.366, allocations: 1.898 MB / 1.331 GB, free: 8.367 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.408/8.774, allocations: 5.703 kB / 1.331 GB, free: 8.363 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.139095864957199]