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) 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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009143/0.009143, allocations: 104 kB / 15.73 MB, free: 5.949 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.001704/0.001705, allocations: 192.3 kB / 16.67 MB, free: 5.871 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.516/2.516, allocations: 461.9 MB / 0.7348 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 67.89 kB / 1.054 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8656/0.8669, allocations: 157.4 MB / 1.207 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00227/0.8692, allocations: 0.6924 MB / 1.208 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002044/0.8713, allocations: 1.198 MB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.636e-05/0.8714, allocations: 0 / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.667e-05/0.8715, allocations: 3.938 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.8716, allocations: 11.91 kB / 1.209 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009084/0.8725, allocations: 216 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.8729, allocations: 195.6 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.873, allocations: 12 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.8732, allocations: 71.89 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.8734, allocations: 63.83 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.8734, allocations: 16 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.8736, allocations: 27.98 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.8736, allocations: 11.98 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.8737, allocations: 59.83 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.874, allocations: 161.8 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.874, allocations: 0 / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.665e-06/0.874, allocations: 4 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.8741, allocations: 0 / 1.21 GB, free: 10.88 MB / 0.9356 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.0006438/0.8747, allocations: 442.6 kB / 1.21 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.8748, allocations: 12.03 kB / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.782e-05/0.8748, allocations: 30.75 kB / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.5e-05/0.8749, allocations: 8.938 kB / 1.21 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.875, allocations: 172.2 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.8751, allocations: 12.38 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.8751, allocations: 12.12 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001323/0.8752, allocations: 53.67 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.8753, allocations: 3.938 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.8753, allocations: 0 / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.8753, allocations: 0 / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.486e-05/0.8753, allocations: 19.92 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005888/0.8759, allocations: 348.8 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.876, allocations: 38.56 kB / 1.211 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.34e-05/0.8761, allocations: 20.86 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.8761, allocations: 3.984 kB / 1.211 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.8764, allocations: 103.3 kB / 1.211 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.923e-06/0.8764, allocations: 3.938 kB / 1.211 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0003304/0.8767, allocations: 117.5 kB / 1.211 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.8768, allocations: 59.41 kB / 1.211 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.8769, allocations: 125.8 kB / 1.211 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.8769, allocations: 33.7 kB / 1.211 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.13e-05/0.877, allocations: 88.38 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.846e-05/0.8771, allocations: 27.64 kB / 1.212 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.8773, allocations: 53.69 kB / 1.212 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001928/0.8775, allocations: 318.8 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.8776, allocations: 59.97 kB / 1.212 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.8778, allocations: 118 kB / 1.212 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.8781, allocations: 189.3 kB / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.8781, allocations: 0 / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004934/0.8786, allocations: 280.9 kB / 1.213 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.698e-05/0.8787, allocations: 67.39 kB / 1.213 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.8787, allocations: 4 kB / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.8787, allocations: 0 / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.648e-05/0.8788, allocations: 7.938 kB / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.8788, allocations: 4 kB / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003767/0.8792, allocations: 56.38 kB / 1.213 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.8792, allocations: 19.92 kB / 1.213 GB, free: 7.691 MB / 0.9356 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.0001222/0.8794, allocations: 125.8 kB / 1.213 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.115e-05/0.8794, allocations: 11.89 kB / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.385e-05/0.8794, allocations: 12.31 kB / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.8794, allocations: 0 / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.8795, allocations: 4 kB / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.8795, allocations: 0 / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003276/0.8798, allocations: 358.4 kB / 1.213 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.8798, allocations: 0 / 1.213 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.284e-05/0.8798, allocations: 11.92 kB / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.8798, allocations: 0 / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.8799, allocations: 0 / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.8799, allocations: 3.938 kB / 1.213 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.8799, allocations: 4 kB / 1.213 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.8801, allocations: 199.4 kB / 1.213 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.8801, allocations: 85 kB / 1.214 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.8801, allocations: 4 kB / 1.214 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.512e-05/0.8802, allocations: 11.94 kB / 1.214 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.8802, allocations: 7.984 kB / 1.214 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.8803, allocations: 4 kB / 1.214 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.034e-05/0.8803, allocations: 91.27 kB / 1.214 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8803, allocations: 0 / 1.214 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002828/0.8806, allocations: 36 kB / 1.214 GB, free: 6.637 MB / 0.9356 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.0005498/0.8812, allocations: 0.7361 MB / 1.214 GB, free: 5.875 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003909/0.8816, allocations: 254.6 kB / 1.215 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.8816, allocations: 4.312 kB / 1.215 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.207e-05/0.8817, allocations: 35.92 kB / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.882, allocations: 15.92 kB / 1.215 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.8842, allocations: 1.86 MB / 1.216 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.8845, allocations: 0.6962 MB / 1.217 GB, free: 2.84 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.104e-05/0.8846, allocations: 8.672 kB / 1.217 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.97e-05/0.8847, allocations: 23.42 kB / 1.217 GB, free: 2.809 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.8847, allocations: 3.938 kB / 1.217 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.9063, allocations: 3.087 MB / 1.22 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/8.721, allocations: 7.875 kB / 1.22 GB, free: 15.84 MB / 0.9512 GB (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 --timeout=50 --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) 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/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches