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.001047/0.001047, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00104/0.00104, allocations: 192.7 kB / 16.25 MB, free: 6.621 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.211/1.211, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.369/2.369, allocations: 461.9 MB / 0.7343 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 64.88 kB / 0.8987 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2323, allocations: 157.4 MB / 1.052 GB, free: 8.727 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00241/0.2347, allocations: 1.502 MB / 1.054 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006239/0.2354, allocations: 438.8 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.233e-05/0.2354, allocations: 4 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.675e-05/0.2355, allocations: 3.938 kB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.402e-05/0.2355, allocations: 11.91 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001279/0.2357, allocations: 16 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.655e-05/0.2358, allocations: 51.84 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.059e-05/0.2359, allocations: 4 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.112e-05/0.2359, allocations: 27.84 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.051e-05/0.236, allocations: 23.92 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.236, allocations: 4 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.236, allocations: 4 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.135e-05/0.2361, allocations: 11.92 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.226e-05/0.2361, allocations: 19.94 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.06e-05/0.2362, allocations: 40.09 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2362, allocations: 0 / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.093e-06/0.2362, allocations: 4 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.2362, allocations: 0 / 1.054 GB, free: 6.555 MB / 0.8106 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.0005183/0.2367, allocations: 390.8 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2368, allocations: 12.62 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.139e-05/0.2368, allocations: 34.73 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.838e-05/0.2369, allocations: 8.844 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.237, allocations: 164.3 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.237, allocations: 8.375 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.237, allocations: 4.375 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.2371, allocations: 57.73 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.2371, allocations: 4 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.2371, allocations: 4 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2372, allocations: 0 / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.76e-05/0.2372, allocations: 12 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003404/0.2376, allocations: 276.7 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.272e-05/0.2376, allocations: 42.52 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.634e-05/0.2377, allocations: 28.97 kB / 1.055 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.2377, allocations: 4 kB / 1.056 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/0.2379, allocations: 97.16 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.2379, allocations: 0 / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002388/0.2381, allocations: 139.2 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.2382, allocations: 89.09 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.844e-05/0.2383, allocations: 105.8 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.2383, allocations: 33.7 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.2383, allocations: 84.14 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.2383, allocations: 15.81 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.748e-05/0.2384, allocations: 25.7 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.195e-05/0.2385, allocations: 322.8 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.051e-05/0.2385, allocations: 19.92 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.79e-05/0.2386, allocations: 42.5 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.589e-05/0.2387, allocations: 110 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2387, allocations: 0 / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001417/0.2388, allocations: 127.2 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.2389, allocations: 37.69 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.2389, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.2389, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.888e-05/0.2389, allocations: 7.938 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.2389, allocations: 4.062 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.089e-05/0.239, allocations: 11.92 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.239, allocations: 7.984 kB / 1.057 GB, free: 3.973 MB / 0.8106 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 9.05e-05/0.2391, allocations: 147.5 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/0.2391, allocations: 11.91 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.234e-05/0.2391, allocations: 8.359 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.2392, allocations: 4.375 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2392, allocations: 4.062 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.2392, allocations: 0 / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000344/0.2395, allocations: 408.1 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2395, allocations: 0 / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.284e-06/0.2395, allocations: 0 / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2395, allocations: 0 / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2396, allocations: 8 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.2396, allocations: 0 / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2396, allocations: 7.875 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.2398, allocations: 229.1 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.2398, allocations: 81.09 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.2398, allocations: 4 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.925e-05/0.2399, allocations: 11.98 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/0.24, allocations: 7.938 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.24, allocations: 4 kB / 1.058 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.018e-05/0.2401, allocations: 91.8 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.282e-06/0.2401, allocations: 3.938 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002165/0.2403, allocations: 19.94 kB / 1.058 GB, free: 2.824 MB / 0.8106 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.0004122/0.2407, allocations: 0.7628 MB / 1.058 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.2409, allocations: 131.2 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2409, allocations: 0 / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.184e-05/0.241, allocations: 87.39 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.2412, allocations: 27.98 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.2423, allocations: 1.415 MB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.2426, allocations: 0.6846 MB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.822e-05/0.2426, allocations: 7.984 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.2426, allocations: 19.44 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2426, allocations: 0 / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9775/1.22, allocations: 1.74 MB / 1.062 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002874/1.221, allocations: 206.1 kB / 1.063 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/3.183, allocations: 0 / 1.063 GB, free: 13.63 MB / 0.8262 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) Reference file matches