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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.005262/0.005262, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001526/0.001526, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.907/2.907, allocations: 482.4 MB / 0.7548 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 67.89 kB / 1.083 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2949, allocations: 162.2 MB / 1.241 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002486/0.2975, allocations: 1.426 MB / 1.243 GB, free: 8.824 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0007082/0.2982, allocations: 427 kB / 1.243 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.612e-05/0.2982, allocations: 0 / 1.243 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.405e-05/0.2983, allocations: 7.875 kB / 1.243 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.023e-05/0.2984, allocations: 15.84 kB / 1.243 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.2985, allocations: 19.98 kB / 1.243 GB, free: 8.359 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.2986, allocations: 55.84 kB / 1.243 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.306e-05/0.2987, allocations: 4 kB / 1.243 GB, free: 8.301 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.688e-05/0.2988, allocations: 27.86 kB / 1.243 GB, free: 8.273 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.337e-05/0.2989, allocations: 19.91 kB / 1.243 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.2989, allocations: 4 kB / 1.243 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.342e-05/0.2989, allocations: 4 kB / 1.243 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.379e-05/0.2989, allocations: 7.938 kB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.299, allocations: 23.92 kB / 1.243 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.2991, allocations: 47.75 kB / 1.243 GB, free: 8.168 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2991, allocations: 0 / 1.243 GB, free: 8.168 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2991, allocations: 0 / 1.243 GB, free: 8.168 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.2991, allocations: 0 / 1.243 GB, free: 8.168 MB / 0.9981 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.0006167/0.2998, allocations: 397 kB / 1.244 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2998, allocations: 8.031 kB / 1.244 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.537e-05/0.2998, allocations: 34.69 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.073e-05/0.2999, allocations: 8.891 kB / 1.244 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.3, allocations: 172.3 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.3, allocations: 384 / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.3001, allocations: 8.375 kB / 1.244 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.3002, allocations: 53.81 kB / 1.244 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3002, allocations: 4 kB / 1.244 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.3002, allocations: 3.984 kB / 1.244 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.3002, allocations: 0 / 1.244 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.76e-05/0.3003, allocations: 20 kB / 1.244 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003929/0.3007, allocations: 272.7 kB / 1.244 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.887e-05/0.3008, allocations: 46.55 kB / 1.244 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.367e-05/0.3008, allocations: 28.97 kB / 1.244 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.3009, allocations: 0 / 1.244 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000187/0.301, allocations: 101.1 kB / 1.245 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.654e-06/0.3011, allocations: 0 / 1.245 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.0002983/0.3014, allocations: 139.6 kB / 1.245 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.3014, allocations: 85.05 kB / 1.245 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.3015, allocations: 113.8 kB / 1.245 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.3016, allocations: 25.7 kB / 1.245 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.233e-05/0.3016, allocations: 96.12 kB / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.3017, allocations: 11.91 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.3017, allocations: 29.66 kB / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3019, allocations: 322.8 kB / 1.245 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.769e-05/0.3019, allocations: 15.98 kB / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.154e-05/0.302, allocations: 34.58 kB / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.3022, allocations: 121.9 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3022, allocations: 0 / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001833/0.3023, allocations: 119.7 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.3024, allocations: 41.69 kB / 1.246 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3024, allocations: 0 / 1.246 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3024, allocations: 4 kB / 1.246 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.044e-05/0.3025, allocations: 0 / 1.246 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.3025, allocations: 8.047 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.509e-05/0.3026, allocations: 8 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.3026, allocations: 4 kB / 1.246 GB, free: 5.578 MB / 0.9981 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.0001477/0.3027, allocations: 160.8 kB / 1.246 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.3028, allocations: 3.953 kB / 1.246 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.3028, allocations: 12.38 kB / 1.246 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.3028, allocations: 0 / 1.246 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3028, allocations: 0 / 1.246 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3028, allocations: 3.984 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004739/0.3033, allocations: 404.1 kB / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3033, allocations: 0 / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.795e-06/0.3033, allocations: 0 / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3033, allocations: 4 kB / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.3033, allocations: 0 / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3034, allocations: 0 / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3034, allocations: 3.938 kB / 1.246 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.3036, allocations: 241.2 kB / 1.246 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.3037, allocations: 85.12 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.3037, allocations: 7.984 kB / 1.247 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.3039, allocations: 11.94 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.028e-05/0.3039, allocations: 11.92 kB / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3039, allocations: 4 kB / 1.247 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.502e-05/0.304, allocations: 91.27 kB / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.304, allocations: 0 / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002474/0.3043, allocations: 12 kB / 1.247 GB, free: 4.422 MB / 0.9981 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.0005866/0.3049, allocations: 0.7665 MB / 1.247 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002126/0.3051, allocations: 119.3 kB / 1.248 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3051, allocations: 0 / 1.248 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.3052, allocations: 87.38 kB / 1.248 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.3055, allocations: 20.06 kB / 1.248 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.3071, allocations: 1.425 MB / 1.249 GB, free: 1.855 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.3074, allocations: 0.6885 MB / 1.25 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.863e-05/0.3075, allocations: 4.281 kB / 1.25 GB, free: 1.137 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.87e-05/0.3075, allocations: 19.44 kB / 1.25 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of SimCode: time 2.61e-07/0.3075, allocations: 0 / 1.25 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.508/0.8155, allocations: 1.876 MB / 1.252 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.565/8.381, allocations: 6.938 kB / 1.252 GB, free: 14.96 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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) Reference file matches