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.001308/0.001308, allocations: 106 kB / 15.99 MB, free: 6.355 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.001398/0.001398, allocations: 196.5 kB / 16.91 MB, free: 6.188 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.348/1.348, allocations: 222.9 MB / 240.6 MB, free: 15.38 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.403/2.403, allocations: 390.2 MB / 0.665 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 64.2 kB / 0.8127 GB, free: 33.23 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2668, allocations: 140.4 MB / 0.9498 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002075/0.2689, allocations: 0.7328 MB / 0.9505 GB, free: 8.453 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.2702, allocations: 1.042 MB / 0.9515 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.665e-05/0.2703, allocations: 4 kB / 0.9515 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.562e-05/0.2704, allocations: 3.938 kB / 0.9515 GB, free: 7.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.072e-05/0.2705, allocations: 7.922 kB / 0.9515 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.2707, allocations: 27.98 kB / 0.9516 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.162e-05/0.2708, allocations: 47.84 kB / 0.9516 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.2709, allocations: 15.98 kB / 0.9516 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.733e-05/0.271, allocations: 15.92 kB / 0.9516 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.169e-05/0.2711, allocations: 23.86 kB / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.2711, allocations: 4 kB / 0.9517 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.124e-05/0.2712, allocations: 15.98 kB / 0.9517 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.837e-05/0.2712, allocations: 8 kB / 0.9517 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.879e-05/0.2713, allocations: 23.91 kB / 0.9517 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.2714, allocations: 31.88 kB / 0.9517 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2714, allocations: 0 / 0.9517 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2714, allocations: 4 kB / 0.9517 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.2714, allocations: 0 / 0.9517 GB, free: 7.164 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.0005222/0.2719, allocations: 363.6 kB / 0.9521 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.272, allocations: 12.03 kB / 0.9521 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.958e-05/0.272, allocations: 0.9375 kB / 0.9521 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.2721, allocations: 168.3 kB / 0.9523 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.2721, allocations: 384 / 0.9523 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.2722, allocations: 4.375 kB / 0.9523 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.2724, allocations: 70.16 kB / 0.9523 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.2724, allocations: 192 / 0.9523 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.2724, allocations: 3.938 kB / 0.9523 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2724, allocations: 0 / 0.9523 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.2726, allocations: 35.97 kB / 0.9524 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004483/0.273, allocations: 284.9 kB / 0.9526 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.2732, allocations: 54.42 kB / 0.9527 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.999e-05/0.2733, allocations: 24.94 kB / 0.9527 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.2733, allocations: 4 kB / 0.9527 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.2735, allocations: 67.38 kB / 0.9528 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.512e-06/0.2736, allocations: 4 kB / 0.9528 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003878/0.274, allocations: 105.5 kB / 0.9529 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.274, allocations: 55.34 kB / 0.9529 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.004e-05/0.2741, allocations: 109.8 kB / 0.953 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.2741, allocations: 25.7 kB / 0.9531 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.2742, allocations: 92.08 kB / 0.9532 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.2742, allocations: 15.8 kB / 0.9532 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.307e-05/0.2742, allocations: 25.72 kB / 0.9532 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2743, allocations: 314.8 kB / 0.9535 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.785e-05/0.2745, allocations: 19.98 kB / 0.9535 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.2746, allocations: 47.41 kB / 0.9536 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/0.2748, allocations: 79.28 kB / 0.9536 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2748, allocations: 0 / 0.9536 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002693/0.2751, allocations: 101.6 kB / 0.9537 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2751, allocations: 13.97 kB / 0.9537 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2751, allocations: 0 / 0.9537 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.2751, allocations: 0 / 0.9537 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.2752, allocations: 19.92 kB / 0.9538 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.2752, allocations: 0 / 0.9538 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.2753, allocations: 11.92 kB / 0.9538 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.2753, allocations: 8 kB / 0.9538 GB, free: 4.816 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.773e-05/0.2754, allocations: 119.9 kB / 0.9539 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.2754, allocations: 3.906 kB / 0.9539 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.2757, allocations: 97.55 kB / 0.954 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2757, allocations: 4 kB / 0.954 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2757, allocations: 0 / 0.954 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.2757, allocations: 0 / 0.954 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.2762, allocations: 338.5 kB / 0.9543 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2762, allocations: 384 / 0.9543 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.443e-05/0.2762, allocations: 11.98 kB / 0.9543 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2763, allocations: 3.938 kB / 0.9543 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.2763, allocations: 4 kB / 0.9543 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2763, allocations: 0 / 0.9543 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2763, allocations: 4 kB / 0.9543 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.2766, allocations: 191.3 kB / 0.9545 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.2766, allocations: 77.11 kB / 0.9546 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.2766, allocations: 4 kB / 0.9546 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.64e-05/0.2767, allocations: 7.984 kB / 0.9546 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.2768, allocations: 4 kB / 0.9546 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.2768, allocations: 7.938 kB / 0.9546 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.77e-05/0.2768, allocations: 83.27 kB / 0.9547 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2769, allocations: 4 kB / 0.9547 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002552/0.2771, allocations: 12 kB / 0.9547 GB, free: 3.75 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.0001896/0.2773, allocations: 103.2 kB / 0.9548 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002537/0.2776, allocations: 59.89 kB / 0.9549 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2776, allocations: 0 / 0.9549 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.2777, allocations: 40.16 kB / 0.9549 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.278, allocations: 4 kB / 0.9549 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.2784, allocations: 167.2 kB / 0.9551 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.2786, allocations: 0.6883 MB / 0.9557 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.436e-05/0.2787, allocations: 11.44 kB / 0.9558 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.2787, allocations: 4 kB / 0.9558 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of Templates: time 0.002352/0.281, allocations: 0.8127 MB / 0.9566 GB, free: 1.805 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 -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