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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001126/0.001126, allocations: 114.6 kB / 16.37 MB, free: 6.012 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.001116/0.001116, allocations: 192.6 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.48/1.48, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.542/2.542, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 62.78 kB / 0.8707 GB, free: 1.398 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3547, allocations: 151.6 MB / 1.019 GB, free: 9.805 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002303/0.3571, allocations: 0.6869 MB / 1.019 GB, free: 9.109 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001794/0.3589, allocations: 1.2 MB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.931e-05/0.3589, allocations: 0 / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.618e-05/0.359, allocations: 7.938 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.739e-05/0.3591, allocations: 15.91 kB / 1.021 GB, free: 7.871 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007112/0.3598, allocations: 218.2 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.3601, allocations: 187.7 kB / 1.021 GB, free: 7.48 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.764e-05/0.3602, allocations: 15.98 kB / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.88e-05/0.3603, allocations: 67.89 kB / 1.021 GB, free: 7.398 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.3604, allocations: 75.7 kB / 1.021 GB, free: 7.324 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.3605, allocations: 16 kB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.889e-05/0.3606, allocations: 31.98 kB / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.559e-05/0.3606, allocations: 8 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.361e-05/0.3607, allocations: 63.75 kB / 1.021 GB, free: 7.207 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.3609, allocations: 155.6 kB / 1.021 GB, free: 7.055 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3609, allocations: 4 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3609, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.3609, allocations: 0 / 1.021 GB, free: 7.051 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.0005396/0.3615, allocations: 446.6 kB / 1.022 GB, free: 6.555 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3615, allocations: 12.03 kB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.218e-05/0.3616, allocations: 12.84 kB / 1.022 GB, free: 6.531 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.3617, allocations: 168.4 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.3618, allocations: 4.375 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.3618, allocations: 12.38 kB / 1.022 GB, free: 6.312 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.3619, allocations: 53.8 kB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.3619, allocations: 0 / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.3619, allocations: 0 / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.362, allocations: 3.938 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.809e-05/0.362, allocations: 12 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005312/0.3625, allocations: 368.6 kB / 1.023 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 8.591e-05/0.3626, allocations: 30.56 kB / 1.023 GB, free: 5.789 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.544e-05/0.3627, allocations: 16.86 kB / 1.023 GB, free: 5.77 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 9.178e-06/0.3627, allocations: 0 / 1.023 GB, free: 5.77 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001921/0.3629, allocations: 103.4 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.3629, allocations: 0 / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of matching and sorting (n=9): time 0.0003007/0.3632, allocations: 125.5 kB / 1.023 GB, free: 5.527 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.3633, allocations: 51.78 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.825e-05/0.3634, allocations: 125.7 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.3634, allocations: 33.7 kB / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.479e-05/0.3635, allocations: 92.36 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.3635, allocations: 23.73 kB / 1.023 GB, free: 5.176 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.709e-05/0.3636, allocations: 49.69 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3637, allocations: 322.8 kB / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.3639, allocations: 67.95 kB / 1.024 GB, free: 4.73 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.3641, allocations: 117.8 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.3643, allocations: 177.3 kB / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3643, allocations: 0 / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004526/0.3647, allocations: 284.7 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.141e-05/0.3648, allocations: 67.55 kB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3648, allocations: 8 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3648, allocations: 0 / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.067e-05/0.3649, allocations: 8 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3649, allocations: 4 kB / 1.024 GB, free: 3.992 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.3652, allocations: 55.78 kB / 1.024 GB, free: 3.938 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/0.3652, allocations: 11.98 kB / 1.024 GB, free: 3.926 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.0001113/0.3654, allocations: 139.2 kB / 1.024 GB, free: 3.781 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.344e-05/0.3654, allocations: 4 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.3654, allocations: 12.36 kB / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3654, allocations: 0 / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.3654, allocations: 0 / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3654, allocations: 4 kB / 1.024 GB, free: 3.758 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/0.3658, allocations: 358.4 kB / 1.025 GB, free: 3.352 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3658, allocations: 0 / 1.025 GB, free: 3.352 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.015e-05/0.3658, allocations: 8 kB / 1.025 GB, free: 3.344 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3658, allocations: 4 kB / 1.025 GB, free: 3.34 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.3658, allocations: 3.984 kB / 1.025 GB, free: 3.336 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3658, allocations: 4 kB / 1.025 GB, free: 3.332 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3658, allocations: 3.938 kB / 1.025 GB, free: 3.328 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001763/0.366, allocations: 191.6 kB / 1.025 GB, free: 3.125 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.606e-05/0.3661, allocations: 85.11 kB / 1.025 GB, free: 3.023 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.3661, allocations: 7.922 kB / 1.025 GB, free: 3.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.451e-05/0.3661, allocations: 4 kB / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.3662, allocations: 11.94 kB / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.3662, allocations: 7.984 kB / 1.025 GB, free: 2.992 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.984e-05/0.3663, allocations: 91.22 kB / 1.025 GB, free: 2.902 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3663, allocations: 0 / 1.025 GB, free: 2.902 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002783/0.3665, allocations: 35.98 kB / 1.025 GB, free: 2.867 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.0001541/0.3667, allocations: 105.3 kB / 1.025 GB, free: 2.758 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003617/0.3671, allocations: 262.7 kB / 1.025 GB, free: 2.477 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3671, allocations: 0 / 1.025 GB, free: 2.477 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.717e-05/0.3671, allocations: 31.94 kB / 1.026 GB, free: 2.445 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.3675, allocations: 18.48 kB / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003581/0.3678, allocations: 174.5 kB / 1.026 GB, free: 2.23 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.3681, allocations: 0.6936 MB / 1.026 GB, free: 1.512 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.74e-05/0.3681, allocations: 4.672 kB / 1.026 GB, free: 1.508 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.933e-05/0.3681, allocations: 15.38 kB / 1.026 GB, free: 1.492 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3681, allocations: 0 / 1.026 GB, free: 1.492 MB / 0.795 GB Notification: Performance of Templates: time 0.004471/0.3726, allocations: 1.93 MB / 1.028 GB, free: 15.59 MB / 0.8106 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=480 -s cvode -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