Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00233/0.00233, allocations: 81.5 kB / 19.44 MB, free: 344 kB / 13.93 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.002928/0.002928, allocations: 173.6 kB / 22.76 MB, free: 1.664 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.578/1.578, allocations: 177.1 MB / 203.1 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.406/3.406, allocations: 429.5 MB / 0.6729 GB, free: 4.012 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.394e-06/2.394e-06, allocations: 0.6562 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.903e-05/3.143e-05, allocations: 2.938 kB / 0.8774 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001883/0.001914, allocations: 0.6853 MB / 0.8781 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001701/0.003615, allocations: 1.105 MB / 0.8792 GB, free: 4.902 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.466e-05/0.00367, allocations: 3.938 kB / 0.8792 GB, free: 4.898 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.003699, allocations: 3.938 kB / 0.8792 GB, free: 4.895 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.038e-05/0.00379, allocations: 14.22 kB / 0.8792 GB, free: 4.883 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.004136, allocations: 49.11 kB / 0.8793 GB, free: 4.836 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.00429, allocations: 71.83 kB / 0.8793 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.004394, allocations: 7.984 kB / 0.8793 GB, free: 4.758 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.004509, allocations: 39.91 kB / 0.8794 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.008e-05/0.004579, allocations: 28.61 kB / 0.8794 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.004602, allocations: 4.656 kB / 0.8794 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.646e-05/0.004689, allocations: 27.92 kB / 0.8794 GB, free: 4.66 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.001e-05/0.004719, allocations: 16.56 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.09e-05/0.00476, allocations: 19.98 kB / 0.8795 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.004954, allocations: 93.25 kB / 0.8796 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.004956, allocations: 0 / 0.8796 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.11e-07/0.004957, allocations: 0 / 0.8796 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.004961, allocations: 4 kB / 0.8796 GB, free: 4.531 MB / 0.8386 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.0007145/0.005675, allocations: 405.8 kB / 0.8799 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.005719, allocations: 8.031 kB / 0.88 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.005842, allocations: 20.81 kB / 0.88 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.005972, allocations: 111.5 kB / 0.8801 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.005995, allocations: 4.375 kB / 0.8801 GB, free: 3.934 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.006015, allocations: 12.31 kB / 0.8801 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.006221, allocations: 74.16 kB / 0.8802 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.006232, allocations: 192 / 0.8802 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.006244, allocations: 4.375 kB / 0.8802 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.006249, allocations: 384 / 0.8802 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001606/0.006409, allocations: 48.56 kB / 0.8802 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.006945, allocations: 305.3 kB / 0.8805 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.007137, allocations: 82.97 kB / 0.8806 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.00724, allocations: 37.02 kB / 0.8806 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.007263, allocations: 0 / 0.8806 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.007449, allocations: 92.97 kB / 0.8807 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.00745, allocations: 4 kB / 0.8807 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0004616/0.007912, allocations: 157.8 kB / 0.8809 GB, free: 3.059 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.007966, allocations: 55.34 kB / 0.8809 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.008121, allocations: 177.9 kB / 0.8811 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.008148, allocations: 29.7 kB / 0.8811 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.008252, allocations: 135.1 kB / 0.8812 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.008292, allocations: 27.83 kB / 0.8813 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.651e-05/0.008368, allocations: 43.36 kB / 0.8813 GB, free: 2.547 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002783/0.008647, allocations: 0.4885 MB / 0.8818 GB, free: 2.047 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.008752, allocations: 47.84 kB / 0.8818 GB, free: 2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.00888, allocations: 66.53 kB / 0.8819 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.009091, allocations: 103 kB / 0.882 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.009098, allocations: 4 kB / 0.882 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004576/0.009555, allocations: 133.5 kB / 0.8821 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.009572, allocations: 7.938 kB / 0.8821 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.00958, allocations: 4 kB / 0.8821 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.009599, allocations: 8.047 kB / 0.8821 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.009732, allocations: 23.98 kB / 0.8822 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.00974, allocations: 3.938 kB / 0.8822 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.111e-05/0.009801, allocations: 11.95 kB / 0.8822 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.009815, allocations: 7.938 kB / 0.8822 GB, free: 1.605 MB / 0.8386 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.0001315/0.009946, allocations: 160.6 kB / 0.8823 GB, free: 1.438 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.009975, allocations: 19.92 kB / 0.8824 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003289/0.0103, allocations: 134.4 kB / 0.8825 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.01031, allocations: 4 kB / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.01031, allocations: 0 / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.01031, allocations: 0 / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005369/0.01085, allocations: 405.3 kB / 0.8829 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01085, allocations: 0 / 0.8829 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.338e-05/0.0109, allocations: 4 kB / 0.8829 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.01091, allocations: 7.984 kB / 0.8829 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.01092, allocations: 0 / 0.8829 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.01092, allocations: 0 / 0.8829 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01092, allocations: 0 / 0.8829 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003885/0.01131, allocations: 291.7 kB / 0.8832 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-06/0.01132, allocations: 0 / 0.8832 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.01135, allocations: 11.98 kB / 0.8832 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.848e-05/0.01144, allocations: 4 kB / 0.8832 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.01148, allocations: 7.922 kB / 0.8832 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.0115, allocations: 4 kB / 0.8832 GB, free: 0.4922 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.097e-05/0.01158, allocations: 131.2 kB / 0.8833 GB, free: 372 kB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.01158, allocations: 0 / 0.8833 GB, free: 372 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002409/0.01182, allocations: 23.95 kB / 0.8833 GB, free: 348 kB / 0.8386 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.0001597/0.01198, allocations: 103.2 kB / 0.8834 GB, free: 236 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003016/0.01228, allocations: 99.58 kB / 0.8835 GB, free: 132 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01228, allocations: 0 / 0.8835 GB, free: 132 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.0124, allocations: 51.58 kB / 0.8836 GB, free: 76 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.01266, allocations: 20.11 kB / 0.8836 GB, free: 56 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004288/0.01309, allocations: 162.8 kB / 0.8838 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.976e-05/0.01317, allocations: 71.47 kB / 0.8838 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.137e-05/0.01321, allocations: 16.47 kB / 0.8838 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.28e-05/0.01326, allocations: 20.44 kB / 0.8839 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of SimCode: time 4.41e-07/0.01326, allocations: 0 / 0.8839 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of Templates: time 0.004351/0.01761, allocations: 1.094 MB / 0.8849 GB, free: 14.67 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.522308371961117]