Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_10_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.0007307/0.0007309, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004182/0.004182, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.194/1.194, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.272/2.272, allocations: 437.8 MB / 0.7121 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002924, allocations: 12 kB / 0.8729 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5436/0.5439, allocations: 153.8 MB / 1.023 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001335/0.5453, allocations: 1.153 MB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006334/0.5459, allocations: 427.1 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.726e-05/0.546, allocations: 4 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.546, allocations: 0 / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.019e-05/0.5461, allocations: 7.922 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001246/0.5462, allocations: 15.94 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.547e-05/0.5463, allocations: 51.83 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.555e-05/0.5464, allocations: 8 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.361e-05/0.5464, allocations: 19.92 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.961e-05/0.5465, allocations: 15.92 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.5465, allocations: 4 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.686e-06/0.5466, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.306e-05/0.5466, allocations: 7.938 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.077e-05/0.5466, allocations: 45.62 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.039e-05/0.5467, allocations: 46.06 kB / 1.025 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.5467, allocations: 0 / 1.025 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.173e-06/0.5467, allocations: 0 / 1.025 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.5467, allocations: 0 / 1.025 GB, free: 13.99 MB / 0.7794 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.0004846/0.5472, allocations: 397 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.5473, allocations: 8.031 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.454e-05/0.5473, allocations: 38.73 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.523e-05/0.5473, allocations: 0.9375 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.5475, allocations: 172.3 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.5475, allocations: 8.375 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.5475, allocations: 384 / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.5476, allocations: 57.8 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.5476, allocations: 0 / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.5477, allocations: 4 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.5477, allocations: 0 / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.924e-05/0.5477, allocations: 15.94 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003481/0.5481, allocations: 284.8 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.439e-05/0.5482, allocations: 38.58 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.357e-05/0.5482, allocations: 20.97 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.5482, allocations: 0 / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.5484, allocations: 105 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.5484, allocations: 0 / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002414/0.5486, allocations: 143.2 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.5487, allocations: 85.11 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.596e-05/0.5488, allocations: 105.8 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.5488, allocations: 37.69 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.5488, allocations: 80.14 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.5489, allocations: 23.78 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.5489, allocations: 17.72 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.549, allocations: 322.8 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.131e-05/0.549, allocations: 15.98 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.986e-05/0.5491, allocations: 38.58 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.416e-05/0.5492, allocations: 113.9 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.5492, allocations: 3.938 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001405/0.5493, allocations: 119.3 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.5494, allocations: 33.69 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.5494, allocations: 8.062 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.5494, allocations: 0 / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.937e-05/0.5494, allocations: 8.062 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.5494, allocations: 0 / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.579e-05/0.5495, allocations: 15.91 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.5495, allocations: 0 / 1.027 GB, free: 11.41 MB / 0.7794 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 8.794e-05/0.5496, allocations: 155.4 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.893e-05/0.5496, allocations: 7.984 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.324e-05/0.5497, allocations: 16.38 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.5497, allocations: 0 / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.5497, allocations: 0 / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.5497, allocations: 3.984 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003405/0.55, allocations: 412.3 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.55, allocations: 0 / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.233e-06/0.5501, allocations: 0 / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.5501, allocations: 0 / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-06/0.5501, allocations: 4 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.5501, allocations: 0 / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5501, allocations: 8.406 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/0.5503, allocations: 229.2 kB / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.5503, allocations: 85.02 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.5503, allocations: 3.984 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.679e-05/0.5504, allocations: 8 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.5505, allocations: 11.92 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.5505, allocations: 12 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.257e-05/0.5506, allocations: 91.33 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5506, allocations: 0 / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002202/0.5508, allocations: 16 kB / 1.028 GB, free: 10.25 MB / 0.7794 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.0004006/0.5512, allocations: 0.7648 MB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001474/0.5514, allocations: 119.3 kB / 1.029 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.5514, allocations: 4 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.424e-05/0.5514, allocations: 87.39 kB / 1.029 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.5517, allocations: 15.94 kB / 1.029 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.5528, allocations: 1.422 MB / 1.03 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001981/0.553, allocations: 0.6887 MB / 1.031 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.823e-05/0.5531, allocations: 7.859 kB / 1.031 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.948e-05/0.5531, allocations: 23.42 kB / 1.031 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.5531, allocations: 0 / 1.031 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01/0.5631, allocations: 1.587 MB / 1.033 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/0.5633, allocations: 198.1 kB / 1.033 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/2.166, allocations: 0 / 1.033 GB, free: 5.223 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches