Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.519/1.519, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.58/2.58, allocations: 390.2 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001253, allocations: 63.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8653/0.8666, allocations: 140.4 MB / 0.9496 GB, free: 9.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002121/0.8688, allocations: 0.6777 MB / 0.9503 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001463/0.8703, allocations: 1.201 MB / 0.9514 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.953e-05/0.8703, allocations: 0 / 0.9514 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.582e-05/0.8704, allocations: 3.938 kB / 0.9514 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.638e-05/0.8705, allocations: 9.25 kB / 0.9514 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000662/0.8711, allocations: 222.9 kB / 0.9517 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.8714, allocations: 183.4 kB / 0.9518 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.8715, allocations: 14.36 kB / 0.9518 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.8716, allocations: 68.08 kB / 0.9519 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.8717, allocations: 57.67 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.856e-05/0.8718, allocations: 15.91 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.549e-05/0.8719, allocations: 30.92 kB / 0.952 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.44e-05/0.8719, allocations: 11.83 kB / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.65e-05/0.872, allocations: 61.75 kB / 0.9521 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.8722, allocations: 155.2 kB / 0.9522 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.8722, allocations: 5.562 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8722, allocations: 0 / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.8722, allocations: 0 / 0.9522 GB, free: 7.039 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005208/0.8728, allocations: 439.8 kB / 0.9527 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.8728, allocations: 9.438 kB / 0.9527 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.275e-05/0.8729, allocations: 16.78 kB / 0.9527 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.7e-05/0.873, allocations: 167.1 kB / 0.9528 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.848e-05/0.873, allocations: 6 kB / 0.9528 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/0.8731, allocations: 13.14 kB / 0.9529 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.8732, allocations: 59.56 kB / 0.9529 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.8732, allocations: 0 / 0.9529 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.8732, allocations: 5.828 kB / 0.9529 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.8733, allocations: 0 / 0.9529 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.105e-05/0.8733, allocations: 11.38 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004784/0.8738, allocations: 356.1 kB / 0.9533 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.004e-05/0.8739, allocations: 40.83 kB / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.928e-05/0.8739, allocations: 23.75 kB / 0.9533 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.8739, allocations: 1.312 kB / 0.9533 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.8741, allocations: 84.64 kB / 0.9534 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.8742, allocations: 0 / 0.9534 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002823/0.8744, allocations: 128.8 kB / 0.9535 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.8745, allocations: 58.28 kB / 0.9536 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.291e-05/0.8746, allocations: 124 kB / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.8746, allocations: 34.14 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.8747, allocations: 96.98 kB / 0.9538 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.8747, allocations: 22.52 kB / 0.9539 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.622e-05/0.8748, allocations: 49.91 kB / 0.9539 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.83e-05/0.8749, allocations: 328.9 kB / 0.9542 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.875, allocations: 60.78 kB / 0.9543 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.8752, allocations: 107.3 kB / 0.9544 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.8754, allocations: 193 kB / 0.9546 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8754, allocations: 0 / 0.9546 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004473/0.8759, allocations: 277.5 kB / 0.9548 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.686e-05/0.8759, allocations: 68.73 kB / 0.9549 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.8759, allocations: 1.5 kB / 0.9549 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.876, allocations: 2.031 kB / 0.9549 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.122e-05/0.876, allocations: 8.203 kB / 0.9549 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.876, allocations: 6.156 kB / 0.9549 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.8764, allocations: 56.84 kB / 0.955 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.8764, allocations: 14.8 kB / 0.955 GB, free: 4.477 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 (onCounter.y,$PRE.onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,reset.y,$PRE.reset.y,$whenCondition2,booPul.y,$PRE.booPul.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.648e-05/0.8766, allocations: 122.8 kB / 0.9551 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.837e-05/0.8766, allocations: 11.5 kB / 0.9551 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.8766, allocations: 5.656 kB / 0.9551 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.8766, allocations: 13.02 kB / 0.9551 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.8766, allocations: 0 / 0.9551 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.8766, allocations: 1.219 kB / 0.9551 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.8769, allocations: 361.9 kB / 0.9555 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.8769, allocations: 0 / 0.9555 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.081e-05/0.8769, allocations: 5.562 kB / 0.9555 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.8769, allocations: 1.062 kB / 0.9555 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.877, allocations: 12.84 kB / 0.9555 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.877, allocations: 1.281 kB / 0.9555 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.877, allocations: 7.938 kB / 0.9555 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001769/0.8772, allocations: 196.8 kB / 0.9557 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.014e-05/0.8772, allocations: 83.58 kB / 0.9558 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.8772, allocations: 5.047 kB / 0.9558 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.4e-05/0.8773, allocations: 1.125 kB / 0.9558 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.8774, allocations: 6.688 kB / 0.9558 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.8774, allocations: 16.36 kB / 0.9558 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.969e-05/0.8774, allocations: 94.88 kB / 0.9559 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8774, allocations: 0 / 0.9559 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002847/0.8777, allocations: 33.17 kB / 0.9559 GB, free: 3.582 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: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001727/0.8779, allocations: 104.3 kB / 0.956 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003682/0.8783, allocations: 260.5 kB / 0.9563 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.8783, allocations: 0 / 0.9563 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.106e-05/0.8784, allocations: 33.59 kB / 0.9563 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.8787, allocations: 30.12 kB / 0.9563 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003738/0.879, allocations: 174.1 kB / 0.9565 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.8792, allocations: 0.6965 MB / 0.9572 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.85e-05/0.8792, allocations: 5.078 kB / 0.9572 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.075e-05/0.8793, allocations: 12.5 kB / 0.9572 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of SimCode: time 5.41e-07/0.8793, allocations: 0 / 0.9572 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of Templates: time 0.004671/0.8839, allocations: 1.924 MB / 0.9591 GB, free: 1.406 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches