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.001365/0.001365, allocations: 88.72 kB / 19.44 MB, free: 356 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.001553/0.001553, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.517/1.517, allocations: 177.1 MB / 203.1 MB, free: 5.609 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.277/3.277, allocations: 429.6 MB / 0.673 GB, free: 3.906 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 1.563e-06/1.563e-06, allocations: 0 / 0.8776 GB, free: 6.555 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.785e-05/3.941e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.551 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00191/0.001949, allocations: 0.6823 MB / 0.8782 GB, free: 5.895 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001818/0.003767, allocations: 1.1 MB / 0.8793 GB, free: 4.785 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.39e-05/0.003821, allocations: 4 kB / 0.8793 GB, free: 4.781 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.064e-05/0.003851, allocations: 4.438 kB / 0.8793 GB, free: 4.777 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.498e-05/0.003926, allocations: 4.938 kB / 0.8793 GB, free: 4.773 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.004253, allocations: 52.28 kB / 0.8794 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.004386, allocations: 71.77 kB / 0.8794 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.813e-05/0.004475, allocations: 12.89 kB / 0.8795 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.004578, allocations: 35.95 kB / 0.8795 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.38e-05/0.004641, allocations: 28.53 kB / 0.8795 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.004664, allocations: 8 kB / 0.8795 GB, free: 4.57 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.511e-05/0.004749, allocations: 28.75 kB / 0.8796 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.415e-05/0.004773, allocations: 8 kB / 0.8796 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.004828, allocations: 28.66 kB / 0.8796 GB, free: 4.508 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.005034, allocations: 87.67 kB / 0.8797 GB, free: 4.422 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005036, allocations: 0.75 kB / 0.8797 GB, free: 4.422 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.42e-07/0.005037, allocations: 0 / 0.8797 GB, free: 4.422 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.005041, allocations: 0.5625 kB / 0.8797 GB, free: 4.422 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.000673/0.005714, allocations: 312.2 kB / 0.88 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.00575, allocations: 8.031 kB / 0.88 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.005887, allocations: 20.83 kB / 0.88 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.006009, allocations: 109.7 kB / 0.8801 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.00603, allocations: 1.406 kB / 0.8801 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/0.006052, allocations: 16.36 kB / 0.8801 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.006296, allocations: 79.3 kB / 0.8802 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.006305, allocations: 192 / 0.8802 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.006317, allocations: 384 / 0.8802 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.006322, allocations: 1.438 kB / 0.8802 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.006583, allocations: 64.95 kB / 0.8803 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005731/0.007156, allocations: 253.1 kB / 0.8805 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002315/0.007387, allocations: 76.19 kB / 0.8806 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.007511, allocations: 32.84 kB / 0.8806 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.007539, allocations: 7.984 kB / 0.8806 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.007811, allocations: 95.94 kB / 0.8807 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.007813, allocations: 1.625 kB / 0.8807 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0005648/0.008377, allocations: 173.5 kB / 0.8809 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.008435, allocations: 56.59 kB / 0.8809 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.008547, allocations: 113.8 kB / 0.881 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/0.008575, allocations: 29.7 kB / 0.8811 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.754e-05/0.008642, allocations: 89.45 kB / 0.8811 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.306e-05/0.008676, allocations: 23.86 kB / 0.8812 GB, free: 2.742 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/0.008741, allocations: 33.7 kB / 0.8812 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001777/0.008919, allocations: 323.5 kB / 0.8815 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.009055, allocations: 41.5 kB / 0.8815 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.009205, allocations: 61.5 kB / 0.8816 GB, free: 2.273 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.009472, allocations: 101.4 kB / 0.8817 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.009474, allocations: 0 / 0.8817 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004619/0.009936, allocations: 149.6 kB / 0.8818 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.009961, allocations: 13.5 kB / 0.8819 GB, free: 2.004 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.009966, allocations: 0 / 0.8819 GB, free: 2.004 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.009984, allocations: 0 / 0.8819 GB, free: 2.004 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.01012, allocations: 23.92 kB / 0.8819 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.01013, allocations: 0.625 kB / 0.8819 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.68e-05/0.01021, allocations: 20.84 kB / 0.8819 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.01023, allocations: 4 kB / 0.8819 GB, free: 1.957 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.0001095/0.01034, allocations: 118.5 kB / 0.882 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.01037, allocations: 19.98 kB / 0.882 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003989/0.01077, allocations: 142.2 kB / 0.8822 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.01077, allocations: 0 / 0.8822 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.01078, allocations: 11.98 kB / 0.8822 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.01079, allocations: 0 / 0.8822 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005809/0.01137, allocations: 350 kB / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01137, allocations: 0 / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.349e-05/0.01144, allocations: 11.98 kB / 0.8825 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.01145, allocations: 7.938 kB / 0.8825 GB, free: 1.254 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.01146, allocations: 8 kB / 0.8825 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.01146, allocations: 0 / 0.8825 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.01146, allocations: 0 / 0.8825 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000441/0.0119, allocations: 247.3 kB / 0.8828 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.108e-05/0.01191, allocations: 4 kB / 0.8828 GB, free: 0.9844 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.01194, allocations: 3.984 kB / 0.8828 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.01205, allocations: 7.984 kB / 0.8828 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.0121, allocations: 15.98 kB / 0.8828 GB, free: 0.957 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.01211, allocations: 7.938 kB / 0.8828 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.893e-05/0.01217, allocations: 83.28 kB / 0.8829 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.01217, allocations: 0 / 0.8829 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003018/0.01247, allocations: 23.94 kB / 0.8829 GB, free: 0.8438 MB / 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.0001847/0.01265, allocations: 99.25 kB / 0.883 GB, free: 0.7383 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003409/0.01299, allocations: 91.88 kB / 0.8831 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.013, allocations: 4.125 kB / 0.8831 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.01314, allocations: 47.91 kB / 0.8832 GB, free: 0.5977 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.01342, allocations: 16.78 kB / 0.8832 GB, free: 0.582 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004626/0.01388, allocations: 157.1 kB / 0.8833 GB, free: 412 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.013e-05/0.01396, allocations: 71.33 kB / 0.8834 GB, free: 320 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.896e-05/0.014, allocations: 8.484 kB / 0.8834 GB, free: 312 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.01404, allocations: 20.5 kB / 0.8834 GB, free: 292 kB / 0.8386 GB Notification: Performance of SimCode: time 2.9e-07/0.01404, allocations: 0 / 0.8834 GB, free: 292 kB / 0.8386 GB Notification: Performance of Templates: time 0.004428/0.01847, allocations: 1.088 MB / 0.8845 GB, free: 15.23 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 800] 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.31647650199011]