Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 220.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.81/2.81, allocations: 476.7 MB / 0.7707 GB, free: 4.254 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 64.56 kB / 1.117 GB, free: 39.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3502, allocations: 170 MB / 1.283 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003487/0.3537, allocations: 1.463 MB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.3547, allocations: 476.6 kB / 1.285 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.924e-05/0.3548, allocations: 0 / 1.285 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.3548, allocations: 0 / 1.285 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.3549, allocations: 15.88 kB / 1.285 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.3551, allocations: 15.98 kB / 1.285 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000169/0.3553, allocations: 55.78 kB / 1.285 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.3554, allocations: 3.984 kB / 1.285 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.894e-05/0.3555, allocations: 31.86 kB / 1.285 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.553e-05/0.3556, allocations: 15.92 kB / 1.285 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.3556, allocations: 4 kB / 1.285 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.721e-05/0.3556, allocations: 4 kB / 1.285 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.788e-05/0.3556, allocations: 7.984 kB / 1.285 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.197e-05/0.3557, allocations: 19.88 kB / 1.285 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.3559, allocations: 47.33 kB / 1.285 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3559, allocations: 11.94 kB / 1.285 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3559, allocations: 0 / 1.285 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3559, allocations: 0 / 1.285 GB, free: 9.414 MB / 0.9825 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.0006805/0.3566, allocations: 317.9 kB / 1.286 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.3566, allocations: 8.031 kB / 1.286 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.22e-05/0.3567, allocations: 42.73 kB / 1.286 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.3567, allocations: 4.875 kB / 1.286 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.3568, allocations: 114.5 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.3568, allocations: 4.375 kB / 1.286 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.3569, allocations: 8.375 kB / 1.286 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.357, allocations: 49.8 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.357, allocations: 4 kB / 1.286 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.357, allocations: 0 / 1.286 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.357, allocations: 3.938 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.399e-05/0.3571, allocations: 16 kB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004754/0.3576, allocations: 247.9 kB / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.116e-05/0.3577, allocations: 38.58 kB / 1.286 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.852e-05/0.3577, allocations: 16.97 kB / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.3577, allocations: 4 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.358, allocations: 101 kB / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.358, allocations: 0 / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003223/0.3583, allocations: 139.3 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.3584, allocations: 85.11 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.3585, allocations: 113.9 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.3585, allocations: 33.69 kB / 1.287 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.986e-05/0.3586, allocations: 88.16 kB / 1.287 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.3586, allocations: 19.84 kB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-05/0.3586, allocations: 29.7 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.3588, allocations: 318.8 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.377e-05/0.3588, allocations: 19.98 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.19e-05/0.3589, allocations: 34.86 kB / 1.287 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.359, allocations: 117.9 kB / 1.287 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.359, allocations: 96 / 1.287 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001828/0.3592, allocations: 127.2 kB / 1.287 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.733e-05/0.3592, allocations: 37.75 kB / 1.287 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3592, allocations: 4 kB / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.3593, allocations: 0 / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.404e-05/0.3593, allocations: 4 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3593, allocations: 0 / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.662e-05/0.3594, allocations: 15.92 kB / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.3594, allocations: 3.938 kB / 1.288 GB, free: 7.027 MB / 0.9825 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.0001312/0.3595, allocations: 151.5 kB / 1.288 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.3596, allocations: 7.953 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.411e-05/0.3596, allocations: 12.38 kB / 1.288 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3596, allocations: 0 / 1.288 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3596, allocations: 3.984 kB / 1.288 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3596, allocations: 3.984 kB / 1.288 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004705/0.3601, allocations: 375.2 kB / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3601, allocations: 0 / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.646e-06/0.3601, allocations: 0 / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3601, allocations: 4 kB / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-06/0.3601, allocations: 0 / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3601, allocations: 0 / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.3601, allocations: 7.938 kB / 1.288 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.3604, allocations: 229.1 kB / 1.288 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.071e-05/0.3604, allocations: 15.89 kB / 1.288 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.3604, allocations: 7.984 kB / 1.288 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.3605, allocations: 4 kB / 1.288 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.763e-05/0.3605, allocations: 11.92 kB / 1.288 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.3606, allocations: 4 kB / 1.288 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.97e-05/0.3606, allocations: 95.25 kB / 1.288 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3606, allocations: 0 / 1.288 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002533/0.3609, allocations: 16 kB / 1.288 GB, free: 6 MB / 0.9825 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.0005707/0.3614, allocations: 0.7609 MB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002079/0.3617, allocations: 111.3 kB / 1.289 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3617, allocations: 0 / 1.289 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.228e-05/0.3617, allocations: 87.33 kB / 1.289 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.3621, allocations: 19.92 kB / 1.289 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.3635, allocations: 1.417 MB / 1.291 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.3638, allocations: 0.6885 MB / 1.291 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.803e-05/0.3639, allocations: 4 kB / 1.291 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.962e-05/0.3639, allocations: 23.42 kB / 1.291 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of SimCode: time 4.91e-07/0.3639, allocations: 0 / 1.291 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02994/0.3938, allocations: 2.049 MB / 1.293 GB, free: 0.8008 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.93, allocations: 5.875 kB / 1.293 GB, free: 0.7969 MB / 0.9825 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.494289375841618]