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.001059/0.001059, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.611/2.611, allocations: 469.4 MB / 0.742 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 63.8 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2771, allocations: 159.1 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001923/0.279, allocations: 0.6903 MB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2804, allocations: 1.199 MB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-05/0.2805, allocations: 0 / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.641e-05/0.2805, allocations: 7.875 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.754e-05/0.2806, allocations: 23.84 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.2813, allocations: 212.7 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.2816, allocations: 183.8 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.466e-05/0.2817, allocations: 15.98 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2818, allocations: 67.88 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.2819, allocations: 51.86 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.424e-05/0.2819, allocations: 16 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.267e-05/0.282, allocations: 35.92 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.599e-05/0.2821, allocations: 15.92 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.982e-05/0.2822, allocations: 59.83 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002127/0.2824, allocations: 147.9 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2824, allocations: 4 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2824, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.2824, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 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.0005415/0.283, allocations: 442.7 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.283, allocations: 8.031 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.551e-05/0.2831, allocations: 34.73 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.072e-05/0.2831, allocations: 12.84 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.2832, allocations: 172.3 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.2833, allocations: 4.375 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.2833, allocations: 16.38 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.2834, allocations: 53.61 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.2835, allocations: 3.938 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.2835, allocations: 3.938 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2835, allocations: 3.938 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.876e-05/0.2835, allocations: 15.98 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005068/0.284, allocations: 360.7 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.277e-05/0.2841, allocations: 34.58 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.064e-05/0.2842, allocations: 16.94 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.2842, allocations: 7.938 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.2844, allocations: 91.27 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.2844, allocations: 0 / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002612/0.2846, allocations: 121.6 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.2847, allocations: 59.41 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.899e-05/0.2848, allocations: 117.8 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.2848, allocations: 33.7 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.37e-05/0.2849, allocations: 92.36 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/0.2849, allocations: 19.8 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/0.285, allocations: 49.69 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.806e-05/0.2851, allocations: 326.8 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.2853, allocations: 59.97 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.2854, allocations: 115.6 kB / 1.069 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002014/0.2856, allocations: 185.3 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2856, allocations: 0 / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004089/0.286, allocations: 280.7 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.092e-05/0.2861, allocations: 71.39 kB / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.2861, allocations: 0 / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.2861, allocations: 4 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.556e-05/0.2862, allocations: 8.156 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2862, allocations: 7.984 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.2866, allocations: 56.25 kB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.2866, allocations: 19.92 kB / 1.069 GB, free: 8.684 MB / 0.8262 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.0001052/0.2867, allocations: 138.8 kB / 1.069 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.758e-05/0.2867, allocations: 7.906 kB / 1.069 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.789e-05/0.2868, allocations: 12.38 kB / 1.069 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2868, allocations: 4 kB / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.2868, allocations: 0 / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2868, allocations: 3.984 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.2871, allocations: 354.5 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2871, allocations: 0 / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.806e-06/0.2871, allocations: 0 / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2871, allocations: 4 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.2871, allocations: 7.984 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2871, allocations: 0 / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.2871, allocations: 7.938 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.2873, allocations: 195.4 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.598e-05/0.2874, allocations: 81.11 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.2874, allocations: 0 / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.535e-05/0.2874, allocations: 11.98 kB / 1.07 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.231e-05/0.2875, allocations: 3.938 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.2875, allocations: 11.94 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.72e-05/0.2876, allocations: 95.75 kB / 1.07 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.5e-07/0.2876, allocations: 0 / 1.07 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002778/0.2878, allocations: 36 kB / 1.07 GB, free: 7.629 MB / 0.8262 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.0004306/0.2883, allocations: 0.7364 MB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003235/0.2886, allocations: 270.6 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2886, allocations: 0 / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.302e-05/0.2887, allocations: 31.98 kB / 1.071 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.289, allocations: 19.92 kB / 1.071 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.2908, allocations: 1.851 MB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/0.291, allocations: 0.6885 MB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.37e-05/0.291, allocations: 12.66 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.2911, allocations: 19.44 kB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2911, allocations: 0 / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.3102, allocations: 2.992 MB / 1.076 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.451, allocations: 13.83 kB / 1.077 GB, free: 0.918 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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