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.001082/0.001082, allocations: 81.95 kB / 20.68 MB, free: 3.816 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.001274/0.001274, allocations: 181.3 kB / 24.09 MB, free: 420 kB / 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 0.9043/0.9043, allocations: 177.1 MB / 204.5 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] 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 1.708/1.708, allocations: 359 MB / 0.6055 GB, free: 10.89 MB / 0.573 GB " [Timeout remaining time 178] 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.804e-06/1.804e-06, allocations: 0 / 0.7875 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.8e-05/1.981e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001478/0.001498, allocations: 0.684 MB / 0.7882 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.004239/0.005737, allocations: 1.125 MB / 0.7893 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.354e-05/0.00578, allocations: 0 / 0.7893 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.669e-05/0.005807, allocations: 3.938 kB / 0.7893 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.481e-05/0.005872, allocations: 12.42 kB / 0.7893 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.006122, allocations: 48.55 kB / 0.7894 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.071e-05/0.006203, allocations: 52.84 kB / 0.7894 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.488e-05/0.006278, allocations: 11.98 kB / 0.7894 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.233e-05/0.00636, allocations: 31.91 kB / 0.7895 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.494e-05/0.006405, allocations: 21.75 kB / 0.7895 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.006419, allocations: 4 kB / 0.7895 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 9.192e-05/0.006511, allocations: 16 kB / 0.7895 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.139e-05/0.006532, allocations: 15.91 kB / 0.7895 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.448e-05/0.006557, allocations: 15.98 kB / 0.7895 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.00667, allocations: 52.97 kB / 0.7896 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.006672, allocations: 0 / 0.7896 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.132e-06/0.006673, allocations: 0 / 0.7896 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.966e-06/0.006676, allocations: 0.5625 kB / 0.7896 GB, free: 10.13 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.0003764/0.007052, allocations: 391.3 kB / 0.79 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.007086, allocations: 12.03 kB / 0.79 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.169e-05/0.007168, allocations: 16.83 kB / 0.79 GB, free: 9.684 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.39e-05/0.007232, allocations: 112.6 kB / 0.7901 GB, free: 9.547 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.007242, allocations: 4.359 kB / 0.7901 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.395e-06/0.00725, allocations: 4.375 kB / 0.7901 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.605e-05/0.007346, allocations: 64.38 kB / 0.7902 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.007353, allocations: 192 / 0.7902 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.00736, allocations: 384 / 0.7902 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.007364, allocations: 384 / 0.7902 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.752e-05/0.007392, allocations: 16.52 kB / 0.7902 GB, free: 9.453 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/0.01067, allocations: 257.2 kB / 0.7904 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.124e-05/0.01073, allocations: 43.11 kB / 0.7905 GB, free: 9.121 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.01075, allocations: 16.45 kB / 0.7905 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.01077, allocations: 5.375 kB / 0.7905 GB, free: 9.098 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.457e-05/0.01083, allocations: 57.19 kB / 0.7905 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.01083, allocations: 0 / 0.7905 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0001463/0.01098, allocations: 83.33 kB / 0.7906 GB, free: 8.941 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.011, allocations: 55.41 kB / 0.7907 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.484e-05/0.01107, allocations: 169.9 kB / 0.7908 GB, free: 8.691 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.01108, allocations: 25.7 kB / 0.7909 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.807e-05/0.01112, allocations: 134.8 kB / 0.791 GB, free: 8.523 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.01114, allocations: 29.34 kB / 0.791 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.763e-05/0.01118, allocations: 27.38 kB / 0.791 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.01134, allocations: 0.4884 MB / 0.7915 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.01135, allocations: 4 kB / 0.7915 GB, free: 7.957 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.929e-05/0.01139, allocations: 60.52 kB / 0.7916 GB, free: 7.879 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.435e-05/0.01146, allocations: 74.34 kB / 0.7916 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01146, allocations: 2.531 kB / 0.7917 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001059/0.01156, allocations: 85.5 kB / 0.7917 GB, free: 7.695 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.01157, allocations: 4 kB / 0.7917 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.01158, allocations: 7.938 kB / 0.7917 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.01159, allocations: 0.5312 kB / 0.7917 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.385e-05/0.01165, allocations: 15.98 kB / 0.7918 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.377e-06/0.01166, allocations: 0.7188 kB / 0.7918 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.545e-05/0.01169, allocations: 8.531 kB / 0.7918 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.0117, allocations: 7.984 kB / 0.7918 GB, free: 7.652 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 6.665e-05/0.01177, allocations: 166.1 kB / 0.7919 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/0.01178, allocations: 7.953 kB / 0.7919 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.848e-05/0.01188, allocations: 74.05 kB / 0.792 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.01188, allocations: 0 / 0.792 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.01188, allocations: 0.625 kB / 0.792 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.01188, allocations: 0.6875 kB / 0.792 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.01208, allocations: 302 kB / 0.7923 GB, free: 7.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.01208, allocations: 0.6875 kB / 0.7923 GB, free: 7.07 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.916e-05/0.01211, allocations: 15.98 kB / 0.7923 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.01211, allocations: 4.906 kB / 0.7923 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.829e-06/0.01212, allocations: 0 / 0.7923 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.01212, allocations: 5.125 kB / 0.7923 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01212, allocations: 0 / 0.7923 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.01223, allocations: 215.8 kB / 0.7925 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.311e-06/0.01224, allocations: 4.547 kB / 0.7925 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.01225, allocations: 7.938 kB / 0.7925 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.812e-05/0.01231, allocations: 8.906 kB / 0.7926 GB, free: 6.797 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.596e-05/0.01234, allocations: 7.922 kB / 0.7926 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.01235, allocations: 4.844 kB / 0.7926 GB, free: 6.785 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.442e-05/0.01238, allocations: 127.2 kB / 0.7927 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01238, allocations: 1.656 kB / 0.7927 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002217/0.0126, allocations: 16 kB / 0.7927 GB, free: 6.645 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.000101/0.0127, allocations: 95.25 kB / 0.7928 GB, free: 6.539 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.056e-05/0.01279, allocations: 48.45 kB / 0.7928 GB, free: 6.488 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.0128, allocations: 6.188 kB / 0.7928 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.211e-05/0.01283, allocations: 19.62 kB / 0.7929 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.01305, allocations: 9.891 kB / 0.7929 GB, free: 6.453 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003382/0.01643, allocations: 164.2 kB / 0.793 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.21e-05/0.01646, allocations: 55.36 kB / 0.7931 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.737e-05/0.01649, allocations: 7.984 kB / 0.7931 GB, free: 6.184 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.01654, allocations: 74.2 kB / 0.7932 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of SimCode: time 7.02e-07/0.01654, allocations: 0.5 kB / 0.7932 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of Templates: time 0.002515/0.01906, allocations: 0.973 MB / 0.7941 GB, free: 5.168 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.690950954332948]