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.001213/0.001213, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001755/0.001755, allocations: 197 kB / 16.14 MB, free: 6.711 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.474/1.474, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.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.858/2.858, allocations: 437 MB / 0.7099 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 67.89 kB / 0.8686 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7664/0.7677, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00214/0.7699, allocations: 0.7457 MB / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001709/0.7716, allocations: 1.214 MB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.935e-05/0.7717, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.969e-05/0.7717, allocations: 3.938 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.763e-05/0.7718, allocations: 19.91 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000618/0.7724, allocations: 204.4 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.7726, allocations: 151.8 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.828e-05/0.7727, allocations: 12 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.7728, allocations: 63.88 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.649e-05/0.7729, allocations: 51.81 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.7729, allocations: 11.98 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.245e-05/0.773, allocations: 27.92 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.477e-05/0.7731, allocations: 7.984 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.61e-05/0.7732, allocations: 55.81 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.7734, allocations: 143.7 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.7734, allocations: 3.984 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.143e-06/0.7734, allocations: 4 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.7734, allocations: 0 / 1.019 GB, free: 96 kB / 0.7637 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.0005905/0.774, allocations: 436.7 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.7741, allocations: 12.02 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.762e-05/0.7741, allocations: 12.84 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.7743, allocations: 172.3 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.7743, allocations: 4.375 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.7744, allocations: 12.38 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.7745, allocations: 53.8 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.7745, allocations: 4 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.7745, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.7745, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.388e-05/0.7746, allocations: 19.92 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005516/0.7751, allocations: 368.6 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.313e-05/0.7752, allocations: 34.56 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.215e-05/0.7753, allocations: 20.94 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.134e-06/0.7753, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002177/0.7755, allocations: 95.3 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.7755, allocations: 0 / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.000301/0.7758, allocations: 121.8 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.7759, allocations: 55.48 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.871e-05/0.776, allocations: 129.7 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/0.776, allocations: 33.7 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.914e-05/0.7761, allocations: 92.36 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.7762, allocations: 23.73 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.804e-05/0.7763, allocations: 49.69 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.7764, allocations: 322.8 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.7766, allocations: 63.97 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.7767, allocations: 113.9 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.777, allocations: 181.3 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.777, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004713/0.7775, allocations: 284.7 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.844e-05/0.7775, allocations: 67.39 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.7775, allocations: 7.938 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.7776, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.436e-05/0.7776, allocations: 4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.7776, allocations: 7.984 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.778, allocations: 56 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.683e-05/0.7781, allocations: 19.98 kB / 1.022 GB, free: 12.96 MB / 0.7794 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.0001171/0.7782, allocations: 129.1 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.7782, allocations: 4 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.7782, allocations: 8.375 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.7782, allocations: 0 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.7783, allocations: 8 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.7783, allocations: 3.984 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.7786, allocations: 362.3 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.7786, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.258e-06/0.7787, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.7787, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.7787, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.7787, allocations: 3.984 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.7787, allocations: 7.922 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.7789, allocations: 199.5 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.969e-05/0.779, allocations: 89.02 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.853e-05/0.779, allocations: 0 / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.583e-05/0.779, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.7791, allocations: 11.92 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.7791, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.392e-05/0.7792, allocations: 95.2 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7792, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002881/0.7795, allocations: 36 kB / 1.023 GB, free: 11.91 MB / 0.7794 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.0001757/0.7797, allocations: 111.2 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003582/0.78, allocations: 250.7 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.78, allocations: 0 / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.81e-05/0.7801, allocations: 35.92 kB / 1.023 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.7804, allocations: 26.94 kB / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003551/0.7808, allocations: 173.3 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.781, allocations: 0.6926 MB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.684e-05/0.7811, allocations: 12.66 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.793e-05/0.7811, allocations: 15.44 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of SimCode: time 1.653e-06/0.7811, allocations: 4 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of Templates: time 0.00434/0.7855, allocations: 1.828 MB / 1.026 GB, free: 8.707 MB / 0.7794 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 -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/jenkins/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