Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_9_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.00163/0.00163, 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.002125/0.002126, allocations: 196.3 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.468/2.468, allocations: 390.2 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 67.89 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7537/0.7554, allocations: 140.4 MB / 0.9497 GB, free: 9.301 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002209/0.7577, allocations: 0.6745 MB / 0.9504 GB, free: 8.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00139/0.7591, allocations: 1.192 MB / 0.9516 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.573e-05/0.7591, allocations: 1.531 kB / 0.9516 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.252e-05/0.7592, allocations: 3.938 kB / 0.9516 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.623e-05/0.7593, allocations: 13.67 kB / 0.9516 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006113/0.7599, allocations: 228.7 kB / 0.9518 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.7601, allocations: 184 kB / 0.952 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.7602, allocations: 9.078 kB / 0.952 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.738e-05/0.7603, allocations: 65.39 kB / 0.952 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.7604, allocations: 61.53 kB / 0.9521 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.692e-05/0.7605, allocations: 16.19 kB / 0.9521 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.7606, allocations: 37.73 kB / 0.9521 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.627e-05/0.7606, allocations: 7.938 kB / 0.9522 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.7607, allocations: 58.97 kB / 0.9522 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002405/0.761, allocations: 158.2 kB / 0.9524 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.761, allocations: 0 / 0.9524 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.761, allocations: 0 / 0.9524 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.761, allocations: 0 / 0.9524 GB, free: 7.289 MB / 0.7169 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.0005322/0.7616, allocations: 437.9 kB / 0.9528 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.7616, allocations: 10.22 kB / 0.9528 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.348e-05/0.7617, allocations: 35.72 kB / 0.9528 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.39e-05/0.7617, allocations: 16.53 kB / 0.9528 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.7618, allocations: 175.6 kB / 0.953 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.7619, allocations: 4.531 kB / 0.953 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.7619, allocations: 10.28 kB / 0.953 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.762, allocations: 59.89 kB / 0.9531 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.7621, allocations: 0 / 0.9531 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.7621, allocations: 1.344 kB / 0.9531 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.7621, allocations: 0 / 0.9531 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.957e-05/0.7621, allocations: 15.58 kB / 0.9531 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.7626, allocations: 367.5 kB / 0.9534 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.917e-05/0.7627, allocations: 37.41 kB / 0.9535 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.799e-05/0.7627, allocations: 15.52 kB / 0.9535 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.7628, allocations: 0 / 0.9535 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.7629, allocations: 102.2 kB / 0.9536 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.763, allocations: 0 / 0.9536 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002687/0.7632, allocations: 121 kB / 0.9537 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.7633, allocations: 52.78 kB / 0.9538 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.834e-05/0.7634, allocations: 120.6 kB / 0.9539 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.7634, allocations: 33.89 kB / 0.9539 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.7634, allocations: 93.69 kB / 0.954 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.7635, allocations: 27.12 kB / 0.954 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.056e-05/0.7636, allocations: 56.84 kB / 0.9541 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.728e-05/0.7636, allocations: 329.5 kB / 0.9544 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.7638, allocations: 60.41 kB / 0.9544 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.7639, allocations: 107 kB / 0.9546 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.7641, allocations: 177.2 kB / 0.9547 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.7642, allocations: 1.281 kB / 0.9547 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004336/0.7646, allocations: 283.6 kB / 0.955 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.7647, allocations: 70.05 kB / 0.9551 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.7647, allocations: 6.219 kB / 0.9551 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.7647, allocations: 2.906 kB / 0.9551 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.538e-05/0.7648, allocations: 4.375 kB / 0.9551 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.7648, allocations: 1.5 kB / 0.9551 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.7651, allocations: 56.52 kB / 0.9551 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.7652, allocations: 14.47 kB / 0.9551 GB, free: 4.684 MB / 0.7169 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 9.707e-05/0.7653, allocations: 135.9 kB / 0.9553 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.7653, allocations: 7.156 kB / 0.9553 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.569e-05/0.7653, allocations: 13.53 kB / 0.9553 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.7653, allocations: 1.188 kB / 0.9553 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.7653, allocations: 0 / 0.9553 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.7654, allocations: 5.031 kB / 0.9553 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.7656, allocations: 361.2 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.7657, allocations: 4 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.588e-06/0.7657, allocations: 2.875 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.7657, allocations: 0 / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.7657, allocations: 1.219 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.7657, allocations: 1.594 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.7657, allocations: 7.875 kB / 0.9557 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001603/0.7659, allocations: 196.2 kB / 0.9558 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.7659, allocations: 83.39 kB / 0.9559 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.7659, allocations: 9.062 kB / 0.9559 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.132e-05/0.766, allocations: 1.281 kB / 0.9559 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.766, allocations: 15.58 kB / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.766, allocations: 6.469 kB / 0.956 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.693e-05/0.7661, allocations: 92.42 kB / 0.956 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7661, allocations: 0 / 0.956 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002795/0.7664, allocations: 33.19 kB / 0.9561 GB, free: 3.793 MB / 0.7169 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.0003879/0.7668, allocations: 0.7451 MB / 0.9568 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003378/0.7671, allocations: 271.9 kB / 0.9571 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7671, allocations: 1.062 kB / 0.9571 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.069e-05/0.7672, allocations: 27.88 kB / 0.9571 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.7675, allocations: 20.36 kB / 0.9571 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.7696, allocations: 1.856 MB / 0.9589 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.7698, allocations: 0.6901 MB / 0.9596 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.433e-05/0.7698, allocations: 9.172 kB / 0.9596 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.7699, allocations: 23.08 kB / 0.9596 GB, free: 500 kB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7699, allocations: 3.938 kB / 0.9596 GB, free: 496 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.7904, allocations: 2.983 MB / 0.9625 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/8.471, allocations: 11.06 kB / 0.9626 GB, free: 14.9 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches