Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.002079/0.002079, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.003392/0.003392, allocations: 211.1 kB / 22.24 MB, free: 4.855 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.565/1.565, allocations: 230.6 MB / 256 MB, free: 7.793 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.946/2.946, allocations: 476 MB / 0.7699 GB, free: 4.77 MB / 0.6231 GB " [Timeout remaining time 176] 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [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.002232/0.002232, allocations: 71.83 kB / 1.117 GB, free: 41.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.4119, allocations: 170 MB / 1.283 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002698/0.4146, allocations: 0.6678 MB / 1.284 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002152/0.4167, allocations: 1.09 MB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.746e-05/0.4168, allocations: 0 / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.179e-05/0.4168, allocations: 3.938 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.438e-05/0.4169, allocations: 7.922 kB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.4173, allocations: 39.84 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000147/0.4175, allocations: 55.83 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.4176, allocations: 15.94 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.642e-05/0.4177, allocations: 19.92 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.937e-05/0.4177, allocations: 23.91 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.4178, allocations: 8 kB / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.548e-05/0.4178, allocations: 19.94 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.4179, allocations: 15.97 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.872e-05/0.4179, allocations: 15.92 kB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.4181, allocations: 67.72 kB / 1.285 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4181, allocations: 0 / 1.285 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.294e-06/0.4181, allocations: 0 / 1.285 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.782e-06/0.4181, allocations: 0 / 1.285 GB, free: 9.961 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006692/0.4187, allocations: 290.2 kB / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.4188, allocations: 20.02 kB / 1.285 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.172e-05/0.4189, allocations: 8.891 kB / 1.285 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.419, allocations: 114.4 kB / 1.285 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.419, allocations: 4.375 kB / 1.285 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.419, allocations: 4.375 kB / 1.285 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.4192, allocations: 62.22 kB / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.4192, allocations: 192 / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.4193, allocations: 7.938 kB / 1.285 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.4193, allocations: 0 / 1.285 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.4195, allocations: 47.95 kB / 1.286 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.42, allocations: 220.4 kB / 1.286 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.4202, allocations: 50.55 kB / 1.286 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.4203, allocations: 40.84 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.4203, allocations: 3.984 kB / 1.286 GB, free: 9 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.4206, allocations: 75.38 kB / 1.286 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.4206, allocations: 4 kB / 1.286 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004867/0.4211, allocations: 121.6 kB / 1.286 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.4211, allocations: 55.39 kB / 1.286 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.4212, allocations: 105.8 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.4213, allocations: 33.7 kB / 1.286 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.4214, allocations: 84.12 kB / 1.286 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.4214, allocations: 23.91 kB / 1.286 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.4214, allocations: 25.7 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4216, allocations: 318.8 kB / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.4217, allocations: 27.97 kB / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.4219, allocations: 60.2 kB / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.4221, allocations: 88.2 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.4221, allocations: 8.25 kB / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003017/0.4224, allocations: 117.7 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.4224, allocations: 4 kB / 1.287 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.4224, allocations: 7.938 kB / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.4225, allocations: 7.984 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.4226, allocations: 19.92 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.4226, allocations: 128 / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.229e-05/0.4227, allocations: 12 kB / 1.287 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.4227, allocations: 4 kB / 1.287 GB, free: 7.719 MB / 0.9825 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001049/0.4228, allocations: 121.8 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.322e-05/0.4228, allocations: 3.953 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003056/0.4231, allocations: 114 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.4231, allocations: 4.031 kB / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4231, allocations: 0 / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4231, allocations: 0 / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.4236, allocations: 306.1 kB / 1.288 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4236, allocations: 0 / 1.288 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.673e-05/0.4236, allocations: 11.98 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4236, allocations: 0 / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.4237, allocations: 4 kB / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4237, allocations: 3.938 kB / 1.288 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4237, allocations: 0 / 1.288 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.424, allocations: 203.4 kB / 1.288 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.37e-05/0.424, allocations: 7.938 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.424, allocations: 4 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.4241, allocations: 7.984 kB / 1.288 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.4242, allocations: 4 kB / 1.288 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.4242, allocations: 3.984 kB / 1.288 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.631e-05/0.4242, allocations: 91.22 kB / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4242, allocations: 0 / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002607/0.4245, allocations: 11.95 kB / 1.288 GB, free: 6.762 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001758/0.4247, allocations: 111.2 kB / 1.288 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.425, allocations: 71.81 kB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.425, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.4251, allocations: 35.97 kB / 1.288 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.4254, allocations: 5.875 kB / 1.288 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.4258, allocations: 142.3 kB / 1.288 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.745e-05/0.4259, allocations: 71.34 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.426e-05/0.4259, allocations: 4 kB / 1.288 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.4259, allocations: 15.42 kB / 1.288 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.4259, allocations: 0 / 1.288 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of Templates: time 0.003861/0.4298, allocations: 0.8885 MB / 1.289 GB, free: 5.395 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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: 9.664602247998118]