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.001336/0.001336, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001572/0.001572, allocations: 214.1 kB / 22.25 MB, free: 5.105 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.437/1.437, allocations: 230.6 MB / 256 MB, free: 7.816 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.192/3.192, allocations: 0.49 GB / 0.7951 GB, free: 35.44 MB / 0.6231 GB " [Timeout remaining time 176] 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.001998/0.001998, allocations: 70.88 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3434, allocations: 176.1 MB / 1.326 GB, free: 1.566 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002575/0.346, allocations: 1.443 MB / 1.327 GB, free: 120 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.000817/0.3468, allocations: 442.9 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.095e-05/0.3468, allocations: 0 / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.9e-05/0.3469, allocations: 3.938 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.12e-05/0.3469, allocations: 19.91 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001467/0.3471, allocations: 23.92 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.3472, allocations: 47.8 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.794e-05/0.3473, allocations: 7.984 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.071e-05/0.3474, allocations: 19.88 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.039e-05/0.3474, allocations: 31.89 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.3475, allocations: 4 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 1.147e-05/0.3475, allocations: 4 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.3475, allocations: 4 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.677e-05/0.3475, allocations: 23.86 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.3476, allocations: 40.11 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3477, allocations: 3.984 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3477, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3477, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 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.0006015/0.3483, allocations: 323.9 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3483, allocations: 8.031 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.3483, allocations: 38.75 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.3484, allocations: 0.9375 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.3485, allocations: 114.4 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.3485, allocations: 8.359 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.3485, allocations: 8.375 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.3486, allocations: 79.5 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3486, allocations: 0 / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.3487, allocations: 4 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3487, allocations: 7.984 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.137e-05/0.3487, allocations: 45.69 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003796/0.3491, allocations: 235.9 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.3492, allocations: 64.27 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.255e-05/0.3493, allocations: 46.69 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3493, allocations: 4 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001949/0.3495, allocations: 134.8 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.3495, allocations: 3.938 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003113/0.3498, allocations: 198.7 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.3499, allocations: 81.11 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.134e-05/0.35, allocations: 113.8 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.35, allocations: 29.7 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.344e-05/0.35, allocations: 96.02 kB / 1.329 GB, free: 13.6 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.3501, allocations: 19.84 kB / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.3501, allocations: 21.72 kB / 1.329 GB, free: 13.55 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3502, allocations: 322.8 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.353e-05/0.3503, allocations: 49.69 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.408e-05/0.3504, allocations: 64.27 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.3505, allocations: 113.9 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3505, allocations: 4 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001826/0.3506, allocations: 157 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.368e-05/0.3507, allocations: 33.7 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.3507, allocations: 0 / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.3507, allocations: 0 / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.988e-05/0.3507, allocations: 4 kB / 1.33 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3507, allocations: 3.984 kB / 1.33 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.482e-05/0.3508, allocations: 12 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.3508, allocations: 4.062 kB / 1.33 GB, free: 12.72 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.0001161/0.3509, allocations: 159.3 kB / 1.33 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.351, allocations: 7.953 kB / 1.33 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.882e-05/0.351, allocations: 12.38 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.351, allocations: 3.938 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.351, allocations: 0 / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.351, allocations: 0 / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004241/0.3514, allocations: 392.9 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3514, allocations: 384 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.524e-06/0.3514, allocations: 4 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3514, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.3514, allocations: 4 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3514, allocations: 11.88 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3514, allocations: 3.938 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.3517, allocations: 262.8 kB / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.631e-05/0.3517, allocations: 11.95 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.3517, allocations: 0 / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.3518, allocations: 11.98 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.3519, allocations: 7.922 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.3519, allocations: 8 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.845e-05/0.352, allocations: 83.28 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.352, allocations: 4 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002273/0.3522, allocations: 16 kB / 1.331 GB, free: 11.63 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.0005431/0.3527, allocations: 0.79 MB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002125/0.3529, allocations: 171.6 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.3529, allocations: 0 / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.353, allocations: 109.1 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.3533, allocations: 23.84 kB / 1.332 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.3548, allocations: 1.577 MB / 1.334 GB, free: 8.762 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.416e-05/0.3549, allocations: 67.34 kB / 1.334 GB, free: 8.676 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.818e-05/0.3549, allocations: 11.92 kB / 1.334 GB, free: 8.664 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.488e-05/0.3549, allocations: 15.44 kB / 1.334 GB, free: 8.648 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/0.3549, allocations: 3.938 kB / 1.334 GB, free: 8.645 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.3824, allocations: 2.504 MB / 1.336 GB, free: 6.277 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.47, allocations: 12.42 kB / 1.336 GB, free: 6.27 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.054435199999716]