Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 216.4 kB / 22.24 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.515/1.515, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.241/3.241, allocations: 0.49 GB / 0.7951 GB, free: 35.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 72.44 kB / 1.154 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.347, allocations: 176.1 MB / 1.326 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00202/0.349, allocations: 0.6703 MB / 1.327 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001825/0.3508, allocations: 1.233 MB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.919e-05/0.3509, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.843e-05/0.3509, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.546e-05/0.351, allocations: 11.86 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007603/0.3518, allocations: 223.9 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000256/0.352, allocations: 183.7 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.769e-05/0.3521, allocations: 4 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.3523, allocations: 71.88 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.3524, allocations: 63.86 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.3524, allocations: 16 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.412e-05/0.3525, allocations: 31.92 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.921e-05/0.3526, allocations: 15.97 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.172e-05/0.3527, allocations: 55.91 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.3529, allocations: 159.8 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3529, allocations: 0 / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3529, allocations: 0 / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.3529, allocations: 0 / 1.329 GB, free: 14.75 MB / 1.029 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.000561/0.3535, allocations: 365.5 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3535, allocations: 8.031 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.075e-05/0.3535, allocations: 38.69 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.3536, allocations: 12.89 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.3537, allocations: 114.5 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.3537, allocations: 4.375 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.3537, allocations: 16.12 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.3539, allocations: 53.67 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3539, allocations: 0 / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.3539, allocations: 0 / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3539, allocations: 0 / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.991e-05/0.3539, allocations: 16 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005967/0.3545, allocations: 307.7 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.3546, allocations: 30.56 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.3e-05/0.3547, allocations: 16.86 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.907e-06/0.3547, allocations: 3.938 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.3549, allocations: 99.31 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.3549, allocations: 0 / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003062/0.3552, allocations: 133.5 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.3553, allocations: 51.41 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.3554, allocations: 125.8 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.3554, allocations: 33.7 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.3555, allocations: 88.38 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.3555, allocations: 15.91 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.3556, allocations: 53.67 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3558, allocations: 322.8 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.356, allocations: 127.4 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.3562, allocations: 169.4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.3564, allocations: 181.3 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.3564, allocations: 4 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005209/0.3569, allocations: 348.4 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.06e-05/0.357, allocations: 67.39 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.357, allocations: 0 / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.357, allocations: 4 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.445e-05/0.3571, allocations: 11.92 kB / 1.331 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.3571, allocations: 7.984 kB / 1.331 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003326/0.3574, allocations: 59.83 kB / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.3574, allocations: 16.02 kB / 1.331 GB, free: 11.58 MB / 1.029 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.0001177/0.3576, allocations: 126.4 kB / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.3576, allocations: 15.88 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.898e-05/0.3576, allocations: 12.38 kB / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3576, allocations: 0 / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3576, allocations: 0 / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3576, allocations: 0 / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003637/0.358, allocations: 333.8 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.358, allocations: 4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.258e-06/0.358, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.358, allocations: 4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.358, allocations: 4 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.358, allocations: 3.938 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.358, allocations: 0 / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.3582, allocations: 199.4 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.404e-05/0.3582, allocations: 11.95 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.3583, allocations: 0 / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.314e-05/0.3583, allocations: 7.938 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.322e-05/0.3584, allocations: 3.984 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3584, allocations: 8 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.594e-05/0.3584, allocations: 91.81 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3584, allocations: 4 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000282/0.3587, allocations: 32 kB / 1.332 GB, free: 10.66 MB / 1.029 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.0005451/0.3593, allocations: 0.7358 MB / 1.333 GB, free: 9.898 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004005/0.3597, allocations: 294 kB / 1.333 GB, free: 9.574 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3597, allocations: 0 / 1.333 GB, free: 9.574 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.23e-05/0.3597, allocations: 36.12 kB / 1.333 GB, free: 9.539 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.36, allocations: 24.56 kB / 1.333 GB, free: 9.516 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.3625, allocations: 2.113 MB / 1.335 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.076e-05/0.3625, allocations: 75.33 kB / 1.335 GB, free: 7.141 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.894e-05/0.3626, allocations: 8.609 kB / 1.335 GB, free: 7.133 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.544e-05/0.3626, allocations: 23.42 kB / 1.335 GB, free: 7.109 MB / 1.029 GB Notification: Performance of SimCode: time 4.1e-07/0.3626, allocations: 4 kB / 1.335 GB, free: 7.105 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03243/0.395, allocations: 3.791 MB / 1.339 GB, free: 3.484 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.64, allocations: 2.344 kB / 1.339 GB, free: 3.484 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv --start-time 0 --stop-time 2 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable onCounter.trigger in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv. Warning: Get data of variable onCounter.trigger from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv failed! Error: Could not read variable onCounter.reset in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv. Warning: Get data of variable onCounter.reset from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv failed! Error: Could not read variable onCounter.y in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv. Warning: Get data of variable onCounter.y from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.541655209992314]