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.001267/0.001267, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.212/1.212, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.457/2.457, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 61.61 kB / 0.9083 GB, free: 34.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2581, allocations: 159.1 MB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002444/0.2606, allocations: 1.427 MB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006671/0.2613, allocations: 444.7 kB / 1.065 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.068e-05/0.2614, allocations: 0 / 1.065 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.17e-05/0.2614, allocations: 0 / 1.065 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.973e-05/0.2615, allocations: 7.875 kB / 1.065 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001396/0.2616, allocations: 23.91 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.2618, allocations: 51.84 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.71e-05/0.2618, allocations: 8 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.053e-05/0.2619, allocations: 27.86 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.783e-05/0.262, allocations: 19.92 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.725e-05/0.262, allocations: 4 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.195e-05/0.262, allocations: 4 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.43e-05/0.262, allocations: 11.92 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.369e-05/0.2621, allocations: 19.92 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.2622, allocations: 36.11 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2622, allocations: 4 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2622, allocations: 0 / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.2622, allocations: 0 / 1.066 GB, free: 12.37 MB / 0.8262 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.0005226/0.2627, allocations: 393.1 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.2628, allocations: 12.03 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.888e-05/0.2628, allocations: 38.67 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.099e-05/0.2629, allocations: 12.84 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.263, allocations: 176.2 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.136e-06/0.263, allocations: 384 / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.263, allocations: 4.375 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.2631, allocations: 61.8 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.2631, allocations: 0 / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.2631, allocations: 0 / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.2631, allocations: 0 / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.318e-05/0.2632, allocations: 19.94 kB / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003383/0.2635, allocations: 272.8 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.112e-05/0.2636, allocations: 38.58 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.374e-05/0.2637, allocations: 20.97 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.2637, allocations: 4 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.2639, allocations: 97.03 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.2639, allocations: 0 / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002453/0.2641, allocations: 143.6 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.2642, allocations: 85.05 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.2642, allocations: 113.8 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.2643, allocations: 37.62 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.773e-05/0.2643, allocations: 84.14 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.2643, allocations: 11.81 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.2644, allocations: 29.7 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 7.993e-05/0.2645, allocations: 318.8 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.385e-05/0.2645, allocations: 19.98 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.355e-05/0.2646, allocations: 42.5 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.622e-05/0.2646, allocations: 106.3 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2647, allocations: 4 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001453/0.2648, allocations: 131.2 kB / 1.068 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.2648, allocations: 37.69 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2648, allocations: 0 / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.2649, allocations: 0 / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.004e-05/0.2649, allocations: 8.062 kB / 1.068 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.2649, allocations: 0 / 1.068 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.484e-05/0.265, allocations: 11.92 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.265, allocations: 8 kB / 1.068 GB, free: 9.773 MB / 0.8262 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.32e-05/0.2651, allocations: 153.2 kB / 1.068 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.637e-05/0.2651, allocations: 7.906 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.492e-05/0.2652, allocations: 8.375 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2652, allocations: 7.984 kB / 1.068 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2652, allocations: 4 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.2652, allocations: 3.984 kB / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.2655, allocations: 396.2 kB / 1.068 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.2655, allocations: 4.062 kB / 1.068 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.454e-06/0.2655, allocations: 0 / 1.068 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2655, allocations: 0 / 1.068 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.2656, allocations: 4 kB / 1.068 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2656, allocations: 0 / 1.068 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.2656, allocations: 3.938 kB / 1.068 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.2658, allocations: 241.1 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.2658, allocations: 81.09 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.2658, allocations: 8 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.769e-05/0.2659, allocations: 4 kB / 1.069 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.001e-05/0.266, allocations: 11.92 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.266, allocations: 4 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.097e-05/0.266, allocations: 91.27 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.266, allocations: 4 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002333/0.2663, allocations: 19.91 kB / 1.069 GB, free: 8.621 MB / 0.8262 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.000405/0.2667, allocations: 0.7537 MB / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001565/0.2669, allocations: 123.2 kB / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2669, allocations: 0 / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.278e-05/0.2669, allocations: 91.52 kB / 1.07 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.2672, allocations: 21.8 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.2683, allocations: 1.414 MB / 1.071 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.2685, allocations: 0.6846 MB / 1.072 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.709e-05/0.2686, allocations: 3.984 kB / 1.072 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.2686, allocations: 15.44 kB / 1.072 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.2686, allocations: 288 / 1.072 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.2855, allocations: 1.863 MB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.552/6.837, allocations: 11.92 kB / 1.074 GB, free: 3.539 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --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