Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001022/0.001022, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.0009669/0.0009669, allocations: 173 kB / 23.49 MB, free: 1.055 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.9919/0.9919, allocations: 177.1 MB / 203.8 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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 2.149/2.149, allocations: 429.5 MB / 0.6736 GB, free: 4.004 MB / 0.6355 GB " [Timeout remaining time 177] 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.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 0.8782 GB, free: 6.613 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.223e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.609 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001503/0.001525, allocations: 0.6925 MB / 0.8788 GB, free: 5.938 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001192/0.002717, allocations: 1.112 MB / 0.8799 GB, free: 4.816 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.976e-05/0.002767, allocations: 0.5469 kB / 0.8799 GB, free: 4.816 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.996e-05/0.002797, allocations: 9.062 kB / 0.8799 GB, free: 4.809 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.741e-05/0.002874, allocations: 2.297 kB / 0.8799 GB, free: 4.809 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.0032, allocations: 57.03 kB / 0.88 GB, free: 4.754 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.003304, allocations: 43.84 kB / 0.88 GB, free: 4.711 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.003411, allocations: 8 kB / 0.88 GB, free: 4.703 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 9.727e-05/0.003508, allocations: 34.36 kB / 0.8801 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.585e-05/0.003554, allocations: 15.92 kB / 0.8801 GB, free: 4.656 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.003572, allocations: 4 kB / 0.8801 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.11e-05/0.003644, allocations: 19.98 kB / 0.8801 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.003668, allocations: 11.98 kB / 0.8801 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.089e-05/0.003709, allocations: 11.98 kB / 0.8801 GB, free: 4.609 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.00387, allocations: 57.88 kB / 0.8802 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.003873, allocations: 0 / 0.8802 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.323e-06/0.003874, allocations: 0 / 0.8802 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.003879, allocations: 0 / 0.8802 GB, free: 4.555 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005273/0.004407, allocations: 388.5 kB / 0.8806 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.004449, allocations: 8.031 kB / 0.8806 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.004569, allocations: 5.656 kB / 0.8806 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.936e-05/0.004668, allocations: 122.2 kB / 0.8807 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.004682, allocations: 4.375 kB / 0.8807 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.004696, allocations: 8.375 kB / 0.8807 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.004841, allocations: 70.86 kB / 0.8808 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.004849, allocations: 192 / 0.8808 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.00486, allocations: 4.812 kB / 0.8808 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.004867, allocations: 1.562 kB / 0.8808 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.14e-05/0.004909, allocations: 11.94 kB / 0.8808 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003921/0.005301, allocations: 273.4 kB / 0.8811 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.32e-05/0.005394, allocations: 46.98 kB / 0.8811 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.638e-05/0.00542, allocations: 15.81 kB / 0.8811 GB, free: 3.496 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.005439, allocations: 4 kB / 0.8811 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.205e-05/0.005521, allocations: 72.94 kB / 0.8812 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.005523, allocations: 0 / 0.8812 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001842/0.005707, allocations: 65.69 kB / 0.8813 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.005749, allocations: 59.34 kB / 0.8813 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.531e-05/0.005834, allocations: 165.9 kB / 0.8815 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.005847, allocations: 29.7 kB / 0.8815 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.005896, allocations: 130.8 kB / 0.8816 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.005916, allocations: 23.83 kB / 0.8816 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.00595, allocations: 27.38 kB / 0.8817 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.006068, allocations: 0.4884 MB / 0.8821 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.304e-05/0.006091, allocations: 12 kB / 0.8822 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.582e-05/0.006137, allocations: 54.42 kB / 0.8822 GB, free: 2.273 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.923e-05/0.006206, allocations: 66.38 kB / 0.8823 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.006209, allocations: 0 / 0.8823 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001078/0.006316, allocations: 85.64 kB / 0.8824 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.006334, allocations: 7.938 kB / 0.8824 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.006344, allocations: 4 kB / 0.8824 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.00636, allocations: 0 / 0.8824 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.013e-05/0.00645, allocations: 19.92 kB / 0.8824 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.006458, allocations: 4 kB / 0.8824 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.958e-05/0.006487, allocations: 7.953 kB / 0.8824 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/0.006497, allocations: 8 kB / 0.8824 GB, free: 2.047 MB / 0.8386 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.782e-05/0.006565, allocations: 152.6 kB / 0.8825 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.006575, allocations: 16.17 kB / 0.8826 GB, free: 1.871 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.006686, allocations: 78.12 kB / 0.8826 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.006688, allocations: 0 / 0.8826 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.006692, allocations: 0 / 0.8826 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.006697, allocations: 3.984 kB / 0.8826 GB, free: 1.781 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.006912, allocations: 325.4 kB / 0.883 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.006914, allocations: 3.938 kB / 0.883 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.643e-05/0.00694, allocations: 4 kB / 0.883 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.006941, allocations: 0 / 0.883 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.00695, allocations: 3.938 kB / 0.883 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.006953, allocations: 4 kB / 0.883 GB, free: 1.406 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.006954, allocations: 0 / 0.883 GB, free: 1.406 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.007075, allocations: 219.9 kB / 0.8832 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-06/0.007083, allocations: 11.89 kB / 0.8832 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.007099, allocations: 0 / 0.8832 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.435e-05/0.007133, allocations: 7.984 kB / 0.8832 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.007169, allocations: 3.984 kB / 0.8832 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.007174, allocations: 4 kB / 0.8832 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.032e-05/0.007215, allocations: 131.2 kB / 0.8833 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.007215, allocations: 0 / 0.8833 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001629/0.007378, allocations: 12 kB / 0.8833 GB, free: 1.004 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001189/0.007497, allocations: 107.2 kB / 0.8834 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001064/0.007603, allocations: 43.59 kB / 0.8835 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.007604, allocations: 0 / 0.8835 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.141e-05/0.007636, allocations: 19.69 kB / 0.8835 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.007825, allocations: 16.23 kB / 0.8835 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004818/0.008307, allocations: 150.4 kB / 0.8837 GB, free: 0.6289 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.591e-05/0.008343, allocations: 59.36 kB / 0.8837 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.155e-05/0.008364, allocations: 3.984 kB / 0.8837 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.518e-05/0.008389, allocations: 12.5 kB / 0.8837 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of SimCode: time 6.61e-07/0.00839, allocations: 0 / 0.8837 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of Templates: time 0.002589/0.01098, allocations: 0.8553 MB / 0.8846 GB, free: 15.7 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.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: 5.467286417027935]