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.01125/0.01125, allocations: 99.38 kB / 15.73 MB, free: 6.008 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.003315/0.003315, allocations: 196 kB / 16.68 MB, free: 5.93 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.406/2.406, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 63.89 kB / 0.9508 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9209/0.9222, allocations: 140.4 MB / 1.088 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002031/0.9243, allocations: 0.6635 MB / 1.089 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.9258, allocations: 1.049 MB / 1.09 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.38e-05/0.9259, allocations: 0.7188 kB / 1.09 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.736e-05/0.9259, allocations: 5.516 kB / 1.09 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.724e-05/0.9261, allocations: 5.391 kB / 1.09 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.9264, allocations: 39.88 kB / 1.09 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.9266, allocations: 38.72 kB / 1.09 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.9267, allocations: 14.83 kB / 1.09 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.655e-05/0.9268, allocations: 17.86 kB / 1.09 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.016e-05/0.9269, allocations: 25.7 kB / 1.09 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.9269, allocations: 3.344 kB / 1.09 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.106e-05/0.927, allocations: 18.92 kB / 1.09 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.359e-05/0.927, allocations: 10.88 kB / 1.09 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.83e-05/0.9271, allocations: 19.55 kB / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001646/0.9273, allocations: 49.92 kB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.9273, allocations: 0.875 kB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.924e-06/0.9273, allocations: 0 / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.9273, allocations: 0.9375 kB / 1.09 GB, free: 4.469 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.0006132/0.9279, allocations: 364.6 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.928, allocations: 13.97 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.397e-05/0.928, allocations: 4.094 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.9282, allocations: 168.1 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.9282, allocations: 1.469 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.9282, allocations: 11.34 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.9284, allocations: 58.92 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.9284, allocations: 4.188 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.9285, allocations: 9.641 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.9285, allocations: 1.062 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.9287, allocations: 36.16 kB / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005585/0.9292, allocations: 273.5 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.9294, allocations: 53.98 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.9295, allocations: 26.66 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.9296, allocations: 1.703 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.9298, allocations: 68.22 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 2.084e-06/0.9298, allocations: 0 / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0004615/0.9303, allocations: 111.3 kB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.9303, allocations: 52.95 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.208e-05/0.9304, allocations: 110.5 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.9305, allocations: 27.55 kB / 1.091 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.871e-05/0.9305, allocations: 85.89 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.9305, allocations: 15.69 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.9306, allocations: 25.33 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.569e-05/0.9307, allocations: 318.4 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.9308, allocations: 21.67 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.9309, allocations: 45.28 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.9311, allocations: 83.25 kB / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.9311, allocations: 0 / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002775/0.9314, allocations: 95.53 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.9315, allocations: 10.52 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.9315, allocations: 1.281 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/0.9315, allocations: 1.094 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.9316, allocations: 21.55 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.9317, allocations: 1.672 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.32e-05/0.9317, allocations: 15.42 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.9318, allocations: 3.203 kB / 1.092 GB, free: 2.59 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 0.0001126/0.9319, allocations: 118 kB / 1.092 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.9319, allocations: 6.484 kB / 1.092 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003065/0.9322, allocations: 95.28 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.9322, allocations: 1.578 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.9322, allocations: 1.031 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.9322, allocations: 0.6562 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004552/0.9327, allocations: 341.3 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.9327, allocations: 4.656 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.558e-05/0.9328, allocations: 13.06 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.9328, allocations: 1.375 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.9328, allocations: 0.5938 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.9328, allocations: 1.422 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.9328, allocations: 0.5625 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.9331, allocations: 183 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.031e-05/0.9332, allocations: 90.78 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.9332, allocations: 2.453 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.328e-05/0.9333, allocations: 5.078 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.9333, allocations: 4.781 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.9334, allocations: 5.766 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.907e-05/0.9334, allocations: 91 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9334, allocations: 0 / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002563/0.9337, allocations: 9.125 kB / 1.093 GB, free: 1.734 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.0001696/0.9338, allocations: 112.6 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003021/0.9342, allocations: 54.28 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.9342, allocations: 0 / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.9343, allocations: 30.61 kB / 1.093 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.9346, allocations: 9.812 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003303/0.9349, allocations: 125.5 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.9351, allocations: 0.6848 MB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.404e-05/0.9351, allocations: 3.734 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.361e-05/0.9351, allocations: 11.47 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.9351, allocations: 0 / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of Templates: time 0.00372/0.9389, allocations: 0.7536 MB / 1.095 GB, free: 0.6992 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/jenkins/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