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.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.001535/0.001535, allocations: 114.3 kB / 18.94 MB, free: 2.789 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.001912/0.001912, allocations: 219.3 kB / 22.26 MB, free: 5.207 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.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.965/2.965, allocations: 476.7 MB / 0.7707 GB, free: 4.242 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_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"}) [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.002068/0.002068, allocations: 68.31 kB / 1.117 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3348, allocations: 170 MB / 1.283 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002475/0.3373, allocations: 0.6788 MB / 1.284 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00185/0.3391, allocations: 1.239 MB / 1.285 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.159e-05/0.3392, allocations: 0 / 1.285 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.768e-05/0.3392, allocations: 7.875 kB / 1.285 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.918e-05/0.3393, allocations: 15.86 kB / 1.285 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000873/0.3402, allocations: 224.4 kB / 1.285 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003386/0.3405, allocations: 183.8 kB / 1.286 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.3406, allocations: 0 / 1.286 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.3408, allocations: 71.89 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.341, allocations: 67.78 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.878e-05/0.341, allocations: 16 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.3411, allocations: 35.92 kB / 1.286 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.914e-05/0.3412, allocations: 11.98 kB / 1.286 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.3413, allocations: 55.83 kB / 1.286 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003143/0.3416, allocations: 155.1 kB / 1.286 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.3416, allocations: 7.984 kB / 1.286 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3416, allocations: 3.938 kB / 1.286 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.3416, allocations: 4 kB / 1.286 GB, free: 8.945 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.0006939/0.3423, allocations: 365.6 kB / 1.286 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.3423, allocations: 12.02 kB / 1.286 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.59e-05/0.3424, allocations: 30.75 kB / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.435e-05/0.3424, allocations: 12.89 kB / 1.286 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.3426, allocations: 114.5 kB / 1.287 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.3426, allocations: 8.375 kB / 1.287 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.3427, allocations: 24.11 kB / 1.287 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001411/0.3428, allocations: 45.62 kB / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3428, allocations: 0 / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3428, allocations: 3.984 kB / 1.287 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.3428, allocations: 4 kB / 1.287 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.299e-05/0.3429, allocations: 12 kB / 1.287 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006883/0.3436, allocations: 331.8 kB / 1.287 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.3437, allocations: 38.52 kB / 1.287 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.89e-05/0.3437, allocations: 16.94 kB / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.3437, allocations: 0 / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.344, allocations: 91.34 kB / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.344, allocations: 4 kB / 1.287 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003416/0.3443, allocations: 125.5 kB / 1.287 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.911e-05/0.3444, allocations: 55.41 kB / 1.287 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.3446, allocations: 129.7 kB / 1.287 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.425e-05/0.3446, allocations: 37.7 kB / 1.287 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.085e-05/0.3447, allocations: 92.36 kB / 1.288 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.3447, allocations: 15.91 kB / 1.288 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.3448, allocations: 49.69 kB / 1.288 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001798/0.345, allocations: 322.8 kB / 1.288 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.3452, allocations: 63.91 kB / 1.288 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.3453, allocations: 114 kB / 1.288 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.3456, allocations: 185.3 kB / 1.288 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3456, allocations: 0 / 1.288 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004802/0.3461, allocations: 284.8 kB / 1.289 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.61e-05/0.3461, allocations: 71.39 kB / 1.289 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3462, allocations: 0 / 1.289 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.3462, allocations: 4 kB / 1.289 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.544e-05/0.3462, allocations: 4 kB / 1.289 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.3463, allocations: 7.922 kB / 1.289 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003272/0.3466, allocations: 63.98 kB / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.133e-05/0.3466, allocations: 15.94 kB / 1.289 GB, free: 5.957 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.0001276/0.3467, allocations: 123.9 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.3468, allocations: 11.95 kB / 1.289 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.31e-05/0.3468, allocations: 12.38 kB / 1.289 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3468, allocations: 4 kB / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.3468, allocations: 0 / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3468, allocations: 0 / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003727/0.3472, allocations: 329.5 kB / 1.289 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3472, allocations: 480 / 1.289 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.404e-05/0.3472, allocations: 7.938 kB / 1.289 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.3472, allocations: 0 / 1.289 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.3472, allocations: 0 / 1.289 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-06/0.3472, allocations: 3.938 kB / 1.289 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3472, allocations: 3.938 kB / 1.289 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/0.3475, allocations: 207.4 kB / 1.289 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.459e-05/0.3475, allocations: 7.953 kB / 1.289 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.3475, allocations: 4 kB / 1.289 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.913e-05/0.3476, allocations: 7.938 kB / 1.289 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.3476, allocations: 7.984 kB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.3476, allocations: 0 / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.721e-05/0.3477, allocations: 99.2 kB / 1.29 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3477, allocations: 4 kB / 1.29 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002959/0.348, allocations: 35.94 kB / 1.29 GB, free: 5.031 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.0006166/0.3486, allocations: 0.7341 MB / 1.29 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004029/0.349, allocations: 235 kB / 1.29 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.349, allocations: 4.062 kB / 1.29 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.019e-05/0.3491, allocations: 24 kB / 1.291 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.3494, allocations: 23.88 kB / 1.291 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.3517, allocations: 1.867 MB / 1.292 GB, free: 1.977 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.3521, allocations: 0.6924 MB / 1.293 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.257e-05/0.3521, allocations: 8.672 kB / 1.293 GB, free: 1.25 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.042e-05/0.3522, allocations: 23.44 kB / 1.293 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.3522, allocations: 0 / 1.293 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.3834, allocations: 3.157 MB / 1.296 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.44, allocations: 10.84 kB / 1.296 GB, free: 14.22 MB / 0.9981 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.270381181966513]