Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.458/1.458, allocations: 249.3 MB / 261.8 MB, free: 5.863 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 180.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.2 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008103/0.0008104, allocations: 90.52 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.559e-05/5.561e-05, allocations: 4 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2052, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7358/0.941, allocations: 131.5 MB / 1.02 GB, free: 3.242 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.9413, allocations: 64.53 kB / 1.02 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002426/0.9438, allocations: 0.9322 MB / 1.021 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.824e-06/0.9438, allocations: 0 / 1.021 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.9438, allocations: 4 kB / 1.021 GB, free: 2.352 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004231/0.9442, allocations: 350.8 kB / 1.021 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.9443, allocations: 8.031 kB / 1.022 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.9443, allocations: 11.89 kB / 1.022 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.9445, allocations: 178.1 kB / 1.022 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.9445, allocations: 4 kB / 1.022 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.9445, allocations: 2.734 kB / 1.022 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.9447, allocations: 57.3 kB / 1.022 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.9447, allocations: 5.688 kB / 1.022 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.9447, allocations: 0 / 1.022 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.9447, allocations: 3.984 kB / 1.022 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.016e-05/0.9448, allocations: 19.06 kB / 1.022 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000508/0.9453, allocations: 305.7 kB / 1.022 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.9454, allocations: 45.69 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.463e-05/0.9455, allocations: 16.11 kB / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.9455, allocations: 4 kB / 1.022 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.9456, allocations: 82.12 kB / 1.022 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.9456, allocations: 0 / 1.022 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002014/0.9459, allocations: 84.34 kB / 1.022 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.9459, allocations: 65.62 kB / 1.022 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.033e-05/0.946, allocations: 115.8 kB / 1.022 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.946, allocations: 25.7 kB / 1.022 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.9461, allocations: 91.44 kB / 1.023 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.9461, allocations: 23.8 kB / 1.023 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-06/0.9461, allocations: 3 kB / 1.023 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.9462, allocations: 314.4 kB / 1.023 GB, free: 480 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.175e-05/0.9463, allocations: 23 kB / 1.023 GB, free: 460 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.948e-05/0.9463, allocations: 52.41 kB / 1.023 GB, free: 400 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.761e-05/0.9464, allocations: 11.25 kB / 1.023 GB, free: 392 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.9464, allocations: 4 kB / 1.023 GB, free: 388 kB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001372/0.9465, allocations: 99.39 kB / 1.023 GB, free: 296 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.9466, allocations: 8 kB / 1.023 GB, free: 288 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.9466, allocations: 0 / 1.023 GB, free: 288 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.9466, allocations: 4.094 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.598e-05/0.9467, allocations: 18.03 kB / 1.023 GB, free: 268 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.9467, allocations: 4 kB / 1.023 GB, free: 264 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.232e-05/0.9468, allocations: 18.88 kB / 1.023 GB, free: 248 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.9468, allocations: 8 kB / 1.023 GB, free: 240 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition4,$whenCondition3,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition2,onCounter.reset,$PRE.reset.pulseStart,reset.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.832e-05/0.9469, allocations: 112.5 kB / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.9469, allocations: 7.906 kB / 1.023 GB, free: 116 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.772e-05/0.9469, allocations: 10.62 kB / 1.023 GB, free: 108 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.947, allocations: 4 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.947, allocations: 0 / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.947, allocations: 0 / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004718/0.9475, allocations: 395.7 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.9475, allocations: 0 / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.566e-06/0.9475, allocations: 0 / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.9475, allocations: 480 / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.9475, allocations: 0 / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.9475, allocations: 4 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.9475, allocations: 3.953 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001676/0.9477, allocations: 189 kB / 1.024 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.602e-05/0.9477, allocations: 84.58 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.9478, allocations: 3.938 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.9479, allocations: 15.98 kB / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.9479, allocations: 19.3 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.948, allocations: 4 kB / 1.024 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.654e-05/0.948, allocations: 89.66 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2e-07/0.948, allocations: 0 / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002056/0.9482, allocations: 15.5 kB / 1.024 GB, free: 15.25 MB / 0.6511 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 (booPul.y,onCounter.reset,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,onCounter.y,booPul.pulseStart,reset.pulseStart) * Number of discrete states: 1 (onCounter.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001536/0.9484, allocations: 111.8 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001401/0.9485, allocations: 53.5 kB / 1.024 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.9486, allocations: 0 / 1.024 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.448e-05/0.9486, allocations: 27.12 kB / 1.024 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.9489, allocations: 19.23 kB / 1.024 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003567/0.9492, allocations: 116.7 kB / 1.024 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.9496, allocations: 0.6926 MB / 1.025 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.236e-05/0.9496, allocations: 4.672 kB / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.931e-05/0.9496, allocations: 15.38 kB / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of SimCode: time 3.91e-07/0.9497, allocations: 0 / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of Templates: time 0.003294/0.953, allocations: 0.8942 MB / 1.026 GB, free: 13.32 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,onCounter.trigger,onCounter.reset,onCounter.y Variables in the result:$whenCondition1,booPul.Twidth,booPul.period,booPul.startTime,booPul.width,onCounter.reset,onCounter.trigger,onCounter.y,onCounter.y_start,reset.Twidth,reset.period,reset.startTime,reset.width,time