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.001134/0.001134, allocations: 73.09 kB / 20.66 MB, free: 3.844 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.001089/0.001089, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.004/1.004, allocations: 177.1 MB / 204.5 MB, free: 5.52 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.215/2.215, allocations: 429.5 MB / 0.6743 GB, free: 3.922 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 1.823e-06/1.823e-06, allocations: 1.094 kB / 0.8794 GB, free: 6.059 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.611e-05/1.793e-05, allocations: 6.25 kB / 0.8794 GB, free: 6.051 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001254/0.001272, allocations: 0.6904 MB / 0.8801 GB, free: 5.387 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.002353, allocations: 1.109 MB / 0.8811 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.34e-05/0.002396, allocations: 0 / 0.8811 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.537e-05/0.002421, allocations: 3.938 kB / 0.8811 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.472e-05/0.002486, allocations: 9.031 kB / 0.8811 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002439/0.00273, allocations: 47.7 kB / 0.8812 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 8.262e-05/0.002813, allocations: 55.25 kB / 0.8812 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 7.305e-05/0.002886, allocations: 4 kB / 0.8813 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.425e-05/0.00296, allocations: 35.89 kB / 0.8813 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.928e-05/0.002999, allocations: 11.98 kB / 0.8813 GB, free: 4.109 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.003014, allocations: 4 kB / 0.8813 GB, free: 4.105 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.93e-05/0.003083, allocations: 19.98 kB / 0.8813 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.063e-05/0.003104, allocations: 15.86 kB / 0.8813 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.473e-05/0.003129, allocations: 15.98 kB / 0.8813 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.00323, allocations: 47.81 kB / 0.8814 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.003232, allocations: 0.5938 kB / 0.8814 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.203e-06/0.003233, allocations: 0 / 0.8814 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.416e-06/0.003236, allocations: 1.469 kB / 0.8814 GB, free: 4.008 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.0003395/0.003576, allocations: 392.5 kB / 0.8818 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.003608, allocations: 12.03 kB / 0.8818 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.936e-05/0.003688, allocations: 6.469 kB / 0.8818 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.531e-05/0.003763, allocations: 120.5 kB / 0.8819 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.003772, allocations: 384 / 0.8819 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.724e-06/0.00378, allocations: 4.375 kB / 0.8819 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.524e-05/0.003875, allocations: 70.88 kB / 0.882 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.003881, allocations: 192 / 0.882 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-06/0.003889, allocations: 384 / 0.882 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.003893, allocations: 384 / 0.882 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.434e-05/0.003917, allocations: 11.94 kB / 0.882 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.004204, allocations: 264.4 kB / 0.8822 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.104e-05/0.004265, allocations: 35 kB / 0.8823 GB, free: 3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.602e-05/0.004281, allocations: 15.67 kB / 0.8823 GB, free: 2.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.004295, allocations: 4 kB / 0.8823 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.332e-05/0.004359, allocations: 65.14 kB / 0.8824 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.004359, allocations: 0 / 0.8824 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001459/0.004505, allocations: 77.55 kB / 0.8824 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.004543, allocations: 51.41 kB / 0.8825 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.132e-05/0.004614, allocations: 165.9 kB / 0.8826 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.004628, allocations: 29.7 kB / 0.8827 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.666e-05/0.004674, allocations: 142.8 kB / 0.8828 GB, free: 2.395 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.004692, allocations: 15.84 kB / 0.8828 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.004726, allocations: 31.34 kB / 0.8828 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.004841, allocations: 0.4923 MB / 0.8833 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.452e-05/0.004856, allocations: 4 kB / 0.8833 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.489e-05/0.004891, allocations: 54.42 kB / 0.8834 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.764e-05/0.004948, allocations: 62.38 kB / 0.8834 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.00495, allocations: 0 / 0.8834 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 9.619e-05/0.005047, allocations: 73.56 kB / 0.8835 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.005062, allocations: 18.64 kB / 0.8835 GB, free: 1.582 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.005068, allocations: 3.938 kB / 0.8835 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.467e-06/0.005077, allocations: 4 kB / 0.8835 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.775e-05/0.005145, allocations: 15.94 kB / 0.8836 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.005149, allocations: 3.984 kB / 0.8836 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.985e-05/0.005179, allocations: 11.95 kB / 0.8836 GB, free: 1.543 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.005186, allocations: 4.25 kB / 0.8836 GB, free: 1.539 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.959e-05/0.005256, allocations: 160.6 kB / 0.8837 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.005266, allocations: 8 kB / 0.8837 GB, free: 1.363 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.005368, allocations: 77.98 kB / 0.8838 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.00537, allocations: 4 kB / 0.8838 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.005372, allocations: 0 / 0.8838 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.005375, allocations: 0 / 0.8838 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.005579, allocations: 294 kB / 0.8841 GB, free: 0.9531 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.00558, allocations: 0 / 0.8841 GB, free: 0.9531 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-05/0.005605, allocations: 7.938 kB / 0.8841 GB, free: 0.9453 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.005607, allocations: 3.938 kB / 0.8841 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.005615, allocations: 11.98 kB / 0.8841 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.005616, allocations: 0 / 0.8841 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.005618, allocations: 0 / 0.8841 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.482e-05/0.005712, allocations: 203.9 kB / 0.8843 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.125e-06/0.005721, allocations: 15.88 kB / 0.8843 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.005732, allocations: 3.938 kB / 0.8843 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.542e-05/0.005768, allocations: 11.98 kB / 0.8843 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.005792, allocations: 0 / 0.8843 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.005797, allocations: 4 kB / 0.8843 GB, free: 0.6758 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.51e-05/0.005872, allocations: 127.2 kB / 0.8845 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.005872, allocations: 3.938 kB / 0.8845 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000175/0.006047, allocations: 19.94 kB / 0.8845 GB, free: 0.5273 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 9.757e-05/0.006145, allocations: 103.2 kB / 0.8846 GB, free: 428 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.137e-05/0.006226, allocations: 39.61 kB / 0.8846 GB, free: 384 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.006227, allocations: 0 / 0.8846 GB, free: 384 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.625e-05/0.006253, allocations: 19.69 kB / 0.8846 GB, free: 360 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.00643, allocations: 8.297 kB / 0.8846 GB, free: 352 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003445/0.006774, allocations: 154.1 kB / 0.8848 GB, free: 168 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.217e-05/0.006806, allocations: 63.59 kB / 0.8849 GB, free: 84 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.023e-05/0.006826, allocations: 4 kB / 0.8849 GB, free: 80 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.447e-05/0.006881, allocations: 78.2 kB / 0.8849 GB, free: 0 / 0.8386 GB Notification: Performance of SimCode: time 7.72e-07/0.006882, allocations: 0 / 0.8849 GB, free: 0 / 0.8386 GB Notification: Performance of Templates: time 0.00258/0.009462, allocations: 0.958 MB / 0.8859 GB, free: 15.06 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.476503902114928]