Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001496/0.001496, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.001817/0.001817, allocations: 161 kB / 24.16 MB, free: 332 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.001/1.001, allocations: 177.2 MB / 204.6 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.913/1.913, allocations: 377.9 MB / 0.624 GB, free: 8.367 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.414e-06/2.414e-06, allocations: 0 / 0.76 GB, free: 6.668 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.595e-05/2.836e-05, allocations: 2.312 kB / 0.76 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001332/0.001361, allocations: 0.6926 MB / 0.7607 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.00244, allocations: 1.119 MB / 0.7618 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.253e-05/0.002482, allocations: 0.8125 kB / 0.7618 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.711e-05/0.00251, allocations: 3.938 kB / 0.7618 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.582e-05/0.002585, allocations: 8.188 kB / 0.7618 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.00282, allocations: 48.97 kB / 0.7618 GB, free: 4.805 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 8.633e-05/0.002907, allocations: 46.88 kB / 0.7619 GB, free: 4.766 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 6.999e-05/0.002976, allocations: 9.078 kB / 0.7619 GB, free: 4.758 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 7.866e-05/0.003055, allocations: 26.88 kB / 0.7619 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 3.945e-05/0.003095, allocations: 25.22 kB / 0.7619 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.003109, allocations: 4.656 kB / 0.7619 GB, free: 4.707 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.527e-05/0.003164, allocations: 19.98 kB / 0.7619 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.003184, allocations: 15.11 kB / 0.762 GB, free: 4.676 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 2.312e-05/0.003208, allocations: 10.3 kB / 0.762 GB, free: 4.668 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 9.675e-05/0.003304, allocations: 55.8 kB / 0.762 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.003306, allocations: 0 / 0.762 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of FrontEnd: time 6.01e-07/0.003307, allocations: 0.6562 kB / 0.762 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.00331, allocations: 0 / 0.762 GB, free: 4.613 MB / 0.7136 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.0003148/0.003625, allocations: 254.2 kB / 0.7623 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.003656, allocations: 8.031 kB / 0.7623 GB, free: 4.332 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.865e-05/0.003735, allocations: 8.938 kB / 0.7623 GB, free: 4.324 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.328e-05/0.003818, allocations: 123 kB / 0.7624 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.003829, allocations: 8.312 kB / 0.7624 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.003841, allocations: 4.375 kB / 0.7624 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.04e-05/0.003931, allocations: 60.19 kB / 0.7625 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.003939, allocations: 192 / 0.7625 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.064e-06/0.003946, allocations: 4.375 kB / 0.7625 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.003951, allocations: 384 / 0.7625 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.211e-05/0.003973, allocations: 9.188 kB / 0.7625 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002402/0.004214, allocations: 164.3 kB / 0.7626 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.246e-05/0.004276, allocations: 35.34 kB / 0.7627 GB, free: 3.871 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.711e-05/0.004293, allocations: 13.52 kB / 0.7627 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.004309, allocations: 7.938 kB / 0.7627 GB, free: 3.848 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.709e-05/0.004366, allocations: 52.39 kB / 0.7627 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.004367, allocations: 0 / 0.7627 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001231/0.00449, allocations: 62.5 kB / 0.7628 GB, free: 3.719 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.004531, allocations: 55.39 kB / 0.7629 GB, free: 3.652 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.6e-05/0.004597, allocations: 114.7 kB / 0.763 GB, free: 3.527 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.004609, allocations: 26.92 kB / 0.763 GB, free: 3.496 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.004643, allocations: 92.12 kB / 0.7631 GB, free: 3.402 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.004659, allocations: 15.84 kB / 0.7631 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.923e-05/0.004688, allocations: 26.34 kB / 0.7631 GB, free: 3.355 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.19e-05/0.00476, allocations: 318.8 kB / 0.7634 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.173e-05/0.004772, allocations: 4.75 kB / 0.7634 GB, free: 3.031 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.876e-05/0.004801, allocations: 36.28 kB / 0.7635 GB, free: 2.98 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.286e-05/0.004853, allocations: 62.89 kB / 0.7635 GB, free: 2.906 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.004856, allocations: 0 / 0.7635 GB, free: 2.906 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 7.237e-05/0.004928, allocations: 67.58 kB / 0.7636 GB, free: 2.836 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.004938, allocations: 4 kB / 0.7636 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.004945, allocations: 0 / 0.7636 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.00496, allocations: 7.938 kB / 0.7636 GB, free: 2.824 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.831e-05/0.005028, allocations: 23.17 kB / 0.7636 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.005032, allocations: 0 / 0.7636 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.48e-05/0.005057, allocations: 8 kB / 0.7636 GB, free: 2.797 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.005064, allocations: 4 kB / 0.7636 GB, free: 2.793 MB / 0.7136 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.546e-05/0.00513, allocations: 116.2 kB / 0.7637 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-06/0.005137, allocations: 8 kB / 0.7637 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.603e-05/0.005213, allocations: 66.28 kB / 0.7638 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.005216, allocations: 6.969 kB / 0.7638 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.005218, allocations: 0 / 0.7638 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.005221, allocations: 4 kB / 0.7638 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.005376, allocations: 202.7 kB / 0.764 GB, free: 2.363 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.005379, allocations: 0 / 0.764 GB, free: 2.363 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.702e-05/0.005406, allocations: 4 kB / 0.764 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.005409, allocations: 3.984 kB / 0.764 GB, free: 2.355 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.005416, allocations: 7.938 kB / 0.764 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.005416, allocations: 1.5 kB / 0.764 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.005417, allocations: 0 / 0.764 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.656e-05/0.005484, allocations: 143.5 kB / 0.7642 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.224e-06/0.005491, allocations: 7.938 kB / 0.7642 GB, free: 2.184 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.005506, allocations: 9.328 kB / 0.7642 GB, free: 2.176 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.855e-05/0.005535, allocations: 0 / 0.7642 GB, free: 2.176 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.005565, allocations: 15.92 kB / 0.7642 GB, free: 2.16 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.005569, allocations: 0 / 0.7642 GB, free: 2.16 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.537e-05/0.005584, allocations: 18.44 kB / 0.7642 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.005584, allocations: 0 / 0.7642 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001265/0.005711, allocations: 8 kB / 0.7642 GB, free: 2.133 MB / 0.7136 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.0001042/0.005815, allocations: 89.06 kB / 0.7643 GB, free: 2.039 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.85e-05/0.005883, allocations: 34.06 kB / 0.7643 GB, free: 2.004 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.005886, allocations: 4 kB / 0.7643 GB, free: 2 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.581e-05/0.005912, allocations: 18.05 kB / 0.7644 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.006047, allocations: 14.03 kB / 0.7644 GB, free: 1.969 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003723/0.00642, allocations: 155.1 kB / 0.7645 GB, free: 1.793 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.872e-05/0.006458, allocations: 55.36 kB / 0.7646 GB, free: 1.719 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.399e-05/0.006482, allocations: 7.984 kB / 0.7646 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.006528, allocations: 58.44 kB / 0.7646 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of SimCode: time 4.91e-07/0.006528, allocations: 0 / 0.7646 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of Templates: time 0.002333/0.008861, allocations: 0.8556 MB / 0.7655 GB, free: 0.8438 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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.093610109295696]