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.001382/0.001382, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.001102/0.001102, allocations: 161 kB / 24.16 MB, free: 336 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.029/1.029, allocations: 177.2 MB / 204.6 MB, free: 5.469 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 2.011/2.011, allocations: 377.9 MB / 0.624 GB, free: 8.375 MB / 0.5886 GB " [Timeout remaining time 177] 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 1.823e-06/1.823e-06, allocations: 0 / 0.76 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.027e-05/3.209e-05, allocations: 6.25 kB / 0.76 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002646/0.002679, allocations: 0.7372 MB / 0.7608 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001864/0.004542, allocations: 1.116 MB / 0.7619 GB, free: 4.762 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.825e-05/0.004601, allocations: 0.5938 kB / 0.7619 GB, free: 4.762 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.577e-05/0.004636, allocations: 4.469 kB / 0.7619 GB, free: 4.758 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 9.17e-05/0.004728, allocations: 7.203 kB / 0.7619 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.005069, allocations: 53.98 kB / 0.7619 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.005215, allocations: 47.3 kB / 0.762 GB, free: 4.664 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.005316, allocations: 11.98 kB / 0.762 GB, free: 4.652 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.005433, allocations: 26.27 kB / 0.762 GB, free: 4.629 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 6.163e-05/0.005494, allocations: 18.81 kB / 0.762 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.005513, allocations: 4 kB / 0.762 GB, free: 4.609 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.005623, allocations: 23.97 kB / 0.762 GB, free: 4.586 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.97e-05/0.005652, allocations: 19.17 kB / 0.7621 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.005682, allocations: 8 kB / 0.7621 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.005819, allocations: 47.81 kB / 0.7621 GB, free: 4.516 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.005824, allocations: 4 kB / 0.7621 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/0.005826, allocations: 0 / 0.7621 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.00583, allocations: 0.75 kB / 0.7621 GB, free: 4.512 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.0004164/0.006247, allocations: 252.8 kB / 0.7624 GB, free: 4.238 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.00629, allocations: 8.781 kB / 0.7624 GB, free: 4.23 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.006403, allocations: 8.922 kB / 0.7624 GB, free: 4.223 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.006509, allocations: 122.4 kB / 0.7625 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.006524, allocations: 8.375 kB / 0.7625 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-06/0.006533, allocations: 2.562 kB / 0.7625 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.006679, allocations: 66.92 kB / 0.7626 GB, free: 3.996 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.006689, allocations: 192 / 0.7626 GB, free: 3.996 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.0067, allocations: 4.375 kB / 0.7626 GB, free: 3.992 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.006707, allocations: 384 / 0.7626 GB, free: 3.992 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.595e-05/0.006743, allocations: 7.938 kB / 0.7626 GB, free: 3.984 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/0.007136, allocations: 169.7 kB / 0.7627 GB, free: 3.805 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.457e-05/0.00722, allocations: 30.56 kB / 0.7628 GB, free: 3.766 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.088e-05/0.007241, allocations: 10.11 kB / 0.7628 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.007258, allocations: 128 / 0.7628 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.998e-05/0.007348, allocations: 59.39 kB / 0.7628 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.00735, allocations: 1.25 kB / 0.7628 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001549/0.007505, allocations: 61.56 kB / 0.7629 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.007548, allocations: 51.41 kB / 0.7629 GB, free: 3.555 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.577e-05/0.007634, allocations: 122 kB / 0.7631 GB, free: 3.426 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.007651, allocations: 25.7 kB / 0.7631 GB, free: 3.395 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.084e-05/0.007692, allocations: 84.14 kB / 0.7632 GB, free: 3.309 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.007718, allocations: 19.83 kB / 0.7632 GB, free: 3.289 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.007766, allocations: 25.7 kB / 0.7632 GB, free: 3.258 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.00787, allocations: 322.8 kB / 0.7635 GB, free: 2.934 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.298e-05/0.007893, allocations: 7.938 kB / 0.7635 GB, free: 2.926 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.841e-05/0.007942, allocations: 40.22 kB / 0.7636 GB, free: 2.871 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.066e-05/0.008022, allocations: 55.02 kB / 0.7636 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.008027, allocations: 4.25 kB / 0.7636 GB, free: 2.801 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000135/0.008162, allocations: 70.98 kB / 0.7637 GB, free: 2.727 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.008178, allocations: 4 kB / 0.7637 GB, free: 2.723 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.008188, allocations: 4 kB / 0.7637 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.008206, allocations: 8.594 kB / 0.7637 GB, free: 2.711 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.00832, allocations: 15.98 kB / 0.7637 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.008325, allocations: 4.719 kB / 0.7637 GB, free: 2.691 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.993e-05/0.008375, allocations: 6.844 kB / 0.7637 GB, free: 2.688 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.008387, allocations: 4 kB / 0.7637 GB, free: 2.684 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 8.421e-05/0.008471, allocations: 117.8 kB / 0.7638 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/0.008488, allocations: 7.984 kB / 0.7639 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.008603, allocations: 50.12 kB / 0.7639 GB, free: 2.496 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.008608, allocations: 7.938 kB / 0.7639 GB, free: 2.488 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.00861, allocations: 0 / 0.7639 GB, free: 2.488 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.008615, allocations: 7.109 kB / 0.7639 GB, free: 2.484 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.008868, allocations: 206.7 kB / 0.7641 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.00887, allocations: 0 / 0.7641 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.506e-05/0.008925, allocations: 4 kB / 0.7641 GB, free: 2.254 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.008928, allocations: 0 / 0.7641 GB, free: 2.254 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.008937, allocations: 3.938 kB / 0.7641 GB, free: 2.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.008939, allocations: 4 kB / 0.7641 GB, free: 2.246 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.00894, allocations: 0 / 0.7641 GB, free: 2.246 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.009073, allocations: 147.5 kB / 0.7643 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.373e-05/0.009087, allocations: 9.75 kB / 0.7643 GB, free: 2.078 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.009106, allocations: 3.938 kB / 0.7643 GB, free: 2.074 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.591e-05/0.009182, allocations: 7.984 kB / 0.7643 GB, free: 2.066 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/0.00922, allocations: 4.188 kB / 0.7643 GB, free: 2.062 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.009229, allocations: 9.031 kB / 0.7643 GB, free: 2.055 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.59e-05/0.009255, allocations: 21.12 kB / 0.7643 GB, free: 2.031 MB / 0.7136 GB Notification: Performance of sort global known variables: time 9e-08/0.009255, allocations: 0 / 0.7643 GB, free: 2.031 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002502/0.009505, allocations: 10.44 kB / 0.7643 GB, free: 2.023 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.0001519/0.009657, allocations: 84.42 kB / 0.7644 GB, free: 1.934 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000112/0.009769, allocations: 36.72 kB / 0.7644 GB, free: 1.895 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.009773, allocations: 0 / 0.7644 GB, free: 1.895 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.076e-05/0.009813, allocations: 19.41 kB / 0.7645 GB, free: 1.875 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.01003, allocations: 12 kB / 0.7645 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000536/0.01057, allocations: 148.3 kB / 0.7646 GB, free: 1.691 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.429e-05/0.01061, allocations: 60.91 kB / 0.7647 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.592e-05/0.01065, allocations: 4 kB / 0.7647 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.836e-05/0.01072, allocations: 59.36 kB / 0.7647 GB, free: 1.551 MB / 0.7136 GB Notification: Performance of SimCode: time 1.002e-06/0.01072, allocations: 1.281 kB / 0.7647 GB, free: 1.551 MB / 0.7136 GB Notification: Performance of Templates: time 0.004106/0.01482, allocations: 0.8544 MB / 0.7656 GB, free: 0.7461 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 -s gbode -gbm=radauIIA3 -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.157284359913319]