Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_11_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.007678/0.007678, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001726/0.001726, allocations: 198.6 kB / 16.68 MB, free: 5.969 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.017/3.017, allocations: 469.8 MB / 0.7425 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.91 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3506, allocations: 159.1 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001898/0.3526, allocations: 0.6924 MB / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001664/0.3542, allocations: 1.195 MB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.572e-05/0.3543, allocations: 0 / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.178e-05/0.3544, allocations: 3.938 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.307e-05/0.3544, allocations: 15.91 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006633/0.3551, allocations: 215.2 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.3554, allocations: 191.6 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.841e-05/0.3555, allocations: 12 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.3556, allocations: 71.88 kB / 1.223 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.3558, allocations: 63.83 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.3558, allocations: 16 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.884e-05/0.3559, allocations: 31.98 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.78e-05/0.3559, allocations: 11.94 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.604e-05/0.356, allocations: 55.88 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.3563, allocations: 159.5 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3563, allocations: 3.938 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3563, allocations: 4 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.3563, allocations: 0 / 1.223 GB, free: 11.53 MB / 0.9825 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.0005707/0.3569, allocations: 438.7 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3569, allocations: 12.03 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.285e-05/0.357, allocations: 30.75 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.29e-05/0.357, allocations: 12.89 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.3572, allocations: 176.3 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.3572, allocations: 8.375 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.3573, allocations: 16.12 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001219/0.3574, allocations: 49.67 kB / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.3574, allocations: 0 / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.3574, allocations: 0 / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3574, allocations: 0 / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.833e-05/0.3575, allocations: 19.92 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005486/0.358, allocations: 356.7 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.86e-05/0.3581, allocations: 38.56 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.122e-05/0.3582, allocations: 12.86 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.3582, allocations: 0 / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.3584, allocations: 107.3 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.3584, allocations: 0 / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0002957/0.3587, allocations: 121.6 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.3588, allocations: 55.41 kB / 1.224 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3589, allocations: 125.8 kB / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.3589, allocations: 33.7 kB / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.413e-05/0.359, allocations: 92.36 kB / 1.224 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.3591, allocations: 27.78 kB / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.3592, allocations: 49.69 kB / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3593, allocations: 326.8 kB / 1.225 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.3595, allocations: 59.97 kB / 1.225 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.3597, allocations: 113.9 kB / 1.225 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.3599, allocations: 185.3 kB / 1.225 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.36, allocations: 0 / 1.225 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004772/0.3604, allocations: 276.8 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.41e-05/0.3605, allocations: 73.2 kB / 1.226 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3605, allocations: 4.094 kB / 1.226 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3606, allocations: 3.984 kB / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.04e-05/0.3606, allocations: 4 kB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3606, allocations: 8.156 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.361, allocations: 51.94 kB / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.361, allocations: 19.92 kB / 1.226 GB, free: 8.355 MB / 0.9825 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.0001238/0.3611, allocations: 128.4 kB / 1.226 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.3612, allocations: 11.94 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.941e-05/0.3612, allocations: 12.38 kB / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3612, allocations: 7.938 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3612, allocations: 0 / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3612, allocations: 0 / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.3616, allocations: 366.7 kB / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.3616, allocations: 0 / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.096e-05/0.3616, allocations: 3.984 kB / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3616, allocations: 0 / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.3617, allocations: 4 kB / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3617, allocations: 3.938 kB / 1.226 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3617, allocations: 4 kB / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.3619, allocations: 195.4 kB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.3619, allocations: 89.05 kB / 1.226 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.362, allocations: 0 / 1.226 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.362, allocations: 3.938 kB / 1.226 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.3621, allocations: 11.98 kB / 1.226 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.3621, allocations: 8 kB / 1.226 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.658e-05/0.3622, allocations: 95.27 kB / 1.227 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3622, allocations: 0 / 1.227 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000281/0.3625, allocations: 32 kB / 1.227 GB, free: 7.297 MB / 0.9825 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.0005805/0.3631, allocations: 0.7379 MB / 1.227 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003967/0.3635, allocations: 258.7 kB / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3635, allocations: 0 / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.699e-05/0.3636, allocations: 36.2 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.3639, allocations: 24.05 kB / 1.228 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.3661, allocations: 1.867 MB / 1.229 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3665, allocations: 0.6924 MB / 1.23 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.182e-05/0.3665, allocations: 8.656 kB / 1.23 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.3666, allocations: 19.44 kB / 1.23 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.3666, allocations: 0 / 1.23 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.3924, allocations: 3.019 MB / 1.233 GB, free: 0.5625 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.482/8.874, allocations: 11.94 kB / 1.233 GB, free: 0.5508 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches