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: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 92.16 kB / 16.02 MB, free: 80 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.001575/0.001575, allocations: 183.8 kB / 16.92 MB, free: 6.922 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.7/1.7, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.763/2.763, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003365/0.0003366, allocations: 13.98 kB / 0.9034 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3224, allocations: 159.6 MB / 1.059 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0008371/0.3233, allocations: 426.1 kB / 1.06 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001586/0.3249, allocations: 1.213 MB / 1.061 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.686e-05/0.3249, allocations: 4 kB / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.762e-05/0.325, allocations: 0 / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.959e-05/0.325, allocations: 15.84 kB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006411/0.3257, allocations: 201.5 kB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.3259, allocations: 155.7 kB / 1.061 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.407e-05/0.326, allocations: 8 kB / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.3261, allocations: 63.88 kB / 1.061 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.3263, allocations: 47.86 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.3263, allocations: 8 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.177e-05/0.3264, allocations: 23.98 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.3264, allocations: 19.92 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.777e-05/0.3265, allocations: 77.58 kB / 1.062 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.3267, allocations: 107.7 kB / 1.062 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3267, allocations: 0 / 1.062 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3267, allocations: 0 / 1.062 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.3268, allocations: 0 / 1.062 GB, free: 2.609 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.0005479/0.3273, allocations: 416.3 kB / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3274, allocations: 15.91 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.553e-05/0.3274, allocations: 12.84 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.3276, allocations: 168.4 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.3276, allocations: 8.375 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.3277, allocations: 12.38 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.3278, allocations: 57.8 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.3278, allocations: 0 / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.3278, allocations: 0 / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3278, allocations: 0 / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.387e-05/0.3279, allocations: 15.98 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005575/0.3285, allocations: 368.5 kB / 1.063 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.794e-05/0.3286, allocations: 34.56 kB / 1.063 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.958e-05/0.3286, allocations: 12.86 kB / 1.063 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.3286, allocations: 4 kB / 1.063 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.3288, allocations: 99.36 kB / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.973e-06/0.3288, allocations: 0 / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002883/0.3291, allocations: 129.5 kB / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.975e-05/0.3292, allocations: 55.41 kB / 1.063 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.636e-05/0.3293, allocations: 121.8 kB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.3293, allocations: 29.7 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.3294, allocations: 96.27 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.3294, allocations: 19.8 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.934e-05/0.3295, allocations: 21.72 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.3296, allocations: 326.8 kB / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.3297, allocations: 67.91 kB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.3299, allocations: 108.2 kB / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.3301, allocations: 185.3 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.3301, allocations: 0 / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004347/0.3305, allocations: 276.8 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.496e-05/0.3306, allocations: 71.39 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3306, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3306, allocations: 4 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.549e-05/0.3307, allocations: 12.08 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.3307, allocations: 4 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003981/0.3311, allocations: 79.88 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.3312, allocations: 15.98 kB / 1.064 GB, free: 15.5 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.0001101/0.3313, allocations: 127.1 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.3313, allocations: 11.84 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.482e-05/0.3313, allocations: 8.375 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3313, allocations: 4 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3314, allocations: 7.984 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3314, allocations: 4 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003271/0.3317, allocations: 358.5 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3317, allocations: 480 / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.077e-06/0.3317, allocations: 0 / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3317, allocations: 0 / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.3317, allocations: 7.984 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3318, allocations: 0 / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3318, allocations: 7.875 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001878/0.332, allocations: 199.4 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.302e-05/0.332, allocations: 85.02 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.332, allocations: 0 / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.439e-05/0.3321, allocations: 3.984 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.371e-05/0.3321, allocations: 11.94 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3321, allocations: 7.984 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.155e-05/0.3322, allocations: 95.7 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3322, allocations: 0 / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002882/0.3325, allocations: 39.98 kB / 1.065 GB, free: 14.45 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.0001678/0.3327, allocations: 107.2 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003639/0.333, allocations: 250.7 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3331, allocations: 0 / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.585e-05/0.3331, allocations: 35.92 kB / 1.066 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.3334, allocations: 21.86 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003734/0.3338, allocations: 204.8 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3341, allocations: 0.6926 MB / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.214e-05/0.3341, allocations: 11.44 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3341, allocations: 4 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of Templates: time 0.003236/0.3374, allocations: 1.463 MB / 1.068 GB, free: 11.58 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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