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 12.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004244/0.004244, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001247/0.001247, allocations: 202.4 kB / 16.68 MB, free: 5.969 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.652/2.652, allocations: 482.6 MB / 0.755 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 71.89 kB / 1.083 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2561, allocations: 162.3 MB / 1.242 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001504/0.2576, allocations: 0.6807 MB / 1.243 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2589, allocations: 1.198 MB / 1.244 GB, free: 7.902 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.179e-05/0.259, allocations: 0 / 1.244 GB, free: 7.902 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.267e-05/0.259, allocations: 3.938 kB / 1.244 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.577e-05/0.2591, allocations: 11.91 kB / 1.244 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005465/0.2596, allocations: 221.9 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.2598, allocations: 191.6 kB / 1.244 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.011e-05/0.2599, allocations: 11.98 kB / 1.244 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.514e-05/0.26, allocations: 71.89 kB / 1.244 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.2601, allocations: 63.83 kB / 1.244 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.2602, allocations: 16 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7e-05/0.2602, allocations: 27.98 kB / 1.244 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.978e-05/0.2603, allocations: 11.94 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.571e-05/0.2603, allocations: 59.88 kB / 1.244 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.2605, allocations: 163.5 kB / 1.245 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.2605, allocations: 0 / 1.245 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of FrontEnd: time 9.12e-07/0.2605, allocations: 0 / 1.245 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.2606, allocations: 0 / 1.245 GB, free: 7.07 MB / 0.9981 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.0004615/0.261, allocations: 438.7 kB / 1.245 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.2611, allocations: 8.031 kB / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.836e-05/0.2611, allocations: 38.69 kB / 1.245 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.2611, allocations: 12.89 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.2613, allocations: 176.2 kB / 1.245 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.2613, allocations: 16.38 kB / 1.245 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.874e-05/0.2613, allocations: 12.12 kB / 1.245 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.388e-05/0.2614, allocations: 45.67 kB / 1.245 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-06/0.2614, allocations: 4 kB / 1.245 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.2614, allocations: 4 kB / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.2614, allocations: 0 / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.951e-05/0.2615, allocations: 15.98 kB / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004259/0.2619, allocations: 356.6 kB / 1.246 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.783e-05/0.262, allocations: 42.56 kB / 1.246 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.642e-05/0.262, allocations: 20.8 kB / 1.246 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.2621, allocations: 0 / 1.246 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.2622, allocations: 99.31 kB / 1.246 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.2622, allocations: 0 / 1.246 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.00023/0.2625, allocations: 117.6 kB / 1.246 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.2625, allocations: 63.41 kB / 1.246 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.691e-05/0.2626, allocations: 121.8 kB / 1.246 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.2626, allocations: 29.7 kB / 1.246 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.2627, allocations: 96.36 kB / 1.246 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.2627, allocations: 27.78 kB / 1.246 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.81e-05/0.2628, allocations: 53.69 kB / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.2629, allocations: 318.8 kB / 1.247 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.2631, allocations: 59.97 kB / 1.247 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.2632, allocations: 114 kB / 1.247 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.2634, allocations: 189.3 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2634, allocations: 0 / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004133/0.2639, allocations: 276.8 kB / 1.247 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.92e-05/0.2639, allocations: 67.39 kB / 1.247 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.2639, allocations: 384 / 1.247 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.2639, allocations: 4 kB / 1.247 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.703e-05/0.264, allocations: 7.938 kB / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.264, allocations: 8.156 kB / 1.247 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.2643, allocations: 55.88 kB / 1.247 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/0.2643, allocations: 19.92 kB / 1.247 GB, free: 3.883 MB / 0.9981 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 9.44e-05/0.2644, allocations: 125.8 kB / 1.247 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.2645, allocations: 11.94 kB / 1.247 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.002e-05/0.2645, allocations: 12.38 kB / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.2645, allocations: 0 / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2645, allocations: 0 / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2645, allocations: 3.938 kB / 1.247 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003052/0.2648, allocations: 362.4 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2648, allocations: 0 / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.127e-05/0.2648, allocations: 7.984 kB / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2648, allocations: 0 / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.2648, allocations: 0 / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.2649, allocations: 3.938 kB / 1.248 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.2649, allocations: 8 kB / 1.248 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001725/0.265, allocations: 195.4 kB / 1.248 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.2651, allocations: 85.05 kB / 1.248 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.2651, allocations: 4 kB / 1.248 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.243e-05/0.2652, allocations: 7.938 kB / 1.248 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.94e-05/0.2652, allocations: 7.984 kB / 1.248 GB, free: 2.961 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.2652, allocations: 4 kB / 1.248 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.232e-05/0.2653, allocations: 95.27 kB / 1.248 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2653, allocations: 0 / 1.248 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002475/0.2655, allocations: 32 kB / 1.248 GB, free: 2.832 MB / 0.9981 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.0004587/0.266, allocations: 0.7468 MB / 1.249 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003197/0.2663, allocations: 254.7 kB / 1.249 GB, free: 1.789 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2663, allocations: 0 / 1.249 GB, free: 1.789 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.439e-05/0.2664, allocations: 35.92 kB / 1.249 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.2666, allocations: 21.81 kB / 1.249 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4618/0.7285, allocations: 1.857 MB / 1.251 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.7286, allocations: 0.69 MB / 1.252 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.854e-05/0.7287, allocations: 8 kB / 1.252 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.7287, allocations: 20.58 kB / 1.252 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of SimCode: time 8.12e-07/0.7287, allocations: 0.5 kB / 1.252 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.028/2.757, allocations: 3.03 MB / 1.255 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.82/20.58, allocations: 7.406 kB / 1.255 GB, free: 12.97 MB / 0.9981 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=400 --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