Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001111/0.001111, allocations: 76.55 kB / 19.93 MB, free: 4.637 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.00124/0.00124, allocations: 177.9 kB / 23.22 MB, free: 1.352 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 0.9003/0.9003, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.709/1.709, allocations: 377.9 MB / 0.6228 GB, free: 8.676 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.865e-06/2.865e-06, allocations: 0 / 0.9822 GB, free: 2.125 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.79e-05/3.077e-05, allocations: 6.281 kB / 0.9822 GB, free: 2.117 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001414/0.001445, allocations: 0.674 MB / 0.9828 GB, free: 1.445 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001098/0.002544, allocations: 1.104 MB / 0.9839 GB, free: 336 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.996e-05/0.002594, allocations: 4 kB / 0.9839 GB, free: 332 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.952e-05/0.002623, allocations: 7.922 kB / 0.9839 GB, free: 324 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.09e-05/0.002694, allocations: 7.875 kB / 0.9839 GB, free: 316 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.002989, allocations: 47.83 kB / 0.984 GB, free: 268 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.777e-05/0.003087, allocations: 67.81 kB / 0.984 GB, free: 200 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.066e-05/0.003177, allocations: 8 kB / 0.9841 GB, free: 192 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.708e-05/0.003254, allocations: 47.83 kB / 0.9841 GB, free: 144 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.703e-05/0.003301, allocations: 19.97 kB / 0.9841 GB, free: 124 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.003318, allocations: 8 kB / 0.9841 GB, free: 116 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.486e-05/0.003383, allocations: 27.91 kB / 0.9842 GB, free: 88 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.087e-05/0.003404, allocations: 23.92 kB / 0.9842 GB, free: 64 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.003437, allocations: 23.97 kB / 0.9842 GB, free: 40 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.003597, allocations: 83.73 kB / 0.9843 GB, free: 15.96 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.003599, allocations: 0 / 0.9843 GB, free: 15.96 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.493e-06/0.0036, allocations: 0 / 0.9843 GB, free: 15.96 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.003605, allocations: 0 / 0.9843 GB, free: 15.96 MB / 0.948 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.0004682/0.004073, allocations: 302.1 kB / 0.9846 GB, free: 15.63 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.00411, allocations: 12.03 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.674e-05/0.004187, allocations: 24.77 kB / 0.9846 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.495e-05/0.004262, allocations: 109.7 kB / 0.9847 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.004284, allocations: 16.3 kB / 0.9847 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.004297, allocations: 4.375 kB / 0.9847 GB, free: 15.44 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.004451, allocations: 78.22 kB / 0.9848 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.004458, allocations: 192 / 0.9848 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.00447, allocations: 8.359 kB / 0.9848 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.004475, allocations: 384 / 0.9848 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.004593, allocations: 59.89 kB / 0.9849 GB, free: 15.29 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003659/0.004959, allocations: 232.5 kB / 0.9851 GB, free: 15.04 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.005089, allocations: 78.47 kB / 0.9852 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.303e-05/0.005152, allocations: 40.83 kB / 0.9852 GB, free: 14.91 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.00517, allocations: 0 / 0.9852 GB, free: 14.91 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.005331, allocations: 103.4 kB / 0.9853 GB, free: 14.79 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.005332, allocations: 4 kB / 0.9853 GB, free: 14.79 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.00032/0.005652, allocations: 165.5 kB / 0.9855 GB, free: 14.62 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.005691, allocations: 63.39 kB / 0.9855 GB, free: 14.55 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.462e-05/0.005755, allocations: 105.8 kB / 0.9856 GB, free: 14.43 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.005773, allocations: 33.81 kB / 0.9857 GB, free: 14.39 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.901e-05/0.005812, allocations: 84.31 kB / 0.9857 GB, free: 14.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.005839, allocations: 39.72 kB / 0.9858 GB, free: 14.27 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.00588, allocations: 29.72 kB / 0.9858 GB, free: 14.23 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.947e-05/0.005959, allocations: 326.8 kB / 0.9861 GB, free: 13.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.051e-05/0.00603, allocations: 35.97 kB / 0.9861 GB, free: 13.87 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.62e-05/0.006106, allocations: 61.8 kB / 0.9862 GB, free: 13.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.006245, allocations: 98.47 kB / 0.9863 GB, free: 13.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.006247, allocations: 384 / 0.9863 GB, free: 13.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001824/0.006429, allocations: 141.6 kB / 0.9864 GB, free: 13.55 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.006442, allocations: 7.938 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.006448, allocations: 0 / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.006464, allocations: 7.875 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.006547, allocations: 19.98 kB / 0.9865 GB, free: 13.52 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.006552, allocations: 4 kB / 0.9865 GB, free: 13.51 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.994e-05/0.006592, allocations: 19.88 kB / 0.9865 GB, free: 13.49 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.006601, allocations: 4 kB / 0.9865 GB, free: 13.49 MB / 0.948 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 7.527e-05/0.006677, allocations: 130.4 kB / 0.9866 GB, free: 13.35 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.006689, allocations: 15.88 kB / 0.9866 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.006908, allocations: 146 kB / 0.9868 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.006911, allocations: 0 / 0.9868 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.006917, allocations: 0 / 0.9868 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.006921, allocations: 0 / 0.9868 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003707/0.007291, allocations: 346.3 kB / 0.9871 GB, free: 12.81 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.007294, allocations: 8 kB / 0.9871 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.242e-05/0.007337, allocations: 11.98 kB / 0.9871 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.00734, allocations: 0 / 0.9871 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.00735, allocations: 0 / 0.9871 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.007353, allocations: 4 kB / 0.9871 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.007354, allocations: 0 / 0.9871 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.007589, allocations: 247.3 kB / 0.9874 GB, free: 12.53 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.251e-05/0.007601, allocations: 11.89 kB / 0.9874 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.00762, allocations: 4 kB / 0.9874 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.787e-05/0.007678, allocations: 11.98 kB / 0.9874 GB, free: 12.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.007723, allocations: 8.266 kB / 0.9874 GB, free: 12.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.007732, allocations: 4 kB / 0.9874 GB, free: 12.49 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.097e-05/0.007773, allocations: 83.28 kB / 0.9875 GB, free: 12.41 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007773, allocations: 3.938 kB / 0.9875 GB, free: 12.41 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002066/0.007979, allocations: 23.98 kB / 0.9875 GB, free: 12.38 MB / 0.948 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.0001847/0.008164, allocations: 105.7 kB / 0.9876 GB, free: 12.27 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002481/0.008412, allocations: 99.88 kB / 0.9877 GB, free: 12.18 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.008415, allocations: 0 / 0.9877 GB, free: 12.18 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.698e-05/0.008501, allocations: 43.91 kB / 0.9877 GB, free: 12.13 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.008747, allocations: 19.86 kB / 0.9878 GB, free: 12.11 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004095/0.009156, allocations: 183.3 kB / 0.9879 GB, free: 11.9 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.243e-05/0.009219, allocations: 67.72 kB / 0.988 GB, free: 11.82 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.497e-05/0.009254, allocations: 20.48 kB / 0.988 GB, free: 11.79 MB / 0.948 GB Notification: Performance of SimCode: time 9.12e-07/0.009254, allocations: 0 / 0.988 GB, free: 11.79 MB / 0.948 GB Notification: Performance of Templates: time 0.002572/0.01183, allocations: 1.132 MB / 0.9891 GB, free: 10.66 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 6.739679247140884]