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.441/1.441, allocations: 249.5 MB / 257 MB, free: 6.871 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.001054/0.001054, allocations: 180.9 kB / 316.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008453/0.0008456, allocations: 88.42 kB / 0.6714 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.147e-05/2.163e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2185, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6956/0.9141, allocations: 131.7 MB / 1.014 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.9144, allocations: 75.5 kB / 1.014 GB, free: 6.051 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002431/0.9168, allocations: 0.9215 MB / 1.015 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.213e-06/0.9168, allocations: 0 / 1.015 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.565e-06/0.9168, allocations: 0 / 1.015 GB, free: 5.223 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.00042/0.9173, allocations: 353.7 kB / 1.015 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.9173, allocations: 8.781 kB / 1.015 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.9174, allocations: 11.89 kB / 1.015 GB, free: 4.816 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.9175, allocations: 174.9 kB / 1.015 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.9175, allocations: 0 / 1.015 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.9176, allocations: 13.98 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.233e-05/0.9177, allocations: 19.67 kB / 1.015 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.536e-05/0.9177, allocations: 44 kB / 1.015 GB, free: 4.539 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.9178, allocations: 0 / 1.015 GB, free: 4.539 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.9178, allocations: 4 kB / 1.015 GB, free: 4.535 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.9178, allocations: 4 kB / 1.015 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004426/0.9182, allocations: 283 kB / 1.016 GB, free: 4.23 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.482e-05/0.9183, allocations: 40.7 kB / 1.016 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.165e-05/0.9184, allocations: 19.8 kB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.9184, allocations: 4 kB / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001345/0.9185, allocations: 74 kB / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.9185, allocations: 0 / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002027/0.9188, allocations: 83.84 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.9188, allocations: 54.66 kB / 1.016 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.9189, allocations: 107.4 kB / 1.016 GB, free: 3.848 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.9189, allocations: 29.7 kB / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.919, allocations: 90.75 kB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.919, allocations: 15.75 kB / 1.016 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.919, allocations: 0 / 1.016 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.9191, allocations: 321.5 kB / 1.017 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.091e-05/0.9191, allocations: 25.75 kB / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.581e-05/0.9192, allocations: 43.98 kB / 1.017 GB, free: 3.32 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.335e-05/0.9192, allocations: 20.33 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.9192, allocations: 0 / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001231/0.9194, allocations: 87.58 kB / 1.017 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.9194, allocations: 6.188 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.9194, allocations: 0 / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.9194, allocations: 7.938 kB / 1.017 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.894e-05/0.9195, allocations: 7.938 kB / 1.017 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.9195, allocations: 8.094 kB / 1.017 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.239e-05/0.9196, allocations: 11.98 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.9196, allocations: 10.86 kB / 1.017 GB, free: 3.176 MB / 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.323e-05/0.9197, allocations: 113.3 kB / 1.017 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.839e-05/0.9197, allocations: 11.84 kB / 1.017 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.223e-05/0.9197, allocations: 10.12 kB / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.9198, allocations: 12.08 kB / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.9198, allocations: 0 / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.9198, allocations: 0 / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000433/0.9202, allocations: 356.3 kB / 1.017 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.9202, allocations: 0 / 1.017 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.229e-05/0.9202, allocations: 8.875 kB / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.9202, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.9203, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.9203, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.9203, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.9204, allocations: 179 kB / 1.017 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.841e-05/0.9205, allocations: 88.7 kB / 1.017 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.9205, allocations: 7.172 kB / 1.017 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.9206, allocations: 19.92 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.9207, allocations: 11.98 kB / 1.018 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.9207, allocations: 0 / 1.018 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.269e-05/0.9207, allocations: 91.34 kB / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9207, allocations: 0 / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002252/0.921, allocations: 15.81 kB / 1.018 GB, free: 2.238 MB / 0.6355 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.0001148/0.9211, allocations: 115.1 kB / 1.018 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001167/0.9212, allocations: 46.81 kB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.9212, allocations: 0 / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.651e-05/0.9213, allocations: 23.69 kB / 1.018 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.9215, allocations: 15.94 kB / 1.018 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/0.9218, allocations: 111.8 kB / 1.018 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.922, allocations: 0.6926 MB / 1.019 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.104e-05/0.922, allocations: 8.656 kB / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.997e-05/0.9221, allocations: 11.44 kB / 1.019 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/0.9221, allocations: 0 / 1.019 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of Templates: time 0.002656/0.9247, allocations: 0.8496 MB / 1.019 GB, free: 368 kB / 0.6355 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