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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00145/0.00145, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001587/0.001587, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.334/2.334, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 65.45 kB / 0.814 GB, free: 32.56 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3072, allocations: 140.4 MB / 0.9511 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001963/0.3092, allocations: 0.6627 MB / 0.9518 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3105, allocations: 1.041 MB / 0.9528 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.259e-05/0.3105, allocations: 0 / 0.9528 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.291e-05/0.3106, allocations: 3.938 kB / 0.9528 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.34e-05/0.3106, allocations: 7.922 kB / 0.9528 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.3109, allocations: 39.84 kB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.311e-05/0.311, allocations: 47.84 kB / 0.9529 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3111, allocations: 16 kB / 0.9529 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.66e-05/0.3112, allocations: 23.92 kB / 0.9529 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.315e-05/0.3113, allocations: 15.92 kB / 0.9529 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.3113, allocations: 4 kB / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.77e-05/0.3114, allocations: 23.91 kB / 0.953 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.05e-05/0.3114, allocations: 11.98 kB / 0.953 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.319e-05/0.3114, allocations: 15.88 kB / 0.953 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.3116, allocations: 51.84 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3116, allocations: 0 / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3116, allocations: 3.938 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.3116, allocations: 0 / 0.953 GB, free: 6.109 MB / 0.7325 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.0005064/0.3121, allocations: 363.3 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3122, allocations: 16.02 kB / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.3122, allocations: 0.9375 kB / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.3123, allocations: 168.3 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.3123, allocations: 384 / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.3123, allocations: 8.359 kB / 0.9536 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.3125, allocations: 62.17 kB / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.3125, allocations: 192 / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.3126, allocations: 7.938 kB / 0.9536 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3126, allocations: 0 / 0.9536 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.3127, allocations: 35.95 kB / 0.9537 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004525/0.3132, allocations: 280.9 kB / 0.9539 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.3133, allocations: 50.44 kB / 0.954 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.39e-05/0.3134, allocations: 32.92 kB / 0.954 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.3135, allocations: 4 kB / 0.954 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/0.3136, allocations: 59.39 kB / 0.9541 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.283e-06/0.3136, allocations: 0 / 0.9541 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003663/0.314, allocations: 117.5 kB / 0.9542 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.3141, allocations: 59.28 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.614e-05/0.3141, allocations: 109.8 kB / 0.9544 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.3142, allocations: 25.7 kB / 0.9544 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.767e-05/0.3142, allocations: 88.14 kB / 0.9545 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.3142, allocations: 11.8 kB / 0.9545 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.3143, allocations: 25.7 kB / 0.9545 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.832e-05/0.3144, allocations: 314.8 kB / 0.9548 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.138e-05/0.3145, allocations: 27.97 kB / 0.9548 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.3146, allocations: 47.41 kB / 0.9549 GB, free: 4 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.3148, allocations: 79.28 kB / 0.955 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3148, allocations: 0 / 0.955 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000242/0.315, allocations: 97.58 kB / 0.955 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.3151, allocations: 8 kB / 0.9551 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3151, allocations: 128 / 0.9551 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.3151, allocations: 4 kB / 0.9551 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.3152, allocations: 19.92 kB / 0.9551 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3152, allocations: 0 / 0.9551 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.194e-05/0.3153, allocations: 7.938 kB / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.3153, allocations: 7.984 kB / 0.9551 GB, free: 3.762 MB / 0.7325 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 7.671e-05/0.3154, allocations: 121.7 kB / 0.9552 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.3154, allocations: 3.906 kB / 0.9552 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002482/0.3156, allocations: 101.5 kB / 0.9553 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3157, allocations: 4 kB / 0.9553 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3157, allocations: 0 / 0.9553 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3157, allocations: 0 / 0.9553 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.3161, allocations: 330.9 kB / 0.9556 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3161, allocations: 0 / 0.9556 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.848e-05/0.3161, allocations: 15.98 kB / 0.9556 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3161, allocations: 4 kB / 0.9556 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.3162, allocations: 0 / 0.9556 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.425e-06/0.3162, allocations: 3.938 kB / 0.9557 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3162, allocations: 0 / 0.9557 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.3164, allocations: 183.4 kB / 0.9558 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.32e-05/0.3165, allocations: 81.09 kB / 0.9559 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.3165, allocations: 8 kB / 0.9559 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.16e-05/0.3166, allocations: 4 kB / 0.9559 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/0.3166, allocations: 11.92 kB / 0.9559 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.3167, allocations: 3.938 kB / 0.9559 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.612e-05/0.3167, allocations: 83.28 kB / 0.956 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3167, allocations: 0 / 0.956 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002511/0.317, allocations: 15.98 kB / 0.956 GB, free: 2.695 MB / 0.7325 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.0001423/0.3171, allocations: 99.25 kB / 0.9561 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002235/0.3173, allocations: 59.89 kB / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3173, allocations: 0 / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.619e-05/0.3174, allocations: 31.91 kB / 0.9562 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.3177, allocations: 15.05 kB / 0.9562 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.318, allocations: 129.8 kB / 0.9563 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.3183, allocations: 0.6883 MB / 0.957 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.7e-05/0.3183, allocations: 4 kB / 0.957 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.447e-05/0.3184, allocations: 11.44 kB / 0.957 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.3184, allocations: 0 / 0.957 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of Templates: time 0.00284/0.3212, allocations: 0.7507 MB / 0.9578 GB, free: 0.8633 MB / 0.7325 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 -s gbode -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