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.001847/0.001847, allocations: 103 kB / 16.36 MB, free: 6.336 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.002005/0.002005, allocations: 198.3 kB / 17.3 MB, free: 5.883 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.407/1.407, allocations: 222.9 MB / 241 MB, free: 15.15 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.265/2.265, allocations: 390.3 MB / 0.6655 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 67.47 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3068, allocations: 140.4 MB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002038/0.3089, allocations: 0.6555 MB / 0.9518 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.3102, allocations: 1.045 MB / 0.9528 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.942e-05/0.3103, allocations: 4 kB / 0.9528 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.589e-05/0.3104, allocations: 3.938 kB / 0.9528 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.451e-05/0.3104, allocations: 3.938 kB / 0.9528 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.3107, allocations: 39.83 kB / 0.9528 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.3109, allocations: 47.8 kB / 0.9529 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.311, allocations: 27.97 kB / 0.9529 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.614e-05/0.311, allocations: 15.98 kB / 0.9529 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.806e-05/0.3111, allocations: 27.84 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.3111, allocations: 4 kB / 0.953 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.633e-05/0.3112, allocations: 19.92 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.82e-05/0.3113, allocations: 8 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.4e-05/0.3113, allocations: 15.92 kB / 0.953 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3114, allocations: 51.8 kB / 0.9531 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3114, allocations: 4 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3114, allocations: 0 / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.3115, allocations: 0 / 0.9531 GB, free: 6.031 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.000527/0.312, allocations: 359.3 kB / 0.9534 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.312, allocations: 8.031 kB / 0.9534 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.3121, allocations: 4.938 kB / 0.9534 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.3122, allocations: 168.3 kB / 0.9536 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.3122, allocations: 8.375 kB / 0.9536 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.3122, allocations: 384 / 0.9536 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.3124, allocations: 66.17 kB / 0.9536 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3124, allocations: 192 / 0.9536 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.3125, allocations: 7.938 kB / 0.9537 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.3125, allocations: 0 / 0.9537 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.3126, allocations: 39.95 kB / 0.9537 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004503/0.3131, allocations: 276.9 kB / 0.954 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.3132, allocations: 50.42 kB / 0.954 GB, free: 4.91 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.441e-05/0.3133, allocations: 24.94 kB / 0.954 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.3134, allocations: 7.969 kB / 0.954 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.3136, allocations: 67.39 kB / 0.9541 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.373e-06/0.3136, allocations: 4 kB / 0.9541 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003684/0.314, allocations: 101.5 kB / 0.9542 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.314, allocations: 63.33 kB / 0.9543 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.294e-05/0.3141, allocations: 109.8 kB / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.3141, allocations: 29.69 kB / 0.9544 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.641e-05/0.3142, allocations: 84.14 kB / 0.9545 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.3142, allocations: 19.75 kB / 0.9545 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-05/0.3143, allocations: 21.7 kB / 0.9545 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.3144, allocations: 318.8 kB / 0.9548 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-05/0.3145, allocations: 19.98 kB / 0.9548 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.3146, allocations: 47.41 kB / 0.9549 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.3148, allocations: 83.27 kB / 0.955 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3148, allocations: 0 / 0.955 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002369/0.315, allocations: 97.62 kB / 0.9551 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3151, allocations: 7.938 kB / 0.9551 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3151, allocations: 4 kB / 0.9551 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3151, allocations: 0 / 0.9551 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3152, allocations: 15.92 kB / 0.9551 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3152, allocations: 4 kB / 0.9551 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.756e-05/0.3153, allocations: 11.92 kB / 0.9551 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3153, allocations: 4 kB / 0.9551 GB, free: 3.688 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 9.097e-05/0.3154, allocations: 125.4 kB / 0.9552 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.131e-05/0.3154, allocations: 3.906 kB / 0.9552 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002553/0.3157, allocations: 93.55 kB / 0.9553 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3157, allocations: 0 / 0.9553 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3157, allocations: 0 / 0.9553 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3157, allocations: 0 / 0.9553 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004465/0.3162, allocations: 342.8 kB / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3162, allocations: 0 / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.028e-05/0.3163, allocations: 12.06 kB / 0.9556 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3163, allocations: 3.984 kB / 0.9557 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.3163, allocations: 4 kB / 0.9557 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3163, allocations: 3.938 kB / 0.9557 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3163, allocations: 0 / 0.9557 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.3166, allocations: 187.4 kB / 0.9558 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.3166, allocations: 77.11 kB / 0.9559 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.3167, allocations: 3.984 kB / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.032e-05/0.3167, allocations: 7.984 kB / 0.9559 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.3168, allocations: 7.984 kB / 0.9559 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.3168, allocations: 3.938 kB / 0.9559 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.471e-05/0.3169, allocations: 87.28 kB / 0.956 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.026e-06/0.3169, allocations: 0 / 0.956 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002566/0.3171, allocations: 15.94 kB / 0.956 GB, free: 2.621 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.0001911/0.3173, allocations: 111.2 kB / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002702/0.3176, allocations: 55.89 kB / 0.9562 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3176, allocations: 0 / 0.9562 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.3177, allocations: 28.17 kB / 0.9562 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.318, allocations: 11.98 kB / 0.9562 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003577/0.3184, allocations: 125.5 kB / 0.9564 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.3187, allocations: 0.6883 MB / 0.957 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.234e-05/0.3187, allocations: 7.984 kB / 0.957 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.268e-05/0.3188, allocations: 11.44 kB / 0.957 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of SimCode: time 2.8e-07/0.3188, allocations: 0 / 0.957 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of Templates: time 0.003277/0.3221, allocations: 0.7442 MB / 0.9578 GB, free: 0.793 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 cvode -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