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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008353/0.0008354, allocations: 92.39 kB / 16.02 MB, free: 80 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.001095/0.001095, allocations: 180 kB / 16.92 MB, free: 6.652 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.455/1.455, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.55/2.55, allocations: 390.9 MB / 0.667 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004066, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7582/0.7586, allocations: 142.4 MB / 0.9557 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0008705/0.7596, allocations: 407.7 kB / 0.9561 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.761, allocations: 1.213 MB / 0.9573 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.022e-05/0.761, allocations: 0 / 0.9573 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.994e-05/0.761, allocations: 4 kB / 0.9573 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.102e-05/0.7611, allocations: 9.344 kB / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.7617, allocations: 201.4 kB / 0.9575 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.7618, allocations: 156.4 kB / 0.9577 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.013e-05/0.7619, allocations: 12.36 kB / 0.9577 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.302e-05/0.762, allocations: 59.8 kB / 0.9577 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.544e-05/0.7621, allocations: 54.23 kB / 0.9578 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.963e-05/0.7622, allocations: 8.062 kB / 0.9578 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.208e-05/0.7623, allocations: 23.2 kB / 0.9578 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.7623, allocations: 3.531 kB / 0.9578 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.216e-05/0.7624, allocations: 84.7 kB / 0.9579 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.7625, allocations: 104.7 kB / 0.958 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.7625, allocations: 1.438 kB / 0.958 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7625, allocations: 0 / 0.958 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.7625, allocations: 0 / 0.958 GB, free: 6.051 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.0003988/0.763, allocations: 416.9 kB / 0.9584 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.763, allocations: 9.125 kB / 0.9584 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.012e-05/0.7631, allocations: 8.156 kB / 0.9584 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.627e-05/0.7631, allocations: 175.8 kB / 0.9586 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.7632, allocations: 9.719 kB / 0.9586 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.72e-05/0.7632, allocations: 17.3 kB / 0.9586 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.7633, allocations: 52.56 kB / 0.9586 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.7633, allocations: 0 / 0.9586 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.7634, allocations: 3.984 kB / 0.9587 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.7634, allocations: 0 / 0.9587 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.545e-05/0.7634, allocations: 19.94 kB / 0.9587 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004442/0.7639, allocations: 359.7 kB / 0.959 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.363e-05/0.764, allocations: 29.58 kB / 0.959 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.853e-05/0.764, allocations: 23.81 kB / 0.9591 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.764, allocations: 0 / 0.9591 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.7642, allocations: 101.3 kB / 0.9592 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.7642, allocations: 0 / 0.9592 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002675/0.7645, allocations: 124.9 kB / 0.9593 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.7645, allocations: 57.52 kB / 0.9593 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.595e-05/0.7646, allocations: 119.7 kB / 0.9594 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.7646, allocations: 38.62 kB / 0.9595 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.309e-05/0.7647, allocations: 89 kB / 0.9596 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.7647, allocations: 27.66 kB / 0.9596 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.417e-05/0.7647, allocations: 25.14 kB / 0.9596 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.096e-05/0.7648, allocations: 325.5 kB / 0.9599 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.7649, allocations: 60.69 kB / 0.96 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.7651, allocations: 107.1 kB / 0.9601 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.7653, allocations: 181.6 kB / 0.9603 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.7653, allocations: 0 / 0.9603 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004128/0.7657, allocations: 284.2 kB / 0.9605 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.7658, allocations: 70.73 kB / 0.9606 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.7658, allocations: 1.844 kB / 0.9606 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.7658, allocations: 3.906 kB / 0.9606 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.91e-05/0.7658, allocations: 7.969 kB / 0.9606 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.7659, allocations: 1.969 kB / 0.9606 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/0.7663, allocations: 86.86 kB / 0.9607 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.222e-05/0.7663, allocations: 9.625 kB / 0.9607 GB, free: 3.5 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 8.619e-05/0.7664, allocations: 132.5 kB / 0.9608 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.7664, allocations: 12.41 kB / 0.9608 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.371e-05/0.7664, allocations: 5.75 kB / 0.9609 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.7664, allocations: 1.375 kB / 0.9609 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.7665, allocations: 0 / 0.9609 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.7665, allocations: 3.938 kB / 0.9609 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.7667, allocations: 370.7 kB / 0.9612 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.7667, allocations: 0 / 0.9612 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.024e-05/0.7668, allocations: 5.375 kB / 0.9612 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.7668, allocations: 0 / 0.9612 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.7668, allocations: 6.75 kB / 0.9612 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.7668, allocations: 0 / 0.9612 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.7668, allocations: 3.938 kB / 0.9612 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.7669, allocations: 200.8 kB / 0.9614 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.37e-05/0.767, allocations: 87.75 kB / 0.9615 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.767, allocations: 1.375 kB / 0.9615 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.182e-05/0.7671, allocations: 0 / 0.9615 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/0.7671, allocations: 12.05 kB / 0.9615 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.7671, allocations: 10.75 kB / 0.9615 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.475e-05/0.7672, allocations: 92.89 kB / 0.9616 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7672, allocations: 0 / 0.9616 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00029/0.7675, allocations: 28.88 kB / 0.9616 GB, free: 2.613 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.0001507/0.7676, allocations: 111.9 kB / 0.9617 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003725/0.768, allocations: 255.8 kB / 0.962 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.768, allocations: 4.312 kB / 0.962 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.787e-05/0.7681, allocations: 37.67 kB / 0.962 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.7684, allocations: 17.86 kB / 0.962 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004202/0.7689, allocations: 212 kB / 0.9623 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.769, allocations: 0.691 MB / 0.9629 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.7691, allocations: 16.14 kB / 0.9629 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of SimCode: time 5.31e-07/0.7691, allocations: 0 / 0.9629 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of Templates: time 0.003775/0.7729, allocations: 1.469 MB / 0.9644 GB, free: 0.6328 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/jenkins1/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