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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006438/0.006438, allocations: 99.31 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 188.9 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.713/2.713, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001304, allocations: 68.12 kB / 1.054 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3365, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00286/0.3395, allocations: 1.423 MB / 1.209 GB, free: 8.766 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008071/0.3403, allocations: 434.8 kB / 1.209 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.26e-05/0.3404, allocations: 0 / 1.209 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.22e-05/0.3404, allocations: 3.938 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.272e-05/0.3405, allocations: 19.91 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001876/0.3407, allocations: 19.92 kB / 1.209 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.3409, allocations: 43.86 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.341, allocations: 15.97 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.051e-05/0.341, allocations: 19.92 kB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.3411, allocations: 23.84 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.3412, allocations: 4 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.22e-05/0.3412, allocations: 7.938 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.792e-05/0.3412, allocations: 11.94 kB / 1.209 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.756e-05/0.3413, allocations: 19.92 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.3414, allocations: 48.09 kB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3414, allocations: 0 / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3414, allocations: 0 / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.3414, allocations: 0 / 1.209 GB, free: 8.102 MB / 0.9669 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.0006564/0.3421, allocations: 393 kB / 1.21 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3421, allocations: 8.625 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/0.3422, allocations: 38.75 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.41e-05/0.3422, allocations: 4.938 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3424, allocations: 176.2 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.3424, allocations: 4.375 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.3424, allocations: 384 / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.3425, allocations: 57.75 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.3426, allocations: 0 / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.3426, allocations: 7.984 kB / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3426, allocations: 0 / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.56e-05/0.3426, allocations: 12 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004198/0.3431, allocations: 272.8 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.395e-05/0.3432, allocations: 47 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.651e-05/0.3432, allocations: 20.97 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.3432, allocations: 0 / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002123/0.3434, allocations: 105.2 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.3435, allocations: 4 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0002909/0.3438, allocations: 139.2 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/0.3438, allocations: 81.11 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.642e-05/0.3439, allocations: 109.8 kB / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.3439, allocations: 25.7 kB / 1.211 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.333e-05/0.344, allocations: 96.08 kB / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.344, allocations: 15.72 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-05/0.3441, allocations: 29.94 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3442, allocations: 326.8 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.3442, allocations: 12 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.55e-05/0.3443, allocations: 42.44 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.3444, allocations: 122.3 kB / 1.211 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3444, allocations: 0 / 1.211 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001628/0.3446, allocations: 123.3 kB / 1.211 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.3446, allocations: 33.69 kB / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3446, allocations: 4 kB / 1.211 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.3446, allocations: 0 / 1.211 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.67e-05/0.3447, allocations: 7.938 kB / 1.211 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3447, allocations: 0 / 1.211 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.698e-05/0.3448, allocations: 15.91 kB / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.3448, allocations: 8 kB / 1.212 GB, free: 5.508 MB / 0.9669 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.0001091/0.3449, allocations: 155.5 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.3449, allocations: 4 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.3449, allocations: 8.375 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.345, allocations: 0 / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.345, allocations: 0 / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.345, allocations: 7.984 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003827/0.3454, allocations: 400 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3454, allocations: 0 / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.196e-06/0.3454, allocations: 4 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3454, allocations: 0 / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.3454, allocations: 4 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3454, allocations: 4 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3454, allocations: 7.875 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.3456, allocations: 225.2 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.3457, allocations: 85.02 kB / 1.212 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.3457, allocations: 7.984 kB / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.787e-05/0.3458, allocations: 7.938 kB / 1.212 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.3459, allocations: 16.02 kB / 1.212 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.3459, allocations: 11.94 kB / 1.212 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.032e-05/0.346, allocations: 83.27 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.11e-07/0.346, allocations: 3.938 kB / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002366/0.3462, allocations: 20 kB / 1.213 GB, free: 4.352 MB / 0.9669 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.0004806/0.3467, allocations: 0.7532 MB / 1.213 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001723/0.3469, allocations: 119.3 kB / 1.213 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3469, allocations: 0 / 1.213 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.604e-05/0.347, allocations: 95.33 kB / 1.213 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.3473, allocations: 15.94 kB / 1.213 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3485, allocations: 1.42 MB / 1.215 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.3488, allocations: 0.6885 MB / 1.216 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.266e-05/0.3488, allocations: 4 kB / 1.216 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.3489, allocations: 19.38 kB / 1.216 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.3489, allocations: 0 / 1.216 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.3687, allocations: 1.928 MB / 1.217 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.163/8.532, allocations: 6.156 kB / 1.217 GB, free: 15.22 MB / 0.9825 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) 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) "" Variables in the reference:time,del.u,del.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,del.firstTrigger_start,del.samplePeriod,del.startTime,del.u,del.y,time