Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001613/0.001613, allocations: 113.5 kB / 17.13 MB, free: 5.926 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.001643/0.001643, allocations: 206.5 kB / 20.09 MB, free: 2.977 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.496/1.496, allocations: 230.6 MB / 253.5 MB, free: 15.1 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 2.893/2.893, allocations: 0.49 GB / 0.7923 GB, free: 1.328 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_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_12_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.002025/0.002025, allocations: 67.89 kB / 1.15 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.085/1.087, allocations: 176.1 MB / 1.322 GB, free: 25.02 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001679/1.089, allocations: 0.6759 MB / 1.323 GB, free: 24.6 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001044/1.09, allocations: 1.113 MB / 1.324 GB, free: 23.78 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.135e-05/1.09, allocations: 2.281 kB / 1.324 GB, free: 23.78 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.445e-05/1.09, allocations: 0 / 1.324 GB, free: 23.78 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.382e-05/1.09, allocations: 7.875 kB / 1.324 GB, free: 23.77 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/1.09, allocations: 51.31 kB / 1.324 GB, free: 23.75 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.255e-05/1.09, allocations: 47.28 kB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.092e-05/1.09, allocations: 10.83 kB / 1.324 GB, free: 23.72 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.445e-05/1.09, allocations: 22.22 kB / 1.324 GB, free: 23.71 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.182e-05/1.09, allocations: 23.8 kB / 1.324 GB, free: 23.7 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/1.09, allocations: 6.781 kB / 1.324 GB, free: 23.7 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.572e-05/1.09, allocations: 29 kB / 1.324 GB, free: 23.69 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.661e-05/1.091, allocations: 11.92 kB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.275e-05/1.091, allocations: 21.08 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/1.091, allocations: 72.36 kB / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/1.091, allocations: 0 / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.813e-06/1.091, allocations: 0 / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.819e-06/1.091, allocations: 0 / 1.324 GB, free: 23.64 MB / 1.061 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.0005174/1.091, allocations: 369.9 kB / 1.324 GB, free: 23.27 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/1.091, allocations: 12.33 kB / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.686e-05/1.091, allocations: 10.48 kB / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.28e-05/1.091, allocations: 171.8 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.537e-06/1.091, allocations: 3.281 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/1.091, allocations: 7.031 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/1.092, allocations: 67.91 kB / 1.325 GB, free: 23.01 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/1.092, allocations: 192 / 1.325 GB, free: 23.01 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/1.092, allocations: 3.938 kB / 1.325 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/1.092, allocations: 4 kB / 1.325 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/1.092, allocations: 45.75 kB / 1.325 GB, free: 22.99 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003738/1.092, allocations: 276.1 kB / 1.325 GB, free: 22.71 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/1.092, allocations: 57.5 kB / 1.325 GB, free: 22.67 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.215e-05/1.092, allocations: 34.17 kB / 1.325 GB, free: 22.66 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/1.092, allocations: 4 kB / 1.325 GB, free: 22.65 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/1.093, allocations: 69.78 kB / 1.325 GB, free: 22.6 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/1.093, allocations: 3.938 kB / 1.325 GB, free: 22.6 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0003973/1.093, allocations: 132.7 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/1.093, allocations: 54 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.278e-05/1.093, allocations: 104.9 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/1.093, allocations: 25.7 kB / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.795e-05/1.093, allocations: 94.25 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/1.093, allocations: 22.61 kB / 1.325 GB, free: 22.23 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/1.093, allocations: 22.58 kB / 1.326 GB, free: 22.21 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.886e-05/1.093, allocations: 317.3 kB / 1.326 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.908e-05/1.093, allocations: 28.86 kB / 1.326 GB, free: 21.89 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/1.093, allocations: 60.3 kB / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/1.094, allocations: 100.1 kB / 1.326 GB, free: 21.77 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/1.094, allocations: 2.719 kB / 1.326 GB, free: 21.77 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000254/1.094, allocations: 113.5 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/1.094, allocations: 5.719 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/1.094, allocations: 4 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/1.094, allocations: 2.938 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/1.094, allocations: 20.8 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/1.094, allocations: 7.875 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.821e-05/1.094, allocations: 12.81 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/1.094, allocations: 5.469 kB / 1.326 GB, free: 21.7 MB / 1.061 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 6.584e-05/1.094, allocations: 120.2 kB / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/1.094, allocations: 2.906 kB / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000264/1.094, allocations: 113.6 kB / 1.326 GB, free: 21.51 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/1.094, allocations: 2.562 kB / 1.326 GB, free: 21.51 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/1.094, allocations: 0 / 1.326 GB, free: 21.51 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/1.094, allocations: 0 / 1.326 GB, free: 21.51 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003549/1.095, allocations: 362.3 kB / 1.327 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/1.095, allocations: 0 / 1.327 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.065e-05/1.095, allocations: 16.83 kB / 1.327 GB, free: 21.17 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/1.095, allocations: 3.281 kB / 1.327 GB, free: 21.17 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-06/1.095, allocations: 3.938 kB / 1.327 GB, free: 21.17 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/1.095, allocations: 4 kB / 1.327 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/1.095, allocations: 0 / 1.327 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/1.095, allocations: 201.3 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.995e-05/1.095, allocations: 91.27 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/1.095, allocations: 0 / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.547e-05/1.095, allocations: 8.828 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/1.095, allocations: 2.812 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/1.095, allocations: 10.16 kB / 1.327 GB, free: 20.9 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.177e-05/1.095, allocations: 82.22 kB / 1.327 GB, free: 20.82 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.095, allocations: 2.844 kB / 1.327 GB, free: 20.82 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002393/1.096, allocations: 15.53 kB / 1.327 GB, free: 20.82 MB / 1.061 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.0001216/1.096, allocations: 108.6 kB / 1.327 GB, free: 20.73 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002612/1.096, allocations: 74.09 kB / 1.327 GB, free: 20.71 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/1.096, allocations: 0 / 1.327 GB, free: 20.71 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/1.096, allocations: 29.38 kB / 1.327 GB, free: 20.7 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/1.096, allocations: 9 kB / 1.327 GB, free: 20.7 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003303/1.097, allocations: 176.3 kB / 1.328 GB, free: 20.53 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/1.097, allocations: 0.6854 MB / 1.328 GB, free: 19.84 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/1.097, allocations: 9.875 kB / 1.328 GB, free: 19.83 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/1.097, allocations: 0 / 1.328 GB, free: 19.83 MB / 1.061 GB Notification: Performance of Templates: time 0.00266/1.099, allocations: 0.9107 MB / 1.329 GB, free: 19.75 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.49209027600591]