Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001644/0.001644, allocations: 105.5 kB / 16.27 MB, free: 5.98 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.001854/0.001854, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.439/1.439, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.563/2.563, allocations: 437.1 MB / 0.7111 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 64.42 kB / 0.8699 GB, free: 2.16 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3274, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002517/0.3299, allocations: 0.6932 MB / 1.019 GB, free: 9.898 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.3316, allocations: 1.196 MB / 1.02 GB, free: 8.688 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.589e-05/0.3317, allocations: 0 / 1.02 GB, free: 8.688 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.313e-05/0.3317, allocations: 3.938 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.92e-05/0.3318, allocations: 15.86 kB / 1.02 GB, free: 8.668 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000617/0.3324, allocations: 226 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.3327, allocations: 183.7 kB / 1.02 GB, free: 8.273 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.737e-05/0.3328, allocations: 15.97 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.397e-05/0.3329, allocations: 63.89 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.448e-05/0.333, allocations: 59.86 kB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/0.333, allocations: 16 kB / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.624e-05/0.3331, allocations: 31.92 kB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.58e-05/0.3331, allocations: 15.92 kB / 1.02 GB, free: 8.074 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.3332, allocations: 63.81 kB / 1.02 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.3334, allocations: 147.7 kB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3335, allocations: 4 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3335, allocations: 0 / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.088e-06/0.3335, allocations: 0 / 1.021 GB, free: 7.863 MB / 0.795 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.0005568/0.334, allocations: 442.9 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.3341, allocations: 12.03 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.045e-05/0.3341, allocations: 12.84 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.3343, allocations: 168.4 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.3343, allocations: 8.375 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.3343, allocations: 12.38 kB / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.3345, allocations: 53.8 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3345, allocations: 3.938 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.3345, allocations: 0 / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.3345, allocations: 4 kB / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.771e-05/0.3346, allocations: 11.98 kB / 1.021 GB, free: 7.047 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005551/0.3351, allocations: 368.6 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 9.275e-05/0.3352, allocations: 34.52 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.428e-05/0.3353, allocations: 20.94 kB / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.3353, allocations: 3.938 kB / 1.022 GB, free: 6.566 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.3355, allocations: 91.36 kB / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.3355, allocations: 3.938 kB / 1.022 GB, free: 6.461 MB / 0.795 GB Notification: Performance of matching and sorting (n=9): time 0.0002917/0.3358, allocations: 125.5 kB / 1.022 GB, free: 6.332 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.3358, allocations: 55.41 kB / 1.022 GB, free: 6.266 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.336, allocations: 117.8 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.336, allocations: 33.7 kB / 1.022 GB, free: 6.102 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.59e-05/0.3361, allocations: 96.36 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.3361, allocations: 15.8 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.3362, allocations: 53.69 kB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3364, allocations: 326.8 kB / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.3365, allocations: 59.97 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.3367, allocations: 109.9 kB / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.3369, allocations: 181.3 kB / 1.023 GB, free: 5.203 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.3369, allocations: 4 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004625/0.3374, allocations: 280.9 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.044e-05/0.3375, allocations: 71.39 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3375, allocations: 4 kB / 1.023 GB, free: 4.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3375, allocations: 4 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.174e-05/0.3376, allocations: 7.984 kB / 1.023 GB, free: 4.809 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.3376, allocations: 0 / 1.023 GB, free: 4.809 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.3379, allocations: 63.78 kB / 1.023 GB, free: 4.746 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.338, allocations: 12.02 kB / 1.023 GB, free: 4.734 MB / 0.795 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.0001138/0.3381, allocations: 135.9 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.3381, allocations: 4 kB / 1.024 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.3382, allocations: 8.375 kB / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3382, allocations: 0 / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3382, allocations: 7.922 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3382, allocations: 0 / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/0.3386, allocations: 374.7 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3386, allocations: 0 / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.239e-05/0.3386, allocations: 4 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.3386, allocations: 0 / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.3386, allocations: 3.984 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3386, allocations: 0 / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3386, allocations: 3.938 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001964/0.3388, allocations: 195.5 kB / 1.024 GB, free: 3.934 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.3389, allocations: 81.02 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.3389, allocations: 8 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.293e-05/0.339, allocations: 3.984 kB / 1.024 GB, free: 3.824 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.339, allocations: 19.95 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.339, allocations: 0 / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.703e-05/0.3391, allocations: 95.27 kB / 1.024 GB, free: 3.711 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3391, allocations: 0 / 1.024 GB, free: 3.711 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002751/0.3394, allocations: 35.98 kB / 1.024 GB, free: 3.676 MB / 0.795 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.0001714/0.3396, allocations: 103.2 kB / 1.024 GB, free: 3.566 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003928/0.34, allocations: 262.6 kB / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.34, allocations: 0 / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.784e-05/0.34, allocations: 35.98 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.3403, allocations: 11.98 kB / 1.025 GB, free: 3.238 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003797/0.3407, allocations: 208.8 kB / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.3411, allocations: 0.6932 MB / 1.026 GB, free: 2.281 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.214e-05/0.3411, allocations: 11.44 kB / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of SimCode: time 4.31e-07/0.3411, allocations: 0 / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of Templates: time 0.003191/0.3443, allocations: 1.486 MB / 1.027 GB, free: 0.8008 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches