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.0008383/0.0008383, allocations: 91.77 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.005412/0.005412, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.459/1.459, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.783/2.783, allocations: 462.6 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003539, allocations: 10.41 kB / 0.9029 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3417, allocations: 159.6 MB / 1.059 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0007929/0.3425, allocations: 418.2 kB / 1.059 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.3438, allocations: 1.229 MB / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.993e-05/0.3439, allocations: 0 / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.411e-05/0.3439, allocations: 0 / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.287e-05/0.344, allocations: 7.922 kB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.3445, allocations: 197.5 kB / 1.061 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001513/0.3447, allocations: 167.6 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.91e-05/0.3448, allocations: 12 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.645e-05/0.3449, allocations: 63.88 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.84e-05/0.3449, allocations: 43.88 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.345, allocations: 8 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.843e-05/0.3451, allocations: 31.97 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.3451, allocations: 11.92 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.3452, allocations: 73.55 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.3454, allocations: 147.9 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3454, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3454, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.3454, allocations: 4 kB / 1.061 GB, free: 2.469 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.0004416/0.3458, allocations: 410.8 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3459, allocations: 11.97 kB / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.3459, allocations: 42.62 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.684e-05/0.346, allocations: 8.844 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.3461, allocations: 168.4 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.3461, allocations: 4.375 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.3462, allocations: 20.36 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.3463, allocations: 49.61 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.3463, allocations: 4 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.3463, allocations: 4 kB / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3463, allocations: 0 / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.368e-05/0.3464, allocations: 12 kB / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005202/0.3469, allocations: 372.4 kB / 1.062 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.839e-05/0.347, allocations: 38.56 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.623e-05/0.347, allocations: 16.86 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-06/0.347, allocations: 0 / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.3472, allocations: 91.39 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.3472, allocations: 0 / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002662/0.3475, allocations: 125.5 kB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.3475, allocations: 55.41 kB / 1.062 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.081e-05/0.3476, allocations: 125.8 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.3477, allocations: 29.7 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.029e-05/0.3477, allocations: 96.28 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3478, allocations: 19.8 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.782e-05/0.3478, allocations: 21.72 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.3479, allocations: 322.8 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3481, allocations: 59.97 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.3482, allocations: 118 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.3484, allocations: 185.3 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3485, allocations: 4 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000404/0.3489, allocations: 277.2 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.819e-05/0.3489, allocations: 68.8 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.3489, allocations: 0 / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.349, allocations: 4 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.761e-05/0.349, allocations: 15.88 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.349, allocations: 7.984 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003747/0.3494, allocations: 74.56 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.3495, allocations: 15.98 kB / 1.064 GB, free: 15.32 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 9.622e-05/0.3496, allocations: 135 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.3496, allocations: 7.906 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.558e-05/0.3496, allocations: 12.38 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3496, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3496, allocations: 3.938 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.3496, allocations: 3.984 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000296/0.3499, allocations: 354.5 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3499, allocations: 4 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.265e-06/0.35, allocations: 0 / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.35, allocations: 4 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.35, allocations: 3.984 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.35, allocations: 0 / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.35, allocations: 3.938 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.3502, allocations: 203.4 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.124e-05/0.3502, allocations: 81.02 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.3502, allocations: 4 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.098e-05/0.3503, allocations: 7.984 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.248e-05/0.3503, allocations: 11.94 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.3503, allocations: 0 / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.615e-05/0.3504, allocations: 91.81 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3504, allocations: 4 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002594/0.3507, allocations: 35.98 kB / 1.065 GB, free: 14.27 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.0004819/0.3512, allocations: 0.7397 MB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000316/0.3515, allocations: 254.9 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3515, allocations: 0 / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.479e-05/0.3516, allocations: 39.91 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.3518, allocations: 24.56 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.3538, allocations: 1.863 MB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.354, allocations: 0.6848 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.186e-05/0.3541, allocations: 20.73 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.529e-05/0.3541, allocations: 19.44 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3541, allocations: 0 / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03535/0.3895, allocations: 2.723 MB / 1.071 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002814/0.3898, allocations: 219.1 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.233, allocations: 3.938 kB / 1.071 GB, free: 7.605 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