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.001757/0.001757, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.002167/0.002167, allocations: 163.6 kB / 22.46 MB, free: 5.375 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.56/1.56, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.779/2.779, allocations: 359 MB / 0.6037 GB, free: 14.97 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 0.951 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.734e-05/2.929e-05, allocations: 2.281 kB / 0.951 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002107/0.002137, allocations: 0.6683 MB / 0.9516 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00176/0.003896, allocations: 1.093 MB / 0.9527 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.361e-05/0.00395, allocations: 0 / 0.9527 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.081e-05/0.003991, allocations: 3.938 kB / 0.9527 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.383e-05/0.004064, allocations: 11.91 kB / 0.9527 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.004422, allocations: 43.77 kB / 0.9527 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.004543, allocations: 47.86 kB / 0.9528 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.004643, allocations: 11.98 kB / 0.9528 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.792e-05/0.004741, allocations: 27.98 kB / 0.9528 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.695e-05/0.004798, allocations: 23.89 kB / 0.9528 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.00482, allocations: 8 kB / 0.9529 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.665e-05/0.004897, allocations: 27.86 kB / 0.9529 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.00492, allocations: 7.984 kB / 0.9529 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.491e-05/0.004965, allocations: 19.92 kB / 0.9529 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.005123, allocations: 67.77 kB / 0.953 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.005124, allocations: 0 / 0.953 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.31e-07/0.005125, allocations: 0 / 0.953 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.005134, allocations: 0 / 0.953 GB, free: 9.508 MB / 0.8575 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.0006362/0.005771, allocations: 298.2 kB / 0.9533 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.005805, allocations: 11.97 kB / 0.9533 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.75e-05/0.005893, allocations: 8.922 kB / 0.9533 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.006013, allocations: 109.8 kB / 0.9534 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.006027, allocations: 384 / 0.9534 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.006045, allocations: 4.375 kB / 0.9534 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.006264, allocations: 74.14 kB / 0.9535 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.006273, allocations: 192 / 0.9535 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.006286, allocations: 8.375 kB / 0.9535 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.00629, allocations: 384 / 0.9535 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.006486, allocations: 43.89 kB / 0.9535 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.006914, allocations: 220.5 kB / 0.9537 GB, free: 8.652 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.0071, allocations: 54.48 kB / 0.9538 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.007205, allocations: 24.97 kB / 0.9538 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.007232, allocations: 8 kB / 0.9538 GB, free: 8.555 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002013/0.007433, allocations: 75.31 kB / 0.9539 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.007435, allocations: 0 / 0.9539 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004526/0.007887, allocations: 129.6 kB / 0.954 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.007934, allocations: 55.34 kB / 0.954 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.697e-05/0.00803, allocations: 105.8 kB / 0.9541 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.008054, allocations: 29.7 kB / 0.9542 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.386e-05/0.008108, allocations: 84.14 kB / 0.9543 GB, free: 8.035 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.833e-05/0.008137, allocations: 23.84 kB / 0.9543 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.008183, allocations: 21.72 kB / 0.9543 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.008335, allocations: 318.8 kB / 0.9546 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.008441, allocations: 23.98 kB / 0.9546 GB, free: 7.641 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.008575, allocations: 60.27 kB / 0.9547 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.00882, allocations: 96.19 kB / 0.9548 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.008822, allocations: 4.188 kB / 0.9548 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002995/0.009122, allocations: 113.5 kB / 0.9549 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.009137, allocations: 7.938 kB / 0.9549 GB, free: 7.328 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.009144, allocations: 8 kB / 0.9549 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.009157, allocations: 128 / 0.9549 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.00927, allocations: 19.98 kB / 0.9549 GB, free: 7.301 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.009281, allocations: 7.938 kB / 0.9549 GB, free: 7.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.582e-05/0.009357, allocations: 11.94 kB / 0.9549 GB, free: 7.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.009369, allocations: 4 kB / 0.9549 GB, free: 7.277 MB / 0.8575 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.0001123/0.009482, allocations: 124.6 kB / 0.9551 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.009501, allocations: 15.95 kB / 0.9551 GB, free: 7.133 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003055/0.009807, allocations: 106.3 kB / 0.9552 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.009809, allocations: 4 kB / 0.9552 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.009812, allocations: 0 / 0.9552 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.00982, allocations: 4 kB / 0.9552 GB, free: 7.016 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.01028, allocations: 310.1 kB / 0.9555 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.01028, allocations: 0 / 0.9555 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.865e-05/0.01035, allocations: 8 kB / 0.9555 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01035, allocations: 0 / 0.9555 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.01037, allocations: 7.984 kB / 0.9555 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.01037, allocations: 0 / 0.9555 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01037, allocations: 4 kB / 0.9555 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003442/0.01071, allocations: 199.4 kB / 0.9557 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.255e-05/0.01073, allocations: 7.938 kB / 0.9557 GB, free: 6.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.01075, allocations: 4 kB / 0.9557 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.01085, allocations: 11.98 kB / 0.9557 GB, free: 6.422 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.03e-05/0.01089, allocations: 0 / 0.9557 GB, free: 6.422 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.01091, allocations: 4 kB / 0.9557 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.169e-05/0.01096, allocations: 87.27 kB / 0.9558 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.01096, allocations: 4 kB / 0.9558 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002542/0.01121, allocations: 12 kB / 0.9558 GB, free: 6.316 MB / 0.8575 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.0001657/0.01138, allocations: 107.1 kB / 0.9559 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002764/0.01166, allocations: 71.81 kB / 0.956 GB, free: 6.129 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.01166, allocations: 4 kB / 0.956 GB, free: 6.125 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.01178, allocations: 35.91 kB / 0.956 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.01205, allocations: 12.19 kB / 0.956 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003518/0.0124, allocations: 144.8 kB / 0.9562 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.935e-05/0.01247, allocations: 63.34 kB / 0.9562 GB, free: 5.828 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.05e-05/0.0125, allocations: 4.188 kB / 0.9562 GB, free: 5.824 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.01253, allocations: 16.5 kB / 0.9563 GB, free: 5.809 MB / 0.8575 GB Notification: Performance of SimCode: time 5.01e-07/0.01253, allocations: 0 / 0.9563 GB, free: 5.809 MB / 0.8575 GB Notification: Performance of Templates: time 0.003755/0.01629, allocations: 0.8659 MB / 0.9571 GB, free: 4.961 MB / 0.8575 GB " [Timeout remaining time 300] 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: 8.245640520006418]