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.002634/0.002634, allocations: 79.7 kB / 20.23 MB, free: 4.188 MB / 18.57 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.002671/0.002671, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.61/1.61, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 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.898/2.898, allocations: 359 MB / 0.6048 GB, free: 10.96 MB / 0.573 GB " [Timeout remaining time 176] 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 2.044e-06/2.044e-06, allocations: 0 / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.252e-05/3.457e-05, allocations: 13.83 kB / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.00202/0.002055, allocations: 0.6733 MB / 0.787 GB, free: 12.16 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.003797, allocations: 1.101 MB / 0.7881 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.998e-05/0.003847, allocations: 4.469 kB / 0.7881 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.681e-05/0.003874, allocations: 0 / 0.7881 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.415e-05/0.003958, allocations: 8.844 kB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.004295, allocations: 47.77 kB / 0.7882 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.004421, allocations: 52.91 kB / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.962e-05/0.004521, allocations: 7.984 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.004639, allocations: 35.91 kB / 0.7882 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.979e-05/0.004689, allocations: 9.391 kB / 0.7883 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.004709, allocations: 8 kB / 0.7883 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-05/0.004789, allocations: 27.91 kB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.004818, allocations: 12.98 kB / 0.7883 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.212e-05/0.00486, allocations: 12 kB / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.005038, allocations: 75.69 kB / 0.7884 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.005042, allocations: 1.562 kB / 0.7884 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.102e-06/0.005044, allocations: 0 / 0.7884 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.005048, allocations: 0 / 0.7884 GB, free: 10.76 MB / 0.7448 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.0007012/0.005749, allocations: 394 kB / 0.7888 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.005792, allocations: 8.031 kB / 0.7888 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.005922, allocations: 16.88 kB / 0.7888 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.006058, allocations: 112.6 kB / 0.7889 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.006077, allocations: 4.375 kB / 0.7889 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.006088, allocations: 2.719 kB / 0.7889 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.006279, allocations: 58.23 kB / 0.789 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.00629, allocations: 4.188 kB / 0.789 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.006302, allocations: 384 / 0.789 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.006306, allocations: 384 / 0.789 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.006463, allocations: 44.47 kB / 0.789 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000535/0.006998, allocations: 277.4 kB / 0.7893 GB, free: 9.758 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.007165, allocations: 55.05 kB / 0.7893 GB, free: 9.691 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.726e-05/0.007253, allocations: 31.8 kB / 0.7894 GB, free: 9.656 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.007276, allocations: 0.7812 kB / 0.7894 GB, free: 9.656 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/0.007471, allocations: 88.92 kB / 0.7894 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.007472, allocations: 0.75 kB / 0.7894 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0003959/0.007868, allocations: 107.4 kB / 0.7895 GB, free: 9.445 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.007929, allocations: 55.41 kB / 0.7896 GB, free: 9.379 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.008077, allocations: 165.9 kB / 0.7898 GB, free: 9.199 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.008103, allocations: 32.02 kB / 0.7898 GB, free: 9.164 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.008205, allocations: 134.8 kB / 0.7899 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.008236, allocations: 15.89 kB / 0.7899 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.923e-05/0.008296, allocations: 35.31 kB / 0.79 GB, free: 8.969 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000285/0.008581, allocations: 0.4923 MB / 0.7904 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.00866, allocations: 19.98 kB / 0.7905 GB, free: 8.445 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.008919, allocations: 75.08 kB / 0.7905 GB, free: 8.352 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.009111, allocations: 96.53 kB / 0.7906 GB, free: 8.238 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.009114, allocations: 0 / 0.7906 GB, free: 8.238 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002653/0.009379, allocations: 115.4 kB / 0.7907 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.009397, allocations: 7.938 kB / 0.7907 GB, free: 8.113 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.009406, allocations: 4.078 kB / 0.7907 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.009421, allocations: 1.156 kB / 0.7907 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.009525, allocations: 15.98 kB / 0.7908 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.009541, allocations: 7.922 kB / 0.7908 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.47e-05/0.009595, allocations: 9.312 kB / 0.7908 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.009609, allocations: 4 kB / 0.7908 GB, free: 8.074 MB / 0.7448 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.0001335/0.009743, allocations: 164.6 kB / 0.7909 GB, free: 7.902 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.009768, allocations: 17.64 kB / 0.791 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002644/0.01003, allocations: 98.08 kB / 0.791 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.01003, allocations: 0 / 0.791 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.01004, allocations: 0 / 0.791 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.01004, allocations: 1.281 kB / 0.791 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004669/0.01051, allocations: 353.3 kB / 0.7914 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01051, allocations: 0 / 0.7914 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.171e-05/0.01056, allocations: 8.672 kB / 0.7914 GB, free: 7.395 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.01056, allocations: 0.875 kB / 0.7914 GB, free: 7.395 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.01058, allocations: 4 kB / 0.7914 GB, free: 7.391 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.01058, allocations: 0 / 0.7914 GB, free: 7.391 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.01058, allocations: 1.562 kB / 0.7914 GB, free: 7.391 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.01089, allocations: 251.7 kB / 0.7916 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-06/0.0109, allocations: 256 / 0.7916 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.01092, allocations: 4.984 kB / 0.7916 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.7e-05/0.01101, allocations: 12 kB / 0.7917 GB, free: 7.109 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/0.01105, allocations: 7.984 kB / 0.7917 GB, free: 7.102 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.01107, allocations: 7.344 kB / 0.7917 GB, free: 7.098 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.905e-05/0.01115, allocations: 127.2 kB / 0.7918 GB, free: 6.973 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01115, allocations: 0 / 0.7918 GB, free: 6.973 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.00025/0.0114, allocations: 15.94 kB / 0.7918 GB, free: 6.957 MB / 0.7448 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.0001799/0.01158, allocations: 103.2 kB / 0.7919 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002436/0.01182, allocations: 68.09 kB / 0.792 GB, free: 6.773 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01182, allocations: 0 / 0.792 GB, free: 6.773 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.01193, allocations: 41.55 kB / 0.792 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.01221, allocations: 17.81 kB / 0.792 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003844/0.01259, allocations: 154.1 kB / 0.7922 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.777e-05/0.01267, allocations: 68.25 kB / 0.7922 GB, free: 6.449 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.201e-05/0.0127, allocations: 4.844 kB / 0.7922 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.19e-05/0.01274, allocations: 11.31 kB / 0.7923 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of SimCode: time 5.81e-07/0.01274, allocations: 0 / 0.7923 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of Templates: time 0.004128/0.01686, allocations: 0.8908 MB / 0.7931 GB, free: 5.578 MB / 0.7448 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] 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.224379851017147]