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.001238/0.001238, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001353/0.001353, allocations: 192.9 kB / 16.14 MB, free: 6.719 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 / 239.8 MB, free: 4.598 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.39/2.39, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 63.91 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8516/0.8535, allocations: 140.3 MB / 0.9489 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002039/0.8556, allocations: 0.7312 MB / 0.9496 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001301/0.8569, allocations: 1.045 MB / 0.9507 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.889e-05/0.857, allocations: 1.406 kB / 0.9507 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.063e-05/0.857, allocations: 3.938 kB / 0.9507 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.66e-05/0.8571, allocations: 7.938 kB / 0.9507 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.8573, allocations: 37.48 kB / 0.9507 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.367e-05/0.8574, allocations: 40.3 kB / 0.9507 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.8576, allocations: 9.438 kB / 0.9508 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.525e-05/0.8576, allocations: 17.45 kB / 0.9508 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.578e-05/0.8577, allocations: 21.72 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.8577, allocations: 2.156 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.951e-05/0.8578, allocations: 12.3 kB / 0.9508 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.036e-05/0.8578, allocations: 10.77 kB / 0.9508 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.677e-05/0.8579, allocations: 20.12 kB / 0.9508 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.858, allocations: 47.06 kB / 0.9509 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.858, allocations: 4 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.092e-06/0.858, allocations: 1.656 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.858, allocations: 0 / 0.9509 GB, free: 7.711 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.0004913/0.8585, allocations: 359.8 kB / 0.9512 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.8586, allocations: 9.375 kB / 0.9512 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.108e-05/0.8586, allocations: 7.406 kB / 0.9512 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.67e-05/0.8587, allocations: 167.4 kB / 0.9514 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.8587, allocations: 9.625 kB / 0.9514 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.8587, allocations: 3.406 kB / 0.9514 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.8589, allocations: 53.48 kB / 0.9515 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.859, allocations: 192 / 0.9515 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.859, allocations: 15.91 kB / 0.9515 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.859, allocations: 1.625 kB / 0.9515 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.8592, allocations: 33.19 kB / 0.9515 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000412/0.8596, allocations: 279.6 kB / 0.9518 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.8597, allocations: 47.58 kB / 0.9518 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.714e-05/0.8598, allocations: 25.19 kB / 0.9518 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.8598, allocations: 4 kB / 0.9519 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.86, allocations: 67.95 kB / 0.9519 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 2.425e-06/0.86, allocations: 0 / 0.9519 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0003923/0.8604, allocations: 109.6 kB / 0.952 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.8605, allocations: 52.56 kB / 0.9521 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.907e-05/0.8606, allocations: 118.7 kB / 0.9522 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.8606, allocations: 26.77 kB / 0.9522 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.15e-05/0.8606, allocations: 85.17 kB / 0.9523 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.8606, allocations: 21.92 kB / 0.9523 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.8607, allocations: 19 kB / 0.9523 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.8607, allocations: 316.8 kB / 0.9526 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-05/0.8608, allocations: 25.41 kB / 0.9527 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.861, allocations: 50.75 kB / 0.9527 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.8611, allocations: 80.31 kB / 0.9528 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.8612, allocations: 4 kB / 0.9528 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002322/0.8614, allocations: 101 kB / 0.9529 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.8614, allocations: 7.906 kB / 0.9529 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.8614, allocations: 256 / 0.9529 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.8614, allocations: 1.594 kB / 0.9529 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.8616, allocations: 17.67 kB / 0.9529 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.8616, allocations: 11.14 kB / 0.9529 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.24e-05/0.8616, allocations: 7.266 kB / 0.9529 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.8617, allocations: 3.031 kB / 0.9529 GB, free: 5.688 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 6.823e-05/0.8617, allocations: 120.9 kB / 0.953 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.226e-05/0.8617, allocations: 7.188 kB / 0.9531 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002454/0.862, allocations: 88.11 kB / 0.9531 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.862, allocations: 1.25 kB / 0.9531 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.862, allocations: 4 kB / 0.9531 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.862, allocations: 1.094 kB / 0.9531 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003435/0.8624, allocations: 340.3 kB / 0.9535 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.8624, allocations: 0 / 0.9535 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.8625, allocations: 10.45 kB / 0.9535 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.8625, allocations: 1.438 kB / 0.9535 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.8625, allocations: 0 / 0.9535 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.8625, allocations: 5.688 kB / 0.9535 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.8625, allocations: 0 / 0.9535 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.8627, allocations: 193.5 kB / 0.9537 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/0.8628, allocations: 78.64 kB / 0.9537 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.8628, allocations: 0 / 0.9537 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.789e-05/0.8629, allocations: 7.641 kB / 0.9538 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.8629, allocations: 7.188 kB / 0.9538 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.8629, allocations: 4.969 kB / 0.9538 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.833e-05/0.863, allocations: 88.92 kB / 0.9538 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.072e-06/0.863, allocations: 0 / 0.9538 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002393/0.8632, allocations: 12.91 kB / 0.9539 GB, free: 4.77 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.0001457/0.8634, allocations: 101.8 kB / 0.954 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.8636, allocations: 61.7 kB / 0.954 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.8636, allocations: 0 / 0.954 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.8637, allocations: 32.62 kB / 0.954 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.864, allocations: 8.312 kB / 0.9541 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003038/0.8643, allocations: 141.8 kB / 0.9542 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.8645, allocations: 0.6811 MB / 0.9549 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.224e-05/0.8645, allocations: 3.812 kB / 0.9549 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.341e-05/0.8645, allocations: 9.938 kB / 0.9549 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of SimCode: time 2.91e-07/0.8645, allocations: 0 / 0.9549 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of Templates: time 0.003029/0.8676, allocations: 0.6706 MB / 0.9555 GB, free: 3.441 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