Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 104.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 225.6 MB / 247.8 MB, free: 3.73 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.962/2.962, allocations: 497.2 MB / 0.7812 GB, free: 11.95 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 71.89 kB / 1.134 GB, free: 13.2 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9867/0.9886, allocations: 173.9 MB / 1.304 GB, free: 32.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001698/0.9903, allocations: 0.6787 MB / 1.305 GB, free: 31.67 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.9915, allocations: 1.212 MB / 1.306 GB, free: 30.79 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.183e-05/0.9915, allocations: 0 / 1.306 GB, free: 30.79 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.9915, allocations: 3.938 kB / 1.306 GB, free: 30.79 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.568e-05/0.9916, allocations: 18.39 kB / 1.306 GB, free: 30.77 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.9922, allocations: 223.8 kB / 1.306 GB, free: 30.66 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.9924, allocations: 176.4 kB / 1.306 GB, free: 30.59 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.105e-05/0.9924, allocations: 12.92 kB / 1.306 GB, free: 30.58 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.514e-05/0.9925, allocations: 68.38 kB / 1.306 GB, free: 30.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.9926, allocations: 70.41 kB / 1.306 GB, free: 30.53 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.9927, allocations: 15.69 kB / 1.306 GB, free: 30.53 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.315e-05/0.9927, allocations: 28.59 kB / 1.306 GB, free: 30.52 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.095e-05/0.9927, allocations: 16.92 kB / 1.306 GB, free: 30.52 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.7e-05/0.9928, allocations: 56.09 kB / 1.306 GB, free: 30.49 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001947/0.993, allocations: 155.4 kB / 1.307 GB, free: 30.44 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.993, allocations: 0 / 1.307 GB, free: 30.44 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.684e-06/0.993, allocations: 4 kB / 1.307 GB, free: 30.43 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.993, allocations: 0 / 1.307 GB, free: 30.43 MB / 1.061 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.0004842/0.9935, allocations: 444.5 kB / 1.307 GB, free: 29.99 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.9935, allocations: 8.188 kB / 1.307 GB, free: 29.99 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.882e-05/0.9936, allocations: 36.83 kB / 1.307 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.9936, allocations: 6.375 kB / 1.307 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.48e-05/0.9937, allocations: 177.5 kB / 1.307 GB, free: 29.75 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.9937, allocations: 3.094 kB / 1.307 GB, free: 29.75 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.9937, allocations: 26.17 kB / 1.307 GB, free: 29.73 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.925e-05/0.9938, allocations: 52.83 kB / 1.307 GB, free: 29.69 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.9938, allocations: 2.844 kB / 1.307 GB, free: 29.69 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.9938, allocations: 0 / 1.307 GB, free: 29.69 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.9939, allocations: 0 / 1.307 GB, free: 29.69 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.353e-05/0.9939, allocations: 13.41 kB / 1.307 GB, free: 29.69 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004166/0.9943, allocations: 360.2 kB / 1.308 GB, free: 29.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.846e-05/0.9944, allocations: 31.08 kB / 1.308 GB, free: 29.35 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.724e-05/0.9944, allocations: 22.12 kB / 1.308 GB, free: 29.33 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.9944, allocations: 0 / 1.308 GB, free: 29.33 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.9946, allocations: 97.47 kB / 1.308 GB, free: 29.27 MB / 1.061 GB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.9946, allocations: 0 / 1.308 GB, free: 29.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=9): time 0.0002429/0.9948, allocations: 127.5 kB / 1.308 GB, free: 29.2 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.9949, allocations: 54.19 kB / 1.308 GB, free: 29.14 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.245e-05/0.9949, allocations: 119 kB / 1.308 GB, free: 29.04 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.995, allocations: 40.42 kB / 1.308 GB, free: 28.99 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.348e-05/0.995, allocations: 97.06 kB / 1.308 GB, free: 28.9 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.368e-05/0.995, allocations: 14.31 kB / 1.308 GB, free: 28.89 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.606e-05/0.9951, allocations: 57 kB / 1.308 GB, free: 28.86 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.956e-05/0.9952, allocations: 324.9 kB / 1.309 GB, free: 28.54 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.9953, allocations: 60.64 kB / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.9954, allocations: 105 kB / 1.309 GB, free: 28.44 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.9955, allocations: 189.3 kB / 1.309 GB, free: 28.28 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9955, allocations: 4 kB / 1.309 GB, free: 28.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003552/0.9959, allocations: 286.1 kB / 1.309 GB, free: 28.11 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.9959, allocations: 67.28 kB / 1.309 GB, free: 28.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.9959, allocations: 3 kB / 1.309 GB, free: 28.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.996, allocations: 2.938 kB / 1.309 GB, free: 28.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.622e-05/0.996, allocations: 6.906 kB / 1.309 GB, free: 28.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.996, allocations: 3.031 kB / 1.309 GB, free: 28.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.9963, allocations: 60.64 kB / 1.309 GB, free: 28.03 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.9963, allocations: 18.91 kB / 1.309 GB, free: 28.02 MB / 1.061 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.456e-05/0.9964, allocations: 130.1 kB / 1.31 GB, free: 27.89 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.9964, allocations: 10.06 kB / 1.31 GB, free: 27.89 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.532e-05/0.9964, allocations: 7.188 kB / 1.31 GB, free: 27.88 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.9964, allocations: 0 / 1.31 GB, free: 27.88 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.9965, allocations: 4 kB / 1.31 GB, free: 27.88 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.9965, allocations: 0 / 1.31 GB, free: 27.88 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.9967, allocations: 362.2 kB / 1.31 GB, free: 27.55 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.9967, allocations: 4 kB / 1.31 GB, free: 27.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.809e-06/0.9967, allocations: 6.719 kB / 1.31 GB, free: 27.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.9967, allocations: 0 / 1.31 GB, free: 27.54 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.9967, allocations: 0 / 1.31 GB, free: 27.54 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.9967, allocations: 6.594 kB / 1.31 GB, free: 27.54 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.9967, allocations: 0 / 1.31 GB, free: 27.54 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/0.9968, allocations: 203.5 kB / 1.31 GB, free: 27.38 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.774e-05/0.9968, allocations: 81.06 kB / 1.31 GB, free: 27.28 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.9969, allocations: 10.17 kB / 1.31 GB, free: 27.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.261e-05/0.9969, allocations: 3.938 kB / 1.31 GB, free: 27.27 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.9969, allocations: 10.34 kB / 1.31 GB, free: 27.27 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.997, allocations: 3 kB / 1.31 GB, free: 27.27 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.067e-05/0.997, allocations: 92.09 kB / 1.31 GB, free: 27.19 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.997, allocations: 0 / 1.31 GB, free: 27.19 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002826/0.9973, allocations: 36.53 kB / 1.31 GB, free: 27.18 MB / 1.061 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.0003311/0.9976, allocations: 0.7342 MB / 1.311 GB, free: 26.5 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002725/0.9979, allocations: 233.3 kB / 1.311 GB, free: 26.33 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.9979, allocations: 320 / 1.311 GB, free: 26.33 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 4.437e-05/0.9979, allocations: 28.5 kB / 1.311 GB, free: 26.32 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.9982, allocations: 19.75 kB / 1.311 GB, free: 26.32 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.9998, allocations: 1.871 MB / 1.313 GB, free: 24.76 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.9999, allocations: 0.6887 MB / 1.314 GB, free: 24.06 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.15e-05/0.9999, allocations: 17.67 kB / 1.314 GB, free: 24.05 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.539e-05/1, allocations: 18.34 kB / 1.314 GB, free: 24.04 MB / 1.061 GB Notification: Performance of SimCode: time 6.02e-07/1, allocations: 2.938 kB / 1.314 GB, free: 24.04 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/1.026, allocations: 3.022 MB / 1.317 GB, free: 23.56 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.417/9.443, allocations: 15.08 kB / 1.317 GB, free: 23.55 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 16.048300489783287]