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.001319/0.001319, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00153/0.00153, allocations: 190.5 kB / 16.25 MB, free: 6.629 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.475/1.475, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.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.542/2.542, allocations: 390.2 MB / 0.6643 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7684/0.7696, allocations: 140.4 MB / 0.9491 GB, free: 9.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002203/0.7718, allocations: 0.7209 MB / 0.9498 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.7734, allocations: 1.043 MB / 0.9508 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.74e-05/0.7734, allocations: 5.375 kB / 0.9508 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.353e-05/0.7735, allocations: 3.938 kB / 0.9508 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.989e-05/0.7736, allocations: 1.375 kB / 0.9508 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.7739, allocations: 37.53 kB / 0.9509 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.96e-05/0.774, allocations: 40.36 kB / 0.9509 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.7741, allocations: 17.42 kB / 0.9509 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.367e-05/0.7742, allocations: 13.44 kB / 0.9509 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.62e-05/0.7743, allocations: 26.72 kB / 0.951 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.7743, allocations: 6.75 kB / 0.951 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.649e-05/0.7744, allocations: 22.19 kB / 0.951 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.7744, allocations: 6.719 kB / 0.951 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.7745, allocations: 19.73 kB / 0.951 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.7746, allocations: 48.27 kB / 0.9511 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.7746, allocations: 0 / 0.9511 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.885e-06/0.7746, allocations: 0 / 0.9511 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.7747, allocations: 0 / 0.9511 GB, free: 7.48 MB / 0.7169 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.0005482/0.7752, allocations: 365.9 kB / 0.9514 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.7753, allocations: 13.03 kB / 0.9514 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.7753, allocations: 2.656 kB / 0.9514 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.74e-05/0.7754, allocations: 166.9 kB / 0.9516 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.7754, allocations: 1.719 kB / 0.9516 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.7755, allocations: 11.17 kB / 0.9516 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.7757, allocations: 62.05 kB / 0.9517 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.7757, allocations: 192 / 0.9517 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.7757, allocations: 3.938 kB / 0.9517 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.7757, allocations: 1.406 kB / 0.9517 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.7759, allocations: 45.86 kB / 0.9517 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004641/0.7764, allocations: 267.5 kB / 0.952 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.7766, allocations: 51.33 kB / 0.952 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.7767, allocations: 28.38 kB / 0.952 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.7767, allocations: 1.469 kB / 0.952 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.777, allocations: 66.62 kB / 0.9521 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.744e-06/0.777, allocations: 0 / 0.9521 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000442/0.7774, allocations: 111.1 kB / 0.9522 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.7775, allocations: 55.34 kB / 0.9523 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.077e-05/0.7776, allocations: 106.8 kB / 0.9524 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.7776, allocations: 27.14 kB / 0.9524 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.822e-05/0.7776, allocations: 93.22 kB / 0.9525 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.7777, allocations: 17.86 kB / 0.9525 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.7777, allocations: 19.97 kB / 0.9525 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.7778, allocations: 316 kB / 0.9528 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.7779, allocations: 24.52 kB / 0.9528 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.778, allocations: 51.19 kB / 0.9529 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.7783, allocations: 80.05 kB / 0.953 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7783, allocations: 3.938 kB / 0.953 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002878/0.7786, allocations: 93.97 kB / 0.9531 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.7786, allocations: 5.875 kB / 0.9531 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.7786, allocations: 3.938 kB / 0.9531 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.7786, allocations: 6.75 kB / 0.9531 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.7788, allocations: 16.7 kB / 0.9531 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.7788, allocations: 6.641 kB / 0.9531 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.891e-05/0.7789, allocations: 11.77 kB / 0.9531 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.7789, allocations: 4.094 kB / 0.9531 GB, free: 5.457 MB / 0.7169 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.18e-05/0.779, allocations: 116.7 kB / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.495e-05/0.779, allocations: 9.078 kB / 0.9532 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/0.7793, allocations: 97.3 kB / 0.9533 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7793, allocations: 1.375 kB / 0.9533 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.7793, allocations: 320 / 0.9533 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.7793, allocations: 0 / 0.9533 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004015/0.7797, allocations: 344.5 kB / 0.9537 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.7797, allocations: 1.656 kB / 0.9537 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.628e-05/0.7798, allocations: 5.469 kB / 0.9537 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.7798, allocations: 5.812 kB / 0.9537 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.7798, allocations: 3.984 kB / 0.9537 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.7799, allocations: 3.938 kB / 0.9537 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7799, allocations: 1.531 kB / 0.9537 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.7802, allocations: 181 kB / 0.9539 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.649e-05/0.7802, allocations: 78.48 kB / 0.9539 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.7802, allocations: 5.688 kB / 0.9539 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.7803, allocations: 10.61 kB / 0.9539 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.7804, allocations: 2.969 kB / 0.9539 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.7804, allocations: 5.688 kB / 0.954 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.305e-05/0.7805, allocations: 88.39 kB / 0.954 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7805, allocations: 0 / 0.954 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003267/0.7808, allocations: 8.469 kB / 0.954 GB, free: 4.539 MB / 0.7169 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.0001695/0.781, allocations: 106 kB / 0.9541 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003185/0.7813, allocations: 62.2 kB / 0.9542 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7813, allocations: 0 / 0.9542 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.7814, allocations: 28.55 kB / 0.9542 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.7818, allocations: 17.88 kB / 0.9542 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000366/0.7822, allocations: 142.1 kB / 0.9544 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.7823, allocations: 0.685 MB / 0.9551 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.778e-05/0.7824, allocations: 6.375 kB / 0.9551 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.03e-05/0.7824, allocations: 15.27 kB / 0.9551 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.7824, allocations: 0 / 0.9551 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of Templates: time 0.003886/0.7863, allocations: 0.689 MB / 0.9557 GB, free: 3.184 MB / 0.7169 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