Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 110.6 kB / 17.08 MB, free: 5.984 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 191.7 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 245.7 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.238/3.238, allocations: 489.3 MB / 0.7687 GB, free: 3.738 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 71.88 kB / 1.103 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.118/1.12, allocations: 163.8 MB / 1.263 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.0021/1.123, allocations: 0.6812 MB / 1.263 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001522/1.124, allocations: 1.067 MB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.567e-05/1.124, allocations: 0.6875 kB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.966e-05/1.124, allocations: 3.938 kB / 1.264 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.404e-05/1.124, allocations: 5.75 kB / 1.264 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003405/1.125, allocations: 46.61 kB / 1.264 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001297/1.125, allocations: 43.39 kB / 1.264 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/1.125, allocations: 15.17 kB / 1.264 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.603e-05/1.125, allocations: 23.08 kB / 1.264 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.344e-05/1.125, allocations: 29.38 kB / 1.264 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/1.125, allocations: 3.438 kB / 1.264 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.144e-05/1.125, allocations: 22.97 kB / 1.264 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/1.125, allocations: 8.25 kB / 1.264 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.417e-05/1.125, allocations: 24.61 kB / 1.264 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001817/1.126, allocations: 55.03 kB / 1.265 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/1.126, allocations: 0 / 1.265 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.445e-06/1.126, allocations: 0.6875 kB / 1.265 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.482e-06/1.126, allocations: 4 kB / 1.265 GB, free: 6.652 MB / 0.9981 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.0006091/1.126, allocations: 365.9 kB / 1.265 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/1.126, allocations: 9.656 kB / 1.265 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/1.126, allocations: 7.5 kB / 1.265 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.897e-05/1.126, allocations: 172 kB / 1.265 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/1.126, allocations: 6.547 kB / 1.265 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/1.126, allocations: 3.375 kB / 1.265 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/1.127, allocations: 72.16 kB / 1.265 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/1.127, allocations: 0.9688 kB / 1.265 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/1.127, allocations: 4.969 kB / 1.265 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/1.127, allocations: 1.469 kB / 1.265 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/1.127, allocations: 42.48 kB / 1.265 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004223/1.127, allocations: 286.6 kB / 1.265 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/1.128, allocations: 62.64 kB / 1.266 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/1.128, allocations: 33.08 kB / 1.266 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/1.128, allocations: 6.109 kB / 1.266 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/1.128, allocations: 77.03 kB / 1.266 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/1.128, allocations: 0.6875 kB / 1.266 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004595/1.128, allocations: 125.7 kB / 1.266 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/1.128, allocations: 56.58 kB / 1.266 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.9e-05/1.128, allocations: 105.2 kB / 1.266 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/1.129, allocations: 30.52 kB / 1.266 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/1.129, allocations: 86.91 kB / 1.266 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/1.129, allocations: 23.88 kB / 1.266 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-05/1.129, allocations: 23.11 kB / 1.266 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.199e-05/1.129, allocations: 318.4 kB / 1.266 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/1.129, allocations: 24.88 kB / 1.266 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/1.129, allocations: 58.16 kB / 1.266 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/1.129, allocations: 101.7 kB / 1.267 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/1.129, allocations: 0.7812 kB / 1.267 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002909/1.129, allocations: 117.8 kB / 1.267 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/1.13, allocations: 5.156 kB / 1.267 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/1.13, allocations: 2.359 kB / 1.267 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/1.13, allocations: 1.938 kB / 1.267 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/1.13, allocations: 20.34 kB / 1.267 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/1.13, allocations: 2.469 kB / 1.267 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.039e-05/1.13, allocations: 7.438 kB / 1.267 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/1.13, allocations: 8.484 kB / 1.267 GB, free: 4.719 MB / 0.9981 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.769e-05/1.13, allocations: 118.7 kB / 1.267 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.377e-05/1.13, allocations: 6.609 kB / 1.267 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003091/1.13, allocations: 112.1 kB / 1.267 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/1.13, allocations: 0.625 kB / 1.267 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.13, allocations: 0.7812 kB / 1.267 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/1.13, allocations: 0.5625 kB / 1.267 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/1.131, allocations: 368.6 kB / 1.267 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.131, allocations: 0 / 1.267 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.741e-05/1.131, allocations: 11 kB / 1.267 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/1.131, allocations: 1.531 kB / 1.267 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/1.131, allocations: 0.9375 kB / 1.267 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/1.131, allocations: 1.516 kB / 1.267 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.131, allocations: 3.938 kB / 1.267 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/1.131, allocations: 202 kB / 1.267 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.751e-05/1.131, allocations: 84.09 kB / 1.268 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/1.131, allocations: 1.609 kB / 1.268 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/1.131, allocations: 8.172 kB / 1.268 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.129e-05/1.131, allocations: 8.625 kB / 1.268 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/1.131, allocations: 7.484 kB / 1.268 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.27e-05/1.131, allocations: 92.88 kB / 1.268 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.131, allocations: 0 / 1.268 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002553/1.132, allocations: 15.89 kB / 1.268 GB, free: 3.836 MB / 0.9981 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.0001499/1.132, allocations: 108.7 kB / 1.268 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003044/1.132, allocations: 75.14 kB / 1.268 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.132, allocations: 256 / 1.268 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001308/1.132, allocations: 35.09 kB / 1.268 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/1.133, allocations: 16.39 kB / 1.268 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003797/1.133, allocations: 167.2 kB / 1.268 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/1.133, allocations: 0.6827 MB / 1.269 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.264e-05/1.133, allocations: 11.58 kB / 1.269 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of SimCode: time 3.9e-07/1.133, allocations: 0 / 1.269 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of Templates: time 0.003233/1.136, allocations: 0.9168 MB / 1.27 GB, free: 2.777 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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.779471983900294]