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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.005066/0.005066, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001403/0.001403, allocations: 194 kB / 16.67 MB, free: 5.969 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.232/1.232, 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 10.1.1-maint.10.0.x/package.mo): time 2.476/2.476, allocations: 437.1 MB / 0.7106 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.001741, allocations: 71.88 kB / 1.018 GB, free: 9.926 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6204/0.6221, allocations: 151.6 MB / 1.166 GB, free: 3.762 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002282/0.6244, allocations: 1.426 MB / 1.168 GB, free: 2.328 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006605/0.6251, allocations: 431 kB / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.882e-05/0.6252, allocations: 0 / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.681e-05/0.6252, allocations: 11.86 kB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.983e-05/0.6253, allocations: 15.94 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001274/0.6254, allocations: 15.92 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.6255, allocations: 59.83 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 6.717e-05/0.6256, allocations: 4 kB / 1.168 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.438e-05/0.6257, allocations: 19.92 kB / 1.168 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.566e-05/0.6257, allocations: 23.86 kB / 1.168 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.6258, allocations: 4 kB / 1.168 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.205e-05/0.6258, allocations: 4 kB / 1.168 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.117e-05/0.6258, allocations: 11.94 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.906e-05/0.6258, allocations: 19.92 kB / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.736e-05/0.6259, allocations: 42.55 kB / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.626, allocations: 3.938 kB / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.232e-06/0.626, allocations: 3.938 kB / 1.168 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.798e-06/0.626, allocations: 0 / 1.168 GB, free: 1.668 MB / 0.8887 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.000537/0.6265, allocations: 398 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.6265, allocations: 12.62 kB / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.96e-05/0.6266, allocations: 34.75 kB / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.6266, allocations: 8.875 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.6267, allocations: 176.3 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.6268, allocations: 4.375 kB / 1.169 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.6268, allocations: 4.312 kB / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.6269, allocations: 57.8 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.6269, allocations: 0 / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.6269, allocations: 4 kB / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.6269, allocations: 0 / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.579e-05/0.627, allocations: 16 kB / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003501/0.6273, allocations: 280.8 kB / 1.169 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 7.933e-05/0.6274, allocations: 42.52 kB / 1.169 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.6275, allocations: 20.97 kB / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.6275, allocations: 0 / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001622/0.6276, allocations: 101.1 kB / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=9): time 1.143e-06/0.6277, allocations: 0 / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of matching and sorting (n=9): time 0.0002503/0.6279, allocations: 143.3 kB / 1.169 GB, free: 200 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.628, allocations: 81.11 kB / 1.169 GB, free: 100 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.95e-05/0.6281, allocations: 105.8 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.6281, allocations: 29.7 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.386e-05/0.6281, allocations: 88.12 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.6282, allocations: 19.97 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.6282, allocations: 33.7 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.6283, allocations: 314.8 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.33e-05/0.6284, allocations: 15.98 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.425e-05/0.6284, allocations: 38.8 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.6285, allocations: 110.4 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.6285, allocations: 4 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001533/0.6287, allocations: 135.3 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.6287, allocations: 37.62 kB / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.6287, allocations: 4 kB / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.6288, allocations: 0 / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.739e-05/0.6288, allocations: 8 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.6288, allocations: 4 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.83e-05/0.6289, allocations: 7.984 kB / 1.17 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.6289, allocations: 4 kB / 1.17 GB, free: 15.07 MB / 0.9044 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.0001028/0.629, allocations: 159.5 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.655e-05/0.629, allocations: 7.953 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.977e-05/0.629, allocations: 4.375 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.6291, allocations: 0 / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.6291, allocations: 7.984 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.6291, allocations: 0 / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003762/0.6294, allocations: 396.1 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.6295, allocations: 4 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-06/0.6295, allocations: 4 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.6295, allocations: 0 / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.6295, allocations: 4 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.6295, allocations: 7.938 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.6295, allocations: 3.938 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.6297, allocations: 225.2 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.227e-05/0.6298, allocations: 85.05 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.6298, allocations: 4 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.816e-05/0.6299, allocations: 12 kB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-05/0.6299, allocations: 15.91 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.63, allocations: 4 kB / 1.171 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.998e-05/0.63, allocations: 91.2 kB / 1.171 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.9e-07/0.63, allocations: 0 / 1.171 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000216/0.6302, allocations: 20 kB / 1.171 GB, free: 13.92 MB / 0.9044 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.0004715/0.6307, allocations: 0.7687 MB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001575/0.6309, allocations: 111.4 kB / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6309, allocations: 0 / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.334e-05/0.631, allocations: 99.27 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.6312, allocations: 11.94 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.6325, allocations: 1.421 MB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.6327, allocations: 0.689 MB / 1.174 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.377e-05/0.6328, allocations: 7.938 kB / 1.174 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.6328, allocations: 11.44 kB / 1.174 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.6328, allocations: 0 / 1.174 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.431/2.063, allocations: 1.886 MB / 1.176 GB, free: 8.828 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.04/20.1, allocations: 4.844 kB / 1.176 GB, free: 8.824 MB / 0.9044 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=400 --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