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.001562/0.001562, allocations: 105.5 kB / 16.41 MB, free: 6.023 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.001825/0.001825, allocations: 189.7 kB / 17.34 MB, free: 5.609 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.497/1.497, allocations: 222.9 MB / 241 MB, free: 15.19 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.245/2.245, allocations: 390.3 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 71.89 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9153/0.9168, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001913/0.9187, allocations: 0.674 MB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.9199, allocations: 1.045 MB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.423e-05/0.92, allocations: 0.7812 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.515e-05/0.92, allocations: 4.734 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.185e-05/0.9201, allocations: 9.375 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.9204, allocations: 40.98 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.716e-05/0.9205, allocations: 46.47 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.9206, allocations: 10.86 kB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.095e-05/0.9207, allocations: 16.67 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.737e-05/0.9207, allocations: 19.3 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.9208, allocations: 4.156 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.167e-05/0.9208, allocations: 21.53 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.295e-05/0.9209, allocations: 15.23 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.354e-05/0.9209, allocations: 18.45 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.9211, allocations: 55.92 kB / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.9211, allocations: 0 / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.315e-06/0.9211, allocations: 3.938 kB / 1.091 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.9211, allocations: 0 / 1.091 GB, free: 4.195 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.0005457/0.9217, allocations: 358.4 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.9217, allocations: 8.25 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.953e-05/0.9218, allocations: 4.391 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.394e-05/0.9219, allocations: 169.6 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.9219, allocations: 5.906 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.9219, allocations: 3.281 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.9221, allocations: 58.84 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.9221, allocations: 192 / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.9221, allocations: 5.266 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.9222, allocations: 0.8125 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.9224, allocations: 41 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004435/0.9228, allocations: 276.7 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.923, allocations: 46.78 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.637e-05/0.9231, allocations: 26.05 kB / 1.091 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.9231, allocations: 1.875 kB / 1.091 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.9233, allocations: 75.91 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.513e-06/0.9233, allocations: 1.156 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0004244/0.9237, allocations: 107.2 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.9238, allocations: 52.59 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.299e-05/0.9239, allocations: 106.6 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.9239, allocations: 26.64 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.559e-05/0.9239, allocations: 95.14 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.924, allocations: 15.03 kB / 1.092 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/0.924, allocations: 20.61 kB / 1.092 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.832e-05/0.9241, allocations: 314.9 kB / 1.092 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.9242, allocations: 22.12 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.9243, allocations: 61.42 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.9245, allocations: 71.73 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.9245, allocations: 0 / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002649/0.9248, allocations: 102.5 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.9248, allocations: 6.109 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.9248, allocations: 1.531 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.9248, allocations: 1.5 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.925, allocations: 17.36 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.925, allocations: 1.875 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.695e-05/0.925, allocations: 19.23 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.9251, allocations: 7.016 kB / 1.093 GB, free: 2.328 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.654e-05/0.9251, allocations: 122.1 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.239e-05/0.9251, allocations: 2.312 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002746/0.9254, allocations: 92.02 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.9254, allocations: 1.062 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.9254, allocations: 1.562 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.9255, allocations: 0 / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003799/0.9258, allocations: 349.9 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.9259, allocations: 0 / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.164e-05/0.9259, allocations: 9.969 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.9259, allocations: 0 / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.9259, allocations: 1.547 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.9259, allocations: 1.125 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.926, allocations: 0.75 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002553/0.9262, allocations: 191.4 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.213e-05/0.9262, allocations: 82.67 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.9263, allocations: 1.609 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-05/0.9264, allocations: 10.2 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-05/0.9264, allocations: 3.531 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.9264, allocations: 6.594 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.248e-05/0.9265, allocations: 90.34 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9265, allocations: 0 / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002472/0.9267, allocations: 10.09 kB / 1.093 GB, free: 1.473 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.0001487/0.9269, allocations: 101.5 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000264/0.9271, allocations: 61.22 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.9272, allocations: 4.969 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.9273, allocations: 30.59 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.9275, allocations: 5.344 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.9278, allocations: 147.1 kB / 1.094 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.928, allocations: 0.6812 MB / 1.094 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.928, allocations: 10.5 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of SimCode: time 6.92e-07/0.928, allocations: 4.688 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of Templates: time 0.002898/0.9309, allocations: 0.8499 MB / 1.095 GB, free: 440 kB / 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