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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001574/0.001574, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002136/0.002136, allocations: 192.5 kB / 16.14 MB, free: 6.711 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.437/2.437, allocations: 390.2 MB / 0.6643 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002417/0.002417, allocations: 59.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7084/0.7108, allocations: 140.4 MB / 0.9491 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002392/0.7132, allocations: 0.7359 MB / 0.9498 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001768/0.715, allocations: 1.212 MB / 0.951 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.174e-05/0.7151, allocations: 0 / 0.951 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.01e-05/0.7152, allocations: 3.938 kB / 0.951 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.387e-05/0.7153, allocations: 9.922 kB / 0.951 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000639/0.7159, allocations: 199.8 kB / 0.9512 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.7161, allocations: 160 kB / 0.9513 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.913e-05/0.7162, allocations: 16.84 kB / 0.9513 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.7164, allocations: 60.17 kB / 0.9514 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.7165, allocations: 49.36 kB / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.252e-05/0.7165, allocations: 9.625 kB / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.878e-05/0.7166, allocations: 23.11 kB / 0.9515 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.008e-05/0.7167, allocations: 16.05 kB / 0.9515 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.506e-05/0.7168, allocations: 51.08 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.717, allocations: 149.6 kB / 0.9517 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.717, allocations: 0 / 0.9517 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.61e-07/0.717, allocations: 0 / 0.9517 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.717, allocations: 1.375 kB / 0.9517 GB, free: 7.102 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.0006314/0.7177, allocations: 437.6 kB / 0.9521 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.7177, allocations: 9.812 kB / 0.9521 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.823e-05/0.7178, allocations: 40.08 kB / 0.9522 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.106e-05/0.7178, allocations: 11.38 kB / 0.9522 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.7179, allocations: 171.8 kB / 0.9523 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.718, allocations: 4.75 kB / 0.9523 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.669e-05/0.718, allocations: 14.12 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001189/0.7182, allocations: 55.14 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.7182, allocations: 1.094 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.7182, allocations: 0 / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.7182, allocations: 1.312 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.668e-05/0.7183, allocations: 19.58 kB / 0.9524 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004919/0.7187, allocations: 359.5 kB / 0.9528 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.259e-05/0.7188, allocations: 36.98 kB / 0.9528 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.85e-05/0.7189, allocations: 20.88 kB / 0.9528 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.244e-06/0.7189, allocations: 0 / 0.9528 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001616/0.719, allocations: 101.1 kB / 0.9529 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.7191, allocations: 0 / 0.9529 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002496/0.7193, allocations: 125.2 kB / 0.953 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.7193, allocations: 62.06 kB / 0.9531 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.78e-05/0.7194, allocations: 115.3 kB / 0.9532 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.7195, allocations: 37.61 kB / 0.9532 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.322e-05/0.7195, allocations: 97.89 kB / 0.9533 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.7195, allocations: 23.11 kB / 0.9534 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.848e-05/0.7196, allocations: 49.28 kB / 0.9534 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.433e-05/0.7197, allocations: 325.9 kB / 0.9537 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.7198, allocations: 60 kB / 0.9538 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.7199, allocations: 115.1 kB / 0.9539 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.7201, allocations: 181.8 kB / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.7201, allocations: 0 / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003962/0.7205, allocations: 280.3 kB / 0.9543 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.31e-05/0.7206, allocations: 71.3 kB / 0.9544 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.7206, allocations: 1.125 kB / 0.9544 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.7206, allocations: 2.406 kB / 0.9544 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.956e-05/0.7207, allocations: 4.625 kB / 0.9544 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.7207, allocations: 14.44 kB / 0.9544 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.721, allocations: 52.53 kB / 0.9545 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.7211, allocations: 13.67 kB / 0.9545 GB, free: 4.488 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 8.234e-05/0.7212, allocations: 132.5 kB / 0.9546 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.759e-05/0.7212, allocations: 7.812 kB / 0.9546 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.931e-05/0.7212, allocations: 13.75 kB / 0.9546 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.7212, allocations: 1.531 kB / 0.9546 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.7212, allocations: 4 kB / 0.9546 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.7213, allocations: 3.984 kB / 0.9546 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.7215, allocations: 362.5 kB / 0.955 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7215, allocations: 0 / 0.955 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-05/0.7215, allocations: 1.312 kB / 0.955 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.7216, allocations: 1.281 kB / 0.955 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.7216, allocations: 13.14 kB / 0.955 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.7216, allocations: 1.156 kB / 0.955 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7216, allocations: 3.938 kB / 0.955 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000157/0.7217, allocations: 201.3 kB / 0.9552 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.253e-05/0.7218, allocations: 82.52 kB / 0.9553 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.7218, allocations: 1.344 kB / 0.9553 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.326e-05/0.7219, allocations: 5.547 kB / 0.9553 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.7219, allocations: 10.09 kB / 0.9553 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.7219, allocations: 12.89 kB / 0.9553 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.789e-05/0.722, allocations: 94.61 kB / 0.9554 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.722, allocations: 0 / 0.9554 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000287/0.7223, allocations: 40.98 kB / 0.9554 GB, free: 3.582 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.0003373/0.7226, allocations: 0.7354 MB / 0.9561 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003147/0.7229, allocations: 251.5 kB / 0.9564 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.7229, allocations: 1.344 kB / 0.9564 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.532e-05/0.723, allocations: 35.61 kB / 0.9564 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.7233, allocations: 21.72 kB / 0.9564 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.7249, allocations: 1.87 MB / 0.9583 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.799e-05/0.725, allocations: 0.69 MB / 0.9589 GB, free: 312 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.075e-05/0.7251, allocations: 10.66 kB / 0.9589 GB, free: 308 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.7251, allocations: 19.03 kB / 0.959 GB, free: 292 kB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7251, allocations: 0 / 0.959 GB, free: 292 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01187/0.737, allocations: 2.79 MB / 0.9617 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/0.7372, allocations: 201.3 kB / 0.9619 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.514, allocations: 4 kB / 0.9619 GB, free: 14.62 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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