Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001827/0.001827, allocations: 83.69 kB / 20.24 MB, free: 4.184 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.002007/0.002007, allocations: 161.3 kB / 23.55 MB, free: 0.8711 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.609/1.609, allocations: 177.1 MB / 203.9 MB, free: 5.602 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.942/2.942, allocations: 359 MB / 0.6048 GB, free: 10.95 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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.945e-06/2.945e-06, allocations: 0 / 0.7864 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.607e-05/3.901e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002096/0.002135, allocations: 0.6842 MB / 0.787 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001943/0.004079, allocations: 1.118 MB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.985e-05/0.004128, allocations: 0 / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.903e-05/0.004157, allocations: 3.938 kB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.74e-05/0.004245, allocations: 7.938 kB / 0.7881 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.004604, allocations: 56.97 kB / 0.7882 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.000142/0.004746, allocations: 67.83 kB / 0.7883 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.194e-05/0.004837, allocations: 0 / 0.7883 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.004953, allocations: 48.52 kB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.55e-05/0.005018, allocations: 25.36 kB / 0.7883 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.005044, allocations: 8 kB / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.219e-05/0.005126, allocations: 19.98 kB / 0.7883 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.169e-05/0.005157, allocations: 15.92 kB / 0.7884 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.005204, allocations: 24.81 kB / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.005407, allocations: 91.61 kB / 0.7885 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.218e-05/0.005419, allocations: 0.5625 kB / 0.7885 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.32e-07/0.00542, allocations: 0 / 0.7885 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.005424, allocations: 0.75 kB / 0.7885 GB, free: 10.68 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007606/0.006185, allocations: 405 kB / 0.7889 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.006228, allocations: 8.688 kB / 0.7889 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.006355, allocations: 12.89 kB / 0.7889 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.006513, allocations: 118.2 kB / 0.789 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.006542, allocations: 8.375 kB / 0.789 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.006558, allocations: 4.375 kB / 0.789 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.00677, allocations: 82.09 kB / 0.7891 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.00678, allocations: 1.781 kB / 0.7891 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.006797, allocations: 4.359 kB / 0.7891 GB, free: 9.984 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.006802, allocations: 384 / 0.7891 GB, free: 9.984 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.006963, allocations: 43.92 kB / 0.7891 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.007565, allocations: 304.8 kB / 0.7894 GB, free: 9.609 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.007774, allocations: 94.11 kB / 0.7895 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.918e-05/0.007874, allocations: 35.67 kB / 0.7895 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.007902, allocations: 4 kB / 0.7896 GB, free: 9.465 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000199/0.008101, allocations: 97.03 kB / 0.7896 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.203e-06/0.008102, allocations: 0 / 0.7896 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0004847/0.008587, allocations: 157.5 kB / 0.7898 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.008649, allocations: 60.12 kB / 0.7899 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.008802, allocations: 165.9 kB / 0.79 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.008835, allocations: 34.89 kB / 0.79 GB, free: 8.906 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.387e-05/0.008928, allocations: 135.1 kB / 0.7902 GB, free: 8.766 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.008969, allocations: 31.75 kB / 0.7902 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.498e-05/0.009044, allocations: 43.89 kB / 0.7902 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002911/0.009335, allocations: 0.4936 MB / 0.7907 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.997e-05/0.009435, allocations: 31.98 kB / 0.7908 GB, free: 8.148 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.009571, allocations: 71.08 kB / 0.7908 GB, free: 8.066 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.009787, allocations: 96.14 kB / 0.7909 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.00979, allocations: 0.9375 kB / 0.7909 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003037/0.01009, allocations: 139.2 kB / 0.7911 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.01011, allocations: 7.938 kB / 0.7911 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.01012, allocations: 0 / 0.7911 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.01014, allocations: 4 kB / 0.7911 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.01029, allocations: 25.23 kB / 0.7911 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.01029, allocations: 0 / 0.7911 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.302e-05/0.01036, allocations: 11.94 kB / 0.7911 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.01037, allocations: 4 kB / 0.7911 GB, free: 7.77 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001519/0.01052, allocations: 173.6 kB / 0.7913 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.7e-05/0.01055, allocations: 16.39 kB / 0.7913 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003199/0.01087, allocations: 131.4 kB / 0.7914 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.01088, allocations: 3.984 kB / 0.7914 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.01088, allocations: 4 kB / 0.7914 GB, free: 7.438 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.01089, allocations: 0 / 0.7914 GB, free: 7.438 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005727/0.01146, allocations: 393.9 kB / 0.7918 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01146, allocations: 1.688 kB / 0.7918 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.828e-05/0.01152, allocations: 11.98 kB / 0.7918 GB, free: 7 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.01152, allocations: 0 / 0.7918 GB, free: 7 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.01153, allocations: 3.938 kB / 0.7918 GB, free: 6.996 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.01154, allocations: 4.906 kB / 0.7918 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01154, allocations: 0 / 0.7918 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/0.01192, allocations: 288.2 kB / 0.7921 GB, free: 6.691 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.707e-05/0.01194, allocations: 12.14 kB / 0.7921 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.01196, allocations: 4.531 kB / 0.7921 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.137e-05/0.01205, allocations: 8.531 kB / 0.7921 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.01212, allocations: 8.797 kB / 0.7921 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.01213, allocations: 7.984 kB / 0.7921 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.271e-05/0.01221, allocations: 128.1 kB / 0.7923 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01221, allocations: 0 / 0.7923 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000247/0.01246, allocations: 20 kB / 0.7923 GB, free: 6.508 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002007/0.01266, allocations: 104.6 kB / 0.7924 GB, free: 6.395 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002968/0.01296, allocations: 100.5 kB / 0.7925 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01296, allocations: 0 / 0.7925 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.01309, allocations: 49.86 kB / 0.7925 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.01337, allocations: 17.61 kB / 0.7925 GB, free: 6.227 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.01381, allocations: 167.6 kB / 0.7927 GB, free: 6.035 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.981e-05/0.0139, allocations: 74.77 kB / 0.7928 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.636e-05/0.01394, allocations: 4.5 kB / 0.7928 GB, free: 5.941 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.194e-05/0.01399, allocations: 20.48 kB / 0.7928 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of SimCode: time 4.01e-07/0.01399, allocations: 0 / 0.7928 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of Templates: time 0.00475/0.01874, allocations: 1.092 MB / 0.7939 GB, free: 4.871 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.153633728041314]