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.001213/0.001213, allocations: 116.4 kB / 16.37 MB, free: 6 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.001996/0.001996, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.267/2.267, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 62.75 kB / 0.814 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3018, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002407/0.3043, allocations: 0.6739 MB / 0.9518 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001713/0.306, allocations: 1.208 MB / 0.953 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.841e-05/0.306, allocations: 0 / 0.953 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.603e-05/0.3061, allocations: 7.875 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.482e-05/0.3062, allocations: 7.875 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006761/0.3069, allocations: 219.4 kB / 0.9532 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000305/0.3072, allocations: 191.7 kB / 0.9534 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.914e-05/0.3073, allocations: 11.98 kB / 0.9534 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.816e-05/0.3074, allocations: 71.88 kB / 0.9535 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.3075, allocations: 63.84 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.3076, allocations: 16 kB / 0.9535 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.623e-05/0.3077, allocations: 31.92 kB / 0.9536 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.3077, allocations: 15.92 kB / 0.9536 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.627e-05/0.3078, allocations: 63.81 kB / 0.9537 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.308, allocations: 147.7 kB / 0.9538 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.308, allocations: 7.984 kB / 0.9538 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.643e-06/0.308, allocations: 0 / 0.9538 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.361e-06/0.308, allocations: 0 / 0.9538 GB, free: 5.312 MB / 0.7325 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.0006166/0.3087, allocations: 434.6 kB / 0.9542 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3087, allocations: 12.02 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.825e-05/0.3088, allocations: 12.84 kB / 0.9542 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3089, allocations: 168.4 kB / 0.9544 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.3089, allocations: 4.375 kB / 0.9544 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/0.309, allocations: 16.38 kB / 0.9544 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.3091, allocations: 57.73 kB / 0.9545 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3091, allocations: 3.938 kB / 0.9545 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.3091, allocations: 0 / 0.9545 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3091, allocations: 4 kB / 0.9545 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.364e-05/0.3092, allocations: 11.98 kB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.3098, allocations: 360.6 kB / 0.9548 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.826e-05/0.3099, allocations: 38.5 kB / 0.9549 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.606e-05/0.3099, allocations: 20.94 kB / 0.9549 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.3099, allocations: 4 kB / 0.9549 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/0.3101, allocations: 87.36 kB / 0.955 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/0.3101, allocations: 0 / 0.955 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0002896/0.3104, allocations: 125.5 kB / 0.9551 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001725/0.3106, allocations: 59.39 kB / 0.9552 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.3107, allocations: 117.8 kB / 0.9553 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.3107, allocations: 37.7 kB / 0.9553 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.789e-05/0.3108, allocations: 96.27 kB / 0.9554 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.3109, allocations: 19.8 kB / 0.9554 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-05/0.311, allocations: 49.69 kB / 0.9555 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3111, allocations: 330.7 kB / 0.9558 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.3113, allocations: 59.97 kB / 0.9558 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.3114, allocations: 110 kB / 0.9559 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.3116, allocations: 181.3 kB / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3117, allocations: 4 kB / 0.9561 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000451/0.3121, allocations: 280.7 kB / 0.9564 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.296e-05/0.3122, allocations: 71.39 kB / 0.9565 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3122, allocations: 0 / 0.9565 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.3122, allocations: 4 kB / 0.9565 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.884e-05/0.3123, allocations: 4 kB / 0.9565 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3123, allocations: 3.984 kB / 0.9565 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.3126, allocations: 63.94 kB / 0.9565 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.3127, allocations: 16.03 kB / 0.9565 GB, free: 2.188 MB / 0.7325 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 0.0001459/0.3128, allocations: 133.7 kB / 0.9567 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.3129, allocations: 7.984 kB / 0.9567 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.736e-05/0.3129, allocations: 12.38 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3129, allocations: 0 / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.3129, allocations: 4 kB / 0.9567 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3129, allocations: 0 / 0.9567 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/0.3134, allocations: 362.4 kB / 0.957 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3134, allocations: 0 / 0.957 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.829e-06/0.3134, allocations: 480 / 0.957 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.3134, allocations: 4 kB / 0.957 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3134, allocations: 0 / 0.957 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3134, allocations: 0 / 0.957 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.3134, allocations: 7.875 kB / 0.9571 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.3137, allocations: 203.4 kB / 0.9572 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-05/0.3137, allocations: 85.02 kB / 0.9573 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.3138, allocations: 0 / 0.9573 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.461e-05/0.3138, allocations: 7.938 kB / 0.9573 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/0.3139, allocations: 11.92 kB / 0.9573 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.3139, allocations: 4 kB / 0.9573 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.777e-05/0.314, allocations: 91.27 kB / 0.9574 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.21e-07/0.314, allocations: 0 / 0.9574 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002995/0.3143, allocations: 40 kB / 0.9575 GB, free: 1.133 MB / 0.7325 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.0002141/0.3145, allocations: 107.2 kB / 0.9576 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004462/0.315, allocations: 254.6 kB / 0.9578 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.315, allocations: 0 / 0.9578 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.924e-05/0.315, allocations: 31.98 kB / 0.9579 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.3154, allocations: 34 kB / 0.9579 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003912/0.3158, allocations: 162.5 kB / 0.958 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.3162, allocations: 0.6922 MB / 0.9587 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.229e-05/0.3162, allocations: 4.672 kB / 0.9587 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.233e-05/0.3163, allocations: 15.38 kB / 0.9587 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of SimCode: time 2.51e-07/0.3163, allocations: 4.281 kB / 0.9587 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of Templates: time 0.00522/0.3215, allocations: 1.929 MB / 0.9606 GB, free: 13.84 MB / 0.7481 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 -s cvode -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