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.005298/0.005298, allocations: 102.5 kB / 15.73 MB, free: 6.066 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.001391/0.001391, allocations: 197.1 kB / 16.68 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.244/1.244, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.51/2.51, allocations: 482.6 MB / 0.7551 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 62.95 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2612, allocations: 162.3 MB / 1.242 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002295/0.2635, allocations: 1.435 MB / 1.243 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006684/0.2642, allocations: 428.5 kB / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.804e-05/0.2643, allocations: 0 / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.738e-05/0.2643, allocations: 3.938 kB / 1.244 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.986e-05/0.2644, allocations: 7.938 kB / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001439/0.2645, allocations: 23.92 kB / 1.244 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.2647, allocations: 55.78 kB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.065e-05/0.2647, allocations: 7.984 kB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.29e-05/0.2648, allocations: 23.86 kB / 1.244 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.444e-05/0.2649, allocations: 19.92 kB / 1.244 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/0.2649, allocations: 4 kB / 1.244 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.635e-05/0.2649, allocations: 4 kB / 1.244 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.465e-05/0.265, allocations: 11.98 kB / 1.244 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.265, allocations: 23.88 kB / 1.244 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.2651, allocations: 44.09 kB / 1.244 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2651, allocations: 0 / 1.244 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2651, allocations: 0 / 1.244 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.2651, allocations: 0 / 1.244 GB, free: 6.871 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.0005412/0.2657, allocations: 393 kB / 1.244 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.2657, allocations: 12.03 kB / 1.244 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.395e-05/0.2658, allocations: 34.73 kB / 1.244 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.2658, allocations: 8.891 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.2659, allocations: 176.2 kB / 1.244 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.266, allocations: 4.375 kB / 1.244 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.266, allocations: 8.312 kB / 1.244 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.2661, allocations: 53.8 kB / 1.245 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.2661, allocations: 0 / 1.245 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.2661, allocations: 4 kB / 1.245 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.2661, allocations: 0 / 1.245 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.203e-05/0.2662, allocations: 23.98 kB / 1.245 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003623/0.2665, allocations: 272.8 kB / 1.245 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.922e-05/0.2666, allocations: 38.56 kB / 1.245 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.767e-05/0.2667, allocations: 24.98 kB / 1.245 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.2667, allocations: 0 / 1.245 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.2669, allocations: 105 kB / 1.245 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.2669, allocations: 0 / 1.245 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0002599/0.2671, allocations: 139.3 kB / 1.245 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.2672, allocations: 81.11 kB / 1.245 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.416e-05/0.2673, allocations: 113.8 kB / 1.245 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.2673, allocations: 29.7 kB / 1.245 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.559e-05/0.2674, allocations: 80.14 kB / 1.245 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.2674, allocations: 23.91 kB / 1.245 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.2674, allocations: 33.64 kB / 1.245 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2676, allocations: 322.8 kB / 1.246 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.426e-05/0.2676, allocations: 15.98 kB / 1.246 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.752e-05/0.2677, allocations: 38.56 kB / 1.246 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.2678, allocations: 114.3 kB / 1.246 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2678, allocations: 4 kB / 1.246 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001527/0.2679, allocations: 127.3 kB / 1.246 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.336e-05/0.268, allocations: 33.7 kB / 1.246 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.268, allocations: 0 / 1.246 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.268, allocations: 384 / 1.246 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.365e-05/0.268, allocations: 4 kB / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.268, allocations: 4 kB / 1.246 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.716e-05/0.2681, allocations: 7.984 kB / 1.246 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.2681, allocations: 7.938 kB / 1.246 GB, free: 4.281 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.0001026/0.2682, allocations: 151.5 kB / 1.246 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.2683, allocations: 19.88 kB / 1.246 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.193e-05/0.2683, allocations: 8.375 kB / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.2683, allocations: 0 / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2683, allocations: 0 / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2683, allocations: 64 / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/0.2687, allocations: 404.1 kB / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2687, allocations: 0 / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.164e-06/0.2687, allocations: 3.938 kB / 1.247 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2687, allocations: 8 kB / 1.247 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.2687, allocations: 4 kB / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2687, allocations: 3.984 kB / 1.247 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.2687, allocations: 3.938 kB / 1.247 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.2689, allocations: 229.1 kB / 1.247 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.269, allocations: 85.06 kB / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.269, allocations: 0 / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.654e-05/0.2691, allocations: 15.98 kB / 1.247 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.207e-05/0.2692, allocations: 7.938 kB / 1.247 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.2692, allocations: 7.984 kB / 1.247 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.638e-05/0.2692, allocations: 87.28 kB / 1.247 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.2692, allocations: 0 / 1.247 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002111/0.2695, allocations: 12 kB / 1.247 GB, free: 3.133 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.0004974/0.27, allocations: 0.779 MB / 1.248 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001632/0.2701, allocations: 111.3 kB / 1.248 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2701, allocations: 0 / 1.248 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.186e-05/0.2702, allocations: 87.39 kB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.2705, allocations: 15.92 kB / 1.248 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.2717, allocations: 1.431 MB / 1.249 GB, free: 0.5586 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.272, allocations: 0.6846 MB / 1.25 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.613e-05/0.272, allocations: 4 kB / 1.25 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.004e-05/0.2721, allocations: 19.42 kB / 1.25 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.2721, allocations: 0 / 1.25 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.097/1.369, allocations: 1.889 MB / 1.252 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.364/9.733, allocations: 8.047 kB / 1.252 GB, free: 14.03 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=400 --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