Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001752/0.001752, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002094/0.002094, allocations: 217.2 kB / 22.25 MB, free: 5.105 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.488/1.488, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.237/3.237, allocations: 0.49 GB / 0.7951 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",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.002042/0.002042, allocations: 66.14 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3878, allocations: 176.1 MB / 1.326 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001909/0.3897, allocations: 0.669 MB / 1.326 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001445/0.3912, allocations: 1.081 MB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.405e-05/0.3912, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.861e-05/0.3912, allocations: 3.938 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.901e-05/0.3913, allocations: 7.922 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.3916, allocations: 51.84 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.3917, allocations: 43.84 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.307e-05/0.3918, allocations: 11.98 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.638e-05/0.3918, allocations: 23.92 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.06e-05/0.3919, allocations: 19.92 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.3919, allocations: 4 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.392, allocations: 19.98 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.462e-05/0.392, allocations: 15.91 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.661e-05/0.392, allocations: 19.94 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.3922, allocations: 60.06 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3922, allocations: 0 / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3922, allocations: 4 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.3922, allocations: 0 / 1.328 GB, free: 15.51 MB / 1.029 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.0005229/0.3927, allocations: 282.2 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3927, allocations: 12.03 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.198e-05/0.3928, allocations: 38.73 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.3929, allocations: 4.938 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.393, allocations: 118.4 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-06/0.393, allocations: 4.312 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.393, allocations: 8.375 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.3932, allocations: 62.22 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.3932, allocations: 15.86 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3932, allocations: 4 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3932, allocations: 0 / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.3934, allocations: 39.95 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004849/0.3939, allocations: 243.9 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.3941, allocations: 54.55 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.3942, allocations: 28.95 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.3942, allocations: 4 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.3944, allocations: 67.39 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.3944, allocations: 0 / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004605/0.3949, allocations: 121.5 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.3949, allocations: 59.48 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.797e-05/0.395, allocations: 113.8 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.3951, allocations: 25.7 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.3951, allocations: 92.12 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.3952, allocations: 11.84 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.3952, allocations: 25.72 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3954, allocations: 318.8 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.3955, allocations: 23.98 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.3956, allocations: 64.2 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/0.3959, allocations: 92.19 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3959, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003088/0.3962, allocations: 113.7 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3962, allocations: 7.938 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3962, allocations: 0 / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.3962, allocations: 4 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3963, allocations: 15.98 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/0.3963, allocations: 0 / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.451e-05/0.3964, allocations: 11.98 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.3964, allocations: 4 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$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): 9 * Array equations: 0 * Algorithm blocks: 0 * 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.0001164/0.3965, allocations: 120.3 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.685e-05/0.3966, allocations: 11.98 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003142/0.3969, allocations: 110.2 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.3969, allocations: 3.938 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3969, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.3969, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004957/0.3974, allocations: 321.7 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3974, allocations: 4 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.112e-05/0.3974, allocations: 15.92 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3974, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.3975, allocations: 4 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3975, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3975, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003171/0.3978, allocations: 191.4 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.112e-05/0.3978, allocations: 11.92 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.3978, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.645e-05/0.3979, allocations: 4 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.3979, allocations: 15.92 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.3979, allocations: 0 / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.925e-05/0.398, allocations: 87.27 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.398, allocations: 4 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002504/0.3982, allocations: 15.95 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0008231/0.3991, allocations: 0.7164 MB / 1.331 GB, free: 11.51 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003542/0.3994, allocations: 71.89 kB / 1.331 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3994, allocations: 0 / 1.331 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.3996, allocations: 32.16 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.4, allocations: 8.062 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.4018, allocations: 1.42 MB / 1.333 GB, free: 9.875 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.254e-05/0.4019, allocations: 71.25 kB / 1.333 GB, free: 9.785 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.237e-05/0.4019, allocations: 3.984 kB / 1.333 GB, free: 9.781 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.4019, allocations: 19.42 kB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of SimCode: time 5.11e-07/0.4019, allocations: 0 / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.4314, allocations: 2.367 MB / 1.335 GB, free: 7.531 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.64, allocations: 18.48 kB / 1.335 GB, free: 7.516 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.536423789017135]