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.001006/0.001006, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006166/0.006166, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.146/1.146, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.158/2.158, allocations: 443.4 MB / 0.7176 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002778, allocations: 8.781 kB / 0.8797 GB, free: 41.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3103, allocations: 155.2 MB / 1.031 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0009522/0.3113, allocations: 414.8 kB / 1.032 GB, free: 3.785 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001483/0.3128, allocations: 1.222 MB / 1.033 GB, free: 2.547 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.953e-05/0.3129, allocations: 0 / 1.033 GB, free: 2.547 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.3129, allocations: 3.938 kB / 1.033 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.664e-05/0.313, allocations: 11.94 kB / 1.033 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005984/0.3136, allocations: 201.1 kB / 1.033 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001607/0.3137, allocations: 155.7 kB / 1.033 GB, free: 2.188 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.297e-05/0.3138, allocations: 11.98 kB / 1.033 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.329e-05/0.3139, allocations: 59.89 kB / 1.033 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.784e-05/0.314, allocations: 55.86 kB / 1.033 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/0.3141, allocations: 8 kB / 1.033 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.837e-05/0.3142, allocations: 23.92 kB / 1.033 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.859e-05/0.3142, allocations: 7.938 kB / 1.033 GB, free: 2.023 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.843e-05/0.3143, allocations: 77.58 kB / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.3145, allocations: 155.8 kB / 1.034 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3145, allocations: 0 / 1.034 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3145, allocations: 0 / 1.034 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.3145, allocations: 0 / 1.034 GB, free: 1.789 MB / 0.7794 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.0004544/0.315, allocations: 410.8 kB / 1.034 GB, free: 1.328 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.315, allocations: 16.03 kB / 1.034 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.534e-05/0.3151, allocations: 34.75 kB / 1.034 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.088e-05/0.3151, allocations: 16.84 kB / 1.034 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.3153, allocations: 168.3 kB / 1.034 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.3153, allocations: 8.359 kB / 1.034 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.3153, allocations: 8.375 kB / 1.034 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.3154, allocations: 61.55 kB / 1.034 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.3154, allocations: 0 / 1.034 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.3155, allocations: 0 / 1.034 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3155, allocations: 0 / 1.034 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.798e-05/0.3155, allocations: 16 kB / 1.034 GB, free: 0.9531 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004897/0.316, allocations: 360.6 kB / 1.035 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.376e-05/0.3161, allocations: 38.5 kB / 1.035 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.633e-05/0.3161, allocations: 12.86 kB / 1.035 GB, free: 500 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-06/0.3162, allocations: 0 / 1.035 GB, free: 500 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.3163, allocations: 95.45 kB / 1.035 GB, free: 392 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.3163, allocations: 0 / 1.035 GB, free: 392 kB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002605/0.3166, allocations: 129.4 kB / 1.035 GB, free: 256 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.3166, allocations: 51.41 kB / 1.035 GB, free: 192 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.3167, allocations: 125.8 kB / 1.035 GB, free: 56 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.3168, allocations: 33.7 kB / 1.035 GB, free: 16 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/0.3169, allocations: 92.28 kB / 1.035 GB, free: 15.92 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.3169, allocations: 23.8 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.963e-05/0.317, allocations: 29.64 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3171, allocations: 326.8 kB / 1.036 GB, free: 15.53 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.3172, allocations: 59.97 kB / 1.036 GB, free: 15.47 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.3174, allocations: 106 kB / 1.036 GB, free: 15.35 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.3176, allocations: 181.3 kB / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3176, allocations: 0 / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000438/0.3181, allocations: 288.8 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.3181, allocations: 67.39 kB / 1.036 GB, free: 14.76 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.3181, allocations: 4 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.3182, allocations: 0 / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.863e-05/0.3182, allocations: 8 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.3182, allocations: 4 kB / 1.036 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.3186, allocations: 84.73 kB / 1.036 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.3187, allocations: 15.92 kB / 1.036 GB, free: 14.64 MB / 0.795 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.00012/0.3188, allocations: 134.3 kB / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.3188, allocations: 11.91 kB / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.401e-05/0.3188, allocations: 4.375 kB / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3188, allocations: 0 / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.3189, allocations: 0 / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3189, allocations: 4 kB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003258/0.3192, allocations: 358.4 kB / 1.037 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3192, allocations: 0 / 1.037 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.918e-06/0.3192, allocations: 8 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.3192, allocations: 480 / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-06/0.3192, allocations: 4 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.3193, allocations: 4 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3193, allocations: 7.875 kB / 1.037 GB, free: 14.05 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.3195, allocations: 203.3 kB / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.3195, allocations: 85.02 kB / 1.037 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.3195, allocations: 3.938 kB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.043e-05/0.3196, allocations: 0 / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.3196, allocations: 11.92 kB / 1.037 GB, free: 13.72 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.3196, allocations: 12 kB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.613e-05/0.3197, allocations: 91.81 kB / 1.037 GB, free: 13.62 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3197, allocations: 0 / 1.037 GB, free: 13.62 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002773/0.32, allocations: 28 kB / 1.037 GB, free: 13.59 MB / 0.795 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.0004938/0.3205, allocations: 0.7358 MB / 1.038 GB, free: 12.83 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003508/0.3208, allocations: 258.7 kB / 1.038 GB, free: 12.55 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3209, allocations: 3.938 kB / 1.038 GB, free: 12.55 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.312e-05/0.3209, allocations: 28 kB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.3212, allocations: 22.08 kB / 1.038 GB, free: 12.5 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/0.3233, allocations: 1.875 MB / 1.04 GB, free: 10.5 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.3236, allocations: 0.6887 MB / 1.041 GB, free: 9.789 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.179e-05/0.3236, allocations: 8.656 kB / 1.041 GB, free: 9.781 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.3237, allocations: 23.44 kB / 1.041 GB, free: 9.758 MB / 0.795 GB Notification: Performance of SimCode: time 4.41e-07/0.3237, allocations: 0 / 1.041 GB, free: 9.758 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01333/0.337, allocations: 2.734 MB / 1.043 GB, free: 7.188 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000244/0.3373, allocations: 212.8 kB / 1.044 GB, free: 6.93 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.883/2.22, allocations: 2.25 kB / 1.044 GB, free: 6.93 MB / 0.795 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