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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 192.9 kB / 16.53 MB, free: 6.664 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.496/2.496, allocations: 437.1 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 67.91 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6488/0.6503, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001905/0.6522, allocations: 0.681 MB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.6536, allocations: 1.194 MB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.679e-05/0.6537, allocations: 4 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.345e-05/0.6537, allocations: 3.938 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.811e-05/0.6538, allocations: 15.92 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006834/0.6545, allocations: 213.9 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002161/0.6547, allocations: 191.6 kB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.299e-05/0.6548, allocations: 16 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.655, allocations: 67.88 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.762e-05/0.6551, allocations: 51.86 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.6551, allocations: 16 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.6552, allocations: 32.2 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.782e-05/0.6553, allocations: 15.84 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.932e-05/0.6553, allocations: 55.89 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.6556, allocations: 153.7 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6556, allocations: 0 / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.433e-06/0.6556, allocations: 4 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.6556, allocations: 4 kB / 1.02 GB, free: 15.75 MB / 0.7794 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.0005134/0.6561, allocations: 438.7 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.6562, allocations: 12.03 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.274e-05/0.6562, allocations: 30.75 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.873e-05/0.6563, allocations: 16.84 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.929e-05/0.6564, allocations: 176.2 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.6564, allocations: 4.375 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.6564, allocations: 16.36 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.6565, allocations: 53.61 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.6566, allocations: 4 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.6566, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.6566, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.997e-05/0.6566, allocations: 15.98 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005233/0.6571, allocations: 360.6 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.535e-05/0.6572, allocations: 38.5 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.153e-05/0.6573, allocations: 16.86 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.294e-06/0.6573, allocations: 3.938 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.6575, allocations: 103.4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.6575, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002605/0.6577, allocations: 121.5 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.6578, allocations: 51.41 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.331e-05/0.6579, allocations: 121.8 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.6579, allocations: 37.7 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.804e-05/0.658, allocations: 92.28 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.658, allocations: 23.73 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.6581, allocations: 49.69 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.458e-05/0.6582, allocations: 322.8 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.6584, allocations: 63.95 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.6585, allocations: 110 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.6587, allocations: 177.3 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.6587, allocations: 4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005043/0.6592, allocations: 288.8 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.809e-05/0.6593, allocations: 67.39 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.6594, allocations: 4 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.6594, allocations: 4 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.233e-05/0.6594, allocations: 11.94 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.6595, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.6598, allocations: 59.98 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.6599, allocations: 12.38 kB / 1.023 GB, free: 12.57 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.0001253/0.66, allocations: 130.3 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.66, allocations: 4 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.866e-05/0.6601, allocations: 8.375 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.6601, allocations: 7.938 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.6601, allocations: 7.938 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.6601, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003545/0.6605, allocations: 366.3 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.6605, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.498e-06/0.6605, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.6605, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.6605, allocations: 4 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.6605, allocations: 0 / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.6605, allocations: 3.938 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.6607, allocations: 203.4 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.6608, allocations: 85.02 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.6608, allocations: 0 / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.996e-05/0.6609, allocations: 0 / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.6609, allocations: 15.92 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.6609, allocations: 4 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.303e-05/0.661, allocations: 91.27 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.661, allocations: 0 / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002902/0.6613, allocations: 40 kB / 1.024 GB, free: 11.52 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.0004856/0.6618, allocations: 0.7343 MB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003616/0.6622, allocations: 270.8 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.6622, allocations: 4.312 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.659e-05/0.6622, allocations: 35.92 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.6625, allocations: 21.48 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.6645, allocations: 1.858 MB / 1.027 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.6647, allocations: 0.6885 MB / 1.027 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.555e-05/0.6647, allocations: 12.75 kB / 1.027 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.6648, allocations: 23.42 kB / 1.027 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.6648, allocations: 0 / 1.027 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.6867, allocations: 2.979 MB / 1.03 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.935/7.622, allocations: 22.66 kB / 1.03 GB, free: 4.777 MB / 0.7794 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/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