Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001282/0.001282, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.00128/0.00128, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.444/1.444, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.557/2.557, allocations: 437.1 MB / 0.7111 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 68.83 kB / 0.8699 GB, free: 2.156 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3035, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002082/0.3056, allocations: 0.6794 MB / 1.019 GB, free: 9.922 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001653/0.3073, allocations: 1.052 MB / 1.02 GB, free: 8.855 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.194e-05/0.3074, allocations: 0 / 1.02 GB, free: 8.855 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.3074, allocations: 3.938 kB / 1.02 GB, free: 8.852 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.666e-05/0.3076, allocations: 7.938 kB / 1.02 GB, free: 8.844 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.3079, allocations: 43.89 kB / 1.02 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.488e-05/0.308, allocations: 39.86 kB / 1.02 GB, free: 8.762 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.3081, allocations: 15.98 kB / 1.02 GB, free: 8.746 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.024e-05/0.3082, allocations: 15.94 kB / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.208e-05/0.3083, allocations: 27.89 kB / 1.02 GB, free: 8.703 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.3083, allocations: 4 kB / 1.02 GB, free: 8.699 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.072e-05/0.3084, allocations: 12 kB / 1.02 GB, free: 8.688 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/0.3084, allocations: 7.984 kB / 1.02 GB, free: 8.68 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.326e-05/0.3085, allocations: 23.81 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001551/0.3086, allocations: 59.84 kB / 1.02 GB, free: 8.598 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3086, allocations: 0 / 1.02 GB, free: 8.598 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3086, allocations: 0 / 1.02 GB, free: 8.598 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.3086, allocations: 0 / 1.02 GB, free: 8.598 MB / 0.795 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.0006038/0.3093, allocations: 361.6 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3093, allocations: 8.922 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.84e-05/0.3093, allocations: 4.938 kB / 1.02 GB, free: 8.184 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.3095, allocations: 176.2 kB / 1.02 GB, free: 7.973 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.3095, allocations: 8.375 kB / 1.02 GB, free: 7.965 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.3095, allocations: 384 / 1.02 GB, free: 7.965 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.3098, allocations: 62.22 kB / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.3098, allocations: 192 / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.3098, allocations: 3.938 kB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3098, allocations: 4 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.31, allocations: 35.95 kB / 1.021 GB, free: 7.855 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004967/0.3105, allocations: 276.9 kB / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.3107, allocations: 50.48 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/0.3108, allocations: 20.94 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.3108, allocations: 4 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.311, allocations: 75.31 kB / 1.021 GB, free: 7.363 MB / 0.795 GB Notification: Performance of pre-optimization done (n=5): time 1.453e-06/0.311, allocations: 0 / 1.021 GB, free: 7.363 MB / 0.795 GB Notification: Performance of matching and sorting (n=5): time 0.0004118/0.3114, allocations: 109.5 kB / 1.021 GB, free: 7.25 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.3115, allocations: 59.39 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.216e-05/0.3116, allocations: 105.8 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3116, allocations: 29.7 kB / 1.021 GB, free: 7.031 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.887e-05/0.3117, allocations: 88.12 kB / 1.021 GB, free: 6.941 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.3117, allocations: 11.81 kB / 1.021 GB, free: 6.93 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.3118, allocations: 17.72 kB / 1.021 GB, free: 6.906 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3119, allocations: 322.8 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.607e-05/0.312, allocations: 19.98 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.3121, allocations: 51.41 kB / 1.022 GB, free: 6.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.3124, allocations: 79.52 kB / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3124, allocations: 0 / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002638/0.3126, allocations: 105.5 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.3127, allocations: 4 kB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.3127, allocations: 4 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3127, allocations: 0 / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3128, allocations: 11.98 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.3128, allocations: 4.469 kB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.484e-05/0.3129, allocations: 19.95 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.3129, allocations: 4 kB / 1.022 GB, free: 6.254 MB / 0.795 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.712e-05/0.313, allocations: 121.7 kB / 1.022 GB, free: 6.125 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.024e-05/0.313, allocations: 4 kB / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.3133, allocations: 89.61 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3133, allocations: 0 / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.3133, allocations: 0 / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.3133, allocations: 4 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004654/0.3138, allocations: 342.5 kB / 1.022 GB, free: 5.629 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3138, allocations: 3.984 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.3139, allocations: 11.98 kB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3139, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3139, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3139, allocations: 0 / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3139, allocations: 4 kB / 1.023 GB, free: 5.609 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.3142, allocations: 187.3 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.284e-05/0.3143, allocations: 81.05 kB / 1.023 GB, free: 5.312 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.3143, allocations: 3.938 kB / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.292e-05/0.3144, allocations: 8.172 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.3145, allocations: 8 kB / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-06/0.3145, allocations: 11.94 kB / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.516e-05/0.3145, allocations: 91.25 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3145, allocations: 0 / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000245/0.3148, allocations: 12 kB / 1.023 GB, free: 5.18 MB / 0.795 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.0001612/0.315, allocations: 99.25 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002815/0.3152, allocations: 64.06 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3153, allocations: 0 / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.3154, allocations: 23.98 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.3156, allocations: 8 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003916/0.316, allocations: 173.9 kB / 1.023 GB, free: 4.777 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3164, allocations: 0.6885 MB / 1.024 GB, free: 4.062 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.049e-05/0.3164, allocations: 11.44 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3164, allocations: 0 / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of Templates: time 0.002629/0.319, allocations: 0.8178 MB / 1.025 GB, free: 3.238 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches