Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 103.7 kB / 16.41 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 189.7 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 67.89 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8117/0.8132, allocations: 140.4 MB / 1.089 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001781/0.815, allocations: 0.6694 MB / 1.089 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.8163, allocations: 1.051 MB / 1.09 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.561e-05/0.8163, allocations: 4 kB / 1.09 GB, free: 4.578 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.611e-05/0.8164, allocations: 1.547 kB / 1.09 GB, free: 4.578 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.043e-05/0.8165, allocations: 9.266 kB / 1.09 GB, free: 4.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.8168, allocations: 40.83 kB / 1.09 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.8169, allocations: 37.58 kB / 1.09 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.817, allocations: 11 kB / 1.09 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.935e-05/0.8171, allocations: 21.23 kB / 1.09 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.756e-05/0.8171, allocations: 23.03 kB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.8172, allocations: 3.75 kB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.127e-05/0.8172, allocations: 20.81 kB / 1.09 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.8173, allocations: 12.31 kB / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.489e-05/0.8173, allocations: 14.67 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.8174, allocations: 55.2 kB / 1.091 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.8174, allocations: 0 / 1.091 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.023e-06/0.8175, allocations: 0 / 1.091 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.071e-05/0.8175, allocations: 4.844 kB / 1.091 GB, free: 4.453 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000459/0.8179, allocations: 350.6 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.818, allocations: 13.72 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.818, allocations: 3.688 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.759e-05/0.8181, allocations: 176.2 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.8181, allocations: 2.688 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.8181, allocations: 2.906 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.8183, allocations: 58.86 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.8184, allocations: 192 / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.8184, allocations: 5.562 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.8184, allocations: 0 / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.8186, allocations: 40.39 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004116/0.819, allocations: 274 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/0.8192, allocations: 50.02 kB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.076e-05/0.8193, allocations: 22.19 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.8193, allocations: 13.64 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/0.8195, allocations: 69.5 kB / 1.092 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.833e-06/0.8195, allocations: 3.984 kB / 1.092 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.000383/0.8199, allocations: 107.8 kB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.8199, allocations: 64.41 kB / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.177e-05/0.82, allocations: 106.2 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.82, allocations: 26.92 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.432e-05/0.8201, allocations: 90.94 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.8201, allocations: 11.88 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/0.8201, allocations: 20.7 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.198e-05/0.8202, allocations: 317.5 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.894e-05/0.8203, allocations: 26.73 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.959e-05/0.8204, allocations: 45.69 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.8206, allocations: 83.3 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.8206, allocations: 0 / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002381/0.8208, allocations: 99.12 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.8209, allocations: 6.188 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.8209, allocations: 1.156 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.8209, allocations: 1 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.821, allocations: 17.95 kB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.821, allocations: 6.234 kB / 1.093 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.385e-05/0.8211, allocations: 10.41 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.8211, allocations: 2.969 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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.518e-05/0.8212, allocations: 117.8 kB / 1.093 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.8212, allocations: 3.156 kB / 1.093 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.8215, allocations: 91.73 kB / 1.093 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.8215, allocations: 4.625 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.8215, allocations: 1.172 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.8215, allocations: 0.5312 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.8219, allocations: 342 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.8219, allocations: 0 / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.8219, allocations: 13.33 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.8219, allocations: 0.7812 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.822, allocations: 5.844 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.822, allocations: 0.75 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.822, allocations: 4.562 kB / 1.093 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.8222, allocations: 178.8 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.243e-05/0.8222, allocations: 87.05 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.8223, allocations: 2.031 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.8224, allocations: 10 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.8224, allocations: 4.203 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.8224, allocations: 9.781 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.771e-05/0.8225, allocations: 91.27 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8225, allocations: 0 / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002417/0.8227, allocations: 12.91 kB / 1.094 GB, free: 1.723 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000134/0.8229, allocations: 106 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002565/0.8231, allocations: 61.31 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8232, allocations: 0.6875 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.8233, allocations: 26.44 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.8235, allocations: 9.188 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003081/0.8238, allocations: 153.3 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001549/0.824, allocations: 0.6852 MB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.824, allocations: 11.34 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.824, allocations: 0 / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of Templates: time 0.002826/0.8269, allocations: 0.8278 MB / 1.095 GB, free: 0.6875 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches