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.001815/0.001815, allocations: 106.7 kB / 16.45 MB, free: 6.453 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.002362/0.002362, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.499/1.499, allocations: 230.6 MB / 252.8 MB, free: 8.984 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.232/3.232, allocations: 0.49 GB / 0.7916 GB, free: 33.27 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.002087/0.002087, allocations: 76.45 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3809, allocations: 176.1 MB / 1.321 GB, free: 3.363 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002089/0.383, allocations: 0.6765 MB / 1.321 GB, free: 2.688 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3846, allocations: 1.097 MB / 1.323 GB, free: 1.578 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.453e-05/0.3847, allocations: 0 / 1.323 GB, free: 1.578 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/0.3847, allocations: 7.922 kB / 1.323 GB, free: 1.57 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.194e-05/0.3848, allocations: 7.938 kB / 1.323 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.3851, allocations: 51.83 kB / 1.323 GB, free: 1.512 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.3852, allocations: 35.92 kB / 1.323 GB, free: 1.477 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.019e-05/0.3853, allocations: 11.98 kB / 1.323 GB, free: 1.465 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.012e-05/0.3853, allocations: 15.94 kB / 1.323 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.024e-05/0.3854, allocations: 27.91 kB / 1.323 GB, free: 1.422 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.3854, allocations: 7.984 kB / 1.323 GB, free: 1.414 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.087e-05/0.3855, allocations: 19.98 kB / 1.323 GB, free: 1.395 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.3855, allocations: 11.88 kB / 1.323 GB, free: 1.383 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.161e-05/0.3856, allocations: 23.92 kB / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001674/0.3857, allocations: 67.94 kB / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3857, allocations: 4 kB / 1.323 GB, free: 1.289 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3857, allocations: 0 / 1.323 GB, free: 1.289 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.952e-06/0.3857, allocations: 0 / 1.323 GB, free: 1.289 MB / 1.014 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.0005766/0.3863, allocations: 363.3 kB / 1.323 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.3864, allocations: 15.98 kB / 1.323 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.093e-05/0.3864, allocations: 30.75 kB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.436e-05/0.3865, allocations: 8.922 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.3867, allocations: 168.3 kB / 1.323 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.3867, allocations: 12.38 kB / 1.323 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.3867, allocations: 4.375 kB / 1.323 GB, free: 0.6016 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.3869, allocations: 66.16 kB / 1.323 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3869, allocations: 7.938 kB / 1.323 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.3869, allocations: 0 / 1.323 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.387, allocations: 0 / 1.323 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.3872, allocations: 39.95 kB / 1.323 GB, free: 496 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00057/0.3877, allocations: 288.8 kB / 1.324 GB, free: 156 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.3879, allocations: 54.48 kB / 1.324 GB, free: 92 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.388, allocations: 24.97 kB / 1.324 GB, free: 64 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.3881, allocations: 4 kB / 1.324 GB, free: 60 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.3884, allocations: 75.53 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.413e-06/0.3884, allocations: 0 / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004659/0.3888, allocations: 117.6 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.3889, allocations: 59.34 kB / 1.324 GB, free: 15.78 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.389, allocations: 109.8 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.389, allocations: 33.64 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/0.3891, allocations: 84.14 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.3891, allocations: 23.83 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.896e-05/0.3892, allocations: 25.72 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3894, allocations: 322.8 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.3895, allocations: 23.98 kB / 1.325 GB, free: 15.13 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.3896, allocations: 60.27 kB / 1.325 GB, free: 15.06 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.3899, allocations: 88.19 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3899, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00032/0.3902, allocations: 113.5 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3902, allocations: 4 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.3902, allocations: 4.188 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3903, allocations: 0 / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.3904, allocations: 24.06 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.978e-06/0.3904, allocations: 7.938 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.734e-05/0.3905, allocations: 8 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.3905, allocations: 4 kB / 1.325 GB, free: 14.79 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.0001221/0.3906, allocations: 123.3 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.3906, allocations: 3.953 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003054/0.3909, allocations: 102 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3909, allocations: 11.92 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.3909, allocations: 0 / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.391, allocations: 0 / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005473/0.3915, allocations: 354.7 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3915, allocations: 0 / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.54e-05/0.3916, allocations: 8 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3916, allocations: 0 / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.3916, allocations: 3.984 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.3916, allocations: 8 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3916, allocations: 3.938 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/0.3919, allocations: 191.4 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.227e-05/0.392, allocations: 85 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.392, allocations: 3.984 kB / 1.326 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.549e-05/0.3921, allocations: 8 kB / 1.326 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.3922, allocations: 15.92 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.3922, allocations: 0 / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.994e-05/0.3922, allocations: 91.22 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3922, allocations: 0 / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002625/0.3925, allocations: 11.98 kB / 1.326 GB, free: 13.68 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.0006904/0.3932, allocations: 0.728 MB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002768/0.3934, allocations: 63.89 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3935, allocations: 0 / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3936, allocations: 27.97 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.3939, allocations: 16.25 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.3957, allocations: 1.419 MB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.3961, allocations: 0.6846 MB / 1.329 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.89e-05/0.3961, allocations: 4 kB / 1.329 GB, free: 10.58 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.3962, allocations: 15.44 kB / 1.329 GB, free: 10.57 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/0.3962, allocations: 0 / 1.329 GB, free: 10.57 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.422, allocations: 1.79 MB / 1.331 GB, free: 8.875 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.541, allocations: 11.92 kB / 1.331 GB, free: 8.863 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.235048996983096]