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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001104/0.001104, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001171/0.00117, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.317/1.317, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.517/2.517, allocations: 461.9 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 61.42 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2772, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001858/0.279, allocations: 0.7453 MB / 1.053 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001494/0.2806, allocations: 1.233 MB / 1.054 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.96e-05/0.2806, allocations: 4 kB / 1.054 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.2807, allocations: 3.938 kB / 1.054 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.359e-05/0.2807, allocations: 7.922 kB / 1.054 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005839/0.2813, allocations: 196.4 kB / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.2815, allocations: 159.8 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.227e-05/0.2816, allocations: 11.98 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.2817, allocations: 63.88 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.32e-05/0.2818, allocations: 47.88 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.2819, allocations: 8 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.457e-05/0.282, allocations: 31.92 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.223e-05/0.282, allocations: 15.92 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.137e-05/0.2821, allocations: 51.81 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.2823, allocations: 143.9 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2823, allocations: 0 / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2823, allocations: 0 / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2823, allocations: 4 kB / 1.055 GB, free: 5.488 MB / 0.8106 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.0004816/0.2828, allocations: 442.8 kB / 1.055 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.2828, allocations: 15.97 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.968e-05/0.2829, allocations: 34.75 kB / 1.055 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.454e-05/0.2829, allocations: 12.84 kB / 1.055 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.283, allocations: 168.3 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.2831, allocations: 12.3 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.15e-05/0.2831, allocations: 12.38 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.2832, allocations: 57.55 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-06/0.2832, allocations: 4 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.2832, allocations: 3.938 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-06/0.2832, allocations: 0 / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.034e-05/0.2833, allocations: 12 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004669/0.2838, allocations: 360.7 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.967e-05/0.2839, allocations: 38.5 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.905e-05/0.2839, allocations: 12.86 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.032e-06/0.2839, allocations: 4 kB / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.2841, allocations: 95.36 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.763e-06/0.2841, allocations: 0 / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002482/0.2843, allocations: 121.6 kB / 1.056 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.2844, allocations: 51.41 kB / 1.056 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.723e-05/0.2845, allocations: 129.7 kB / 1.056 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.2845, allocations: 37.7 kB / 1.056 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.386e-05/0.2846, allocations: 92.36 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.2846, allocations: 15.81 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.331e-05/0.2847, allocations: 53.62 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2848, allocations: 326.8 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.285, allocations: 63.95 kB / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.2851, allocations: 106 kB / 1.057 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.2853, allocations: 177.3 kB / 1.057 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2853, allocations: 4 kB / 1.057 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004348/0.2858, allocations: 284.7 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.61e-05/0.2858, allocations: 67.39 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.2858, allocations: 4 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.2859, allocations: 0 / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.205e-05/0.2859, allocations: 15.92 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2859, allocations: 4 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.2862, allocations: 60.31 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.2863, allocations: 23.86 kB / 1.058 GB, free: 2.297 MB / 0.8106 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.085e-05/0.2864, allocations: 125.8 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.641e-05/0.2864, allocations: 7.906 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.168e-05/0.2864, allocations: 12.36 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2864, allocations: 4 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2864, allocations: 4 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2864, allocations: 0 / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.2867, allocations: 358.5 kB / 1.058 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2867, allocations: 0 / 1.058 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.057e-05/0.2868, allocations: 3.984 kB / 1.058 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2868, allocations: 0 / 1.058 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.2868, allocations: 4 kB / 1.058 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2868, allocations: 0 / 1.058 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2868, allocations: 7.875 kB / 1.058 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.287, allocations: 191.5 kB / 1.058 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.401e-05/0.287, allocations: 85.02 kB / 1.058 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.287, allocations: 7.922 kB / 1.058 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.103e-05/0.2871, allocations: 96 / 1.058 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.2871, allocations: 19.91 kB / 1.058 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.2872, allocations: 4 kB / 1.058 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.9e-05/0.2872, allocations: 91.27 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2872, allocations: 0 / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002807/0.2875, allocations: 36 kB / 1.059 GB, free: 1.254 MB / 0.8106 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.0004507/0.288, allocations: 0.7371 MB / 1.059 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.2883, allocations: 254.7 kB / 1.06 GB, free: 224 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.2883, allocations: 8.25 kB / 1.06 GB, free: 216 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.13e-05/0.2883, allocations: 31.98 kB / 1.06 GB, free: 184 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.2886, allocations: 19.92 kB / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.2904, allocations: 1.86 MB / 1.061 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.2906, allocations: 0.6848 MB / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.023e-05/0.2907, allocations: 8.656 kB / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.386e-05/0.2907, allocations: 19.44 kB / 1.062 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.2907, allocations: 0 / 1.062 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1842/0.4749, allocations: 2.802 MB / 1.065 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.4752, allocations: 211.4 kB / 1.065 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.511/1.987, allocations: 1.5 kB / 1.065 GB, free: 10.52 MB / 0.8262 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