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.001296/0.001296, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001749/0.001749, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8979/0.8979, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.652/1.652, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 3.036e-06/3.036e-06, allocations: 0 / 0.9505 GB, free: 3.461 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.697e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.457 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001661/0.001688, allocations: 0.6797 MB / 0.9512 GB, free: 2.773 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.002809, allocations: 1.217 MB / 0.9524 GB, free: 1.543 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.129e-05/0.00285, allocations: 4 kB / 0.9524 GB, free: 1.539 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.87e-05/0.002879, allocations: 3.938 kB / 0.9524 GB, free: 1.535 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.419e-05/0.002943, allocations: 3.938 kB / 0.9524 GB, free: 1.531 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005305/0.003473, allocations: 233.3 kB / 0.9526 GB, free: 1.309 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.003649, allocations: 179.7 kB / 0.9528 GB, free: 1.133 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.764e-05/0.003737, allocations: 11.94 kB / 0.9528 GB, free: 1.121 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.00384, allocations: 95.86 kB / 0.9529 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 9.977e-05/0.003939, allocations: 51.89 kB / 0.9529 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.003965, allocations: 16 kB / 0.9529 GB, free: 0.9609 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.074e-05/0.004026, allocations: 32 kB / 0.953 GB, free: 0.9297 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.352e-05/0.004049, allocations: 15.92 kB / 0.953 GB, free: 0.9141 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 5.176e-05/0.004101, allocations: 43.95 kB / 0.953 GB, free: 0.8711 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.004283, allocations: 203.5 kB / 0.9532 GB, free: 0.6719 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.004286, allocations: 0 / 0.9532 GB, free: 0.6719 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.613e-06/0.004288, allocations: 3.938 kB / 0.9532 GB, free: 0.668 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.004292, allocations: 0 / 0.9532 GB, free: 0.668 MB / 0.9011 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.000399/0.004691, allocations: 361.5 kB / 0.9536 GB, free: 280 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.004727, allocations: 8.031 kB / 0.9536 GB, free: 272 kB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.319e-05/0.004751, allocations: 34.75 kB / 0.9536 GB, free: 228 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.00479, allocations: 8.891 kB / 0.9536 GB, free: 220 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.122e-05/0.004861, allocations: 121.7 kB / 0.9537 GB, free: 72 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.004879, allocations: 12.36 kB / 0.9537 GB, free: 60 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.0049, allocations: 8.375 kB / 0.9537 GB, free: 52 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.005008, allocations: 54 kB / 0.9538 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.005017, allocations: 3.984 kB / 0.9538 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.005025, allocations: 0 / 0.9538 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.005029, allocations: 0 / 0.9538 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.062e-05/0.00506, allocations: 15.94 kB / 0.9538 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003869/0.005447, allocations: 295.9 kB / 0.9541 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 7.164e-05/0.005518, allocations: 26.67 kB / 0.9541 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.162e-05/0.00554, allocations: 20.84 kB / 0.9541 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 5.5e-06/0.005546, allocations: 4 kB / 0.9541 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.005698, allocations: 95.25 kB / 0.9542 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.005699, allocations: 0 / 0.9542 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of matching and sorting (n=9): time 0.0002386/0.005938, allocations: 133.5 kB / 0.9544 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.005971, allocations: 55.34 kB / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.075e-05/0.006042, allocations: 121.8 kB / 0.9545 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.006066, allocations: 33.7 kB / 0.9546 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.655e-05/0.006113, allocations: 88.38 kB / 0.9547 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.006129, allocations: 23.84 kB / 0.9547 GB, free: 14.98 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.328e-05/0.006192, allocations: 53.69 kB / 0.9547 GB, free: 14.93 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.16e-05/0.006264, allocations: 326.8 kB / 0.955 GB, free: 14.6 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.006381, allocations: 127.7 kB / 0.9552 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.006506, allocations: 173.3 kB / 0.9553 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.006644, allocations: 177.3 kB / 0.9555 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.006647, allocations: 4 kB / 0.9555 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003135/0.006961, allocations: 356.1 kB / 0.9558 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.006996, allocations: 67.39 kB / 0.9559 GB, free: 13.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.007001, allocations: 0 / 0.9559 GB, free: 13.59 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.007012, allocations: 4 kB / 0.9559 GB, free: 13.59 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.889e-05/0.007051, allocations: 4 kB / 0.9559 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.007059, allocations: 7.984 kB / 0.9559 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.007233, allocations: 52.09 kB / 0.956 GB, free: 13.52 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.007255, allocations: 12 kB / 0.956 GB, free: 13.51 MB / 0.9167 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 7.692e-05/0.007332, allocations: 135.6 kB / 0.9561 GB, free: 13.37 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-06/0.00734, allocations: 8.031 kB / 0.9561 GB, free: 13.36 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.389e-05/0.007364, allocations: 12.44 kB / 0.9561 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-06/0.007367, allocations: 0 / 0.9561 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.007371, allocations: 0 / 0.9561 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.007374, allocations: 0 / 0.9561 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002244/0.007598, allocations: 325.5 kB / 0.9564 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.007599, allocations: 8 kB / 0.9564 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.824e-06/0.007607, allocations: 7.984 kB / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.007609, allocations: 0 / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.007615, allocations: 3.938 kB / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.007616, allocations: 4 kB / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.007617, allocations: 0 / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.00774, allocations: 199.4 kB / 0.9566 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.094e-05/0.00775, allocations: 15.88 kB / 0.9567 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.007763, allocations: 0 / 0.9567 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.455e-05/0.007807, allocations: 8 kB / 0.9567 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-05/0.007835, allocations: 3.984 kB / 0.9567 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.007847, allocations: 11.94 kB / 0.9567 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.471e-05/0.007882, allocations: 91.27 kB / 0.9568 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.007882, allocations: 4.125 kB / 0.9568 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001909/0.008073, allocations: 36 kB / 0.9568 GB, free: 12.58 MB / 0.9167 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.0003248/0.008397, allocations: 0.7319 MB / 0.9575 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.008654, allocations: 290.1 kB / 0.9578 GB, free: 11.5 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.008655, allocations: 0 / 0.9578 GB, free: 11.5 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 3.553e-05/0.008691, allocations: 32.23 kB / 0.9578 GB, free: 11.47 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.00891, allocations: 22.52 kB / 0.9579 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.01035, allocations: 2.114 MB / 0.9599 GB, free: 9.16 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.589e-05/0.01039, allocations: 79.23 kB / 0.96 GB, free: 9.062 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.456e-05/0.01042, allocations: 4.734 kB / 0.96 GB, free: 9.059 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/0.01045, allocations: 28.48 kB / 0.96 GB, free: 9.031 MB / 0.9167 GB Notification: Performance of SimCode: time 4.81e-07/0.01045, allocations: 0 / 0.96 GB, free: 9.031 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.02719, allocations: 3.897 MB / 0.9638 GB, free: 5.316 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.849/6.876, allocations: 10.23 kB / 0.9638 GB, free: 5.309 MB / 0.9167 GB " [Timeout remaining time 293] (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/jenkins/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: 10.789639520458877]