Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_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.008389/0.008388, allocations: 102.8 kB / 15.73 MB, free: 6.055 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.00144/0.00144, allocations: 194.4 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 1.972/1.972, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 55.91 kB / 0.9503 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.649/0.6503, allocations: 140.4 MB / 1.087 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002005/0.6524, allocations: 1.421 MB / 1.089 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005216/0.6529, allocations: 434.2 kB / 1.089 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.312e-05/0.6529, allocations: 0 / 1.089 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.373e-05/0.653, allocations: 8.547 kB / 1.089 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.362e-05/0.6531, allocations: 15.62 kB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001328/0.6532, allocations: 15.33 kB / 1.089 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.6533, allocations: 55.25 kB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.452e-05/0.6534, allocations: 9.562 kB / 1.089 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.975e-05/0.6534, allocations: 22.66 kB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.689e-05/0.6535, allocations: 18.11 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.6535, allocations: 4.312 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.002e-05/0.6535, allocations: 7.375 kB / 1.089 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.6536, allocations: 7.062 kB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.6536, allocations: 24.89 kB / 1.089 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.217e-05/0.6537, allocations: 45.36 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.6537, allocations: 1.453 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6537, allocations: 0 / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.6537, allocations: 0 / 1.089 GB, free: 4.129 MB / 0.8575 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.0004509/0.6542, allocations: 398.4 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.6542, allocations: 10.94 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.985e-05/0.6542, allocations: 32.36 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.575e-05/0.6543, allocations: 8.656 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.029e-05/0.6543, allocations: 173.1 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.6544, allocations: 2.125 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.6544, allocations: 3.188 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.591e-05/0.6545, allocations: 59.66 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.6545, allocations: 0 / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.6545, allocations: 5.609 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.6545, allocations: 4 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.761e-05/0.6546, allocations: 16.73 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002793/0.6548, allocations: 282 kB / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.318e-05/0.6549, allocations: 39.44 kB / 1.09 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.079e-05/0.655, allocations: 23.03 kB / 1.09 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.655, allocations: 1.828 kB / 1.09 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001208/0.6551, allocations: 100.6 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.6551, allocations: 0 / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002219/0.6553, allocations: 144.7 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.6554, allocations: 81.38 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.197e-05/0.6554, allocations: 111.1 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.157e-06/0.6554, allocations: 30.86 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.229e-05/0.6555, allocations: 82.3 kB / 1.091 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.6555, allocations: 21.3 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.559e-05/0.6555, allocations: 31.91 kB / 1.091 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.494e-05/0.6556, allocations: 319.1 kB / 1.091 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.967e-05/0.6556, allocations: 18.55 kB / 1.091 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.587e-05/0.6556, allocations: 33.31 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.274e-05/0.6557, allocations: 116 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.6557, allocations: 0 / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001272/0.6559, allocations: 126.9 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.6559, allocations: 32.83 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.6559, allocations: 5.109 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.6559, allocations: 1.688 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.505e-05/0.656, allocations: 7.953 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.656, allocations: 1.156 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.838e-05/0.656, allocations: 10.58 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.656, allocations: 11.31 kB / 1.092 GB, free: 1.938 MB / 0.8575 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 6.095e-05/0.6561, allocations: 149.7 kB / 1.092 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.393e-05/0.6561, allocations: 8.156 kB / 1.092 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.167e-05/0.6562, allocations: 6.109 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.6562, allocations: 1.031 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.6562, allocations: 5.922 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.6562, allocations: 0 / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.6565, allocations: 404.6 kB / 1.092 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.6565, allocations: 4 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.356e-06/0.6565, allocations: 1 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.6565, allocations: 1.859 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.6565, allocations: 2.062 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.6565, allocations: 0.7969 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.6565, allocations: 5 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.6567, allocations: 232.8 kB / 1.092 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.161e-05/0.6567, allocations: 83.41 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.6568, allocations: 10.88 kB / 1.093 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.874e-05/0.6569, allocations: 8.547 kB / 1.093 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.6569, allocations: 9.625 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.6569, allocations: 3.344 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.838e-05/0.657, allocations: 88.56 kB / 1.093 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.657, allocations: 0 / 1.093 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002176/0.6572, allocations: 18.16 kB / 1.093 GB, free: 1.008 MB / 0.8575 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.0003161/0.6575, allocations: 0.7691 MB / 1.093 GB, free: 292 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00017/0.6577, allocations: 114.2 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6577, allocations: 0 / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.046e-05/0.6578, allocations: 93 kB / 1.094 GB, free: 16.12 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.658, allocations: 22.08 kB / 1.094 GB, free: 16.12 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.6592, allocations: 1.427 MB / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000217/0.6594, allocations: 0.6843 MB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.496e-05/0.6594, allocations: 5.141 kB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.506e-05/0.6595, allocations: 16.8 kB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.6595, allocations: 0 / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.539/3.199, allocations: 1.929 MB / 1.098 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/16.11, allocations: 4.719 kB / 1.098 GB, free: 13.64 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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