Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001571/0.001571, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001776/0.001776, allocations: 187.6 kB / 17.2 MB, free: 5.949 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 / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.529/2.529, allocations: 437 MB / 0.711 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 73.31 kB / 0.8699 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2801, allocations: 151.6 MB / 1.018 GB, free: 10.59 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00199/0.2822, allocations: 0.686 MB / 1.019 GB, free: 9.898 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001492/0.2837, allocations: 1.196 MB / 1.02 GB, free: 8.688 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.245e-05/0.2837, allocations: 0 / 1.02 GB, free: 8.688 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.403e-05/0.2838, allocations: 7.922 kB / 1.02 GB, free: 8.68 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.702e-05/0.2839, allocations: 11.86 kB / 1.02 GB, free: 8.668 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000707/0.2846, allocations: 225.2 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.2848, allocations: 191.7 kB / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.008e-05/0.2849, allocations: 4 kB / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.285, allocations: 75.81 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.2852, allocations: 55.86 kB / 1.02 GB, free: 8.133 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.2852, allocations: 16 kB / 1.02 GB, free: 8.117 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.926e-05/0.2853, allocations: 27.98 kB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.924e-05/0.2853, allocations: 15.92 kB / 1.02 GB, free: 8.074 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.578e-05/0.2854, allocations: 59.81 kB / 1.02 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.2856, allocations: 147.7 kB / 1.021 GB, free: 7.871 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2857, allocations: 4 kB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.475e-06/0.2857, allocations: 3.984 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.2857, allocations: 0 / 1.021 GB, free: 7.863 MB / 0.795 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.0005203/0.2862, allocations: 438.9 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2862, allocations: 12.02 kB / 1.021 GB, free: 7.363 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.2863, allocations: 16.84 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.826e-05/0.2864, allocations: 168.4 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.2865, allocations: 4.375 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.224e-05/0.2865, allocations: 12.38 kB / 1.021 GB, free: 7.129 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.2866, allocations: 61.73 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.2866, allocations: 0 / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.2867, allocations: 0 / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2867, allocations: 4 kB / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.926e-05/0.2867, allocations: 15.92 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004993/0.2872, allocations: 356.6 kB / 1.022 GB, free: 6.645 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 8.53e-05/0.2873, allocations: 50.44 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.239e-05/0.2874, allocations: 20.94 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.2874, allocations: 0 / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.2875, allocations: 83.36 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.2875, allocations: 0 / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of matching and sorting (n=9): time 0.000292/0.2878, allocations: 125.5 kB / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.2879, allocations: 59.39 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.288, allocations: 121.8 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.288, allocations: 33.7 kB / 1.022 GB, free: 6.102 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.751e-05/0.2881, allocations: 100.3 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.2881, allocations: 11.8 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.2883, allocations: 53.69 kB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2884, allocations: 326.8 kB / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.2885, allocations: 59.97 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.2887, allocations: 106 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.2889, allocations: 189.3 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2889, allocations: 4 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004612/0.2894, allocations: 276.7 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.243e-05/0.2895, allocations: 71.39 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2895, allocations: 0 / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2895, allocations: 4 kB / 1.023 GB, free: 4.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.716e-05/0.2895, allocations: 4 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2896, allocations: 3.938 kB / 1.023 GB, free: 4.812 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.2899, allocations: 72.3 kB / 1.023 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.29, allocations: 11.98 kB / 1.023 GB, free: 4.73 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 9.77e-05/0.2901, allocations: 127.6 kB / 1.023 GB, free: 4.598 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.2901, allocations: 7.938 kB / 1.023 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.58e-05/0.2901, allocations: 8.375 kB / 1.023 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2902, allocations: 4 kB / 1.024 GB, free: 4.578 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2902, allocations: 3.938 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2902, allocations: 3.984 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003068/0.2905, allocations: 362.4 kB / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2905, allocations: 0 / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.21e-05/0.2905, allocations: 4 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2905, allocations: 0 / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.2905, allocations: 8 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.2905, allocations: 3.938 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2906, allocations: 11.92 kB / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.2907, allocations: 199.5 kB / 1.024 GB, free: 3.922 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.2908, allocations: 81.02 kB / 1.024 GB, free: 3.824 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.2908, allocations: 4 kB / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.525e-05/0.2909, allocations: 0 / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.087e-05/0.2909, allocations: 11.92 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.2909, allocations: 4 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.669e-05/0.291, allocations: 99.27 kB / 1.024 GB, free: 3.707 MB / 0.795 GB Notification: Performance of sort global known variables: time 2e-07/0.291, allocations: 0 / 1.024 GB, free: 3.707 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002947/0.2913, allocations: 28 kB / 1.024 GB, free: 3.68 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.0001545/0.2914, allocations: 107.2 kB / 1.024 GB, free: 3.566 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003546/0.2918, allocations: 262.6 kB / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2918, allocations: 0 / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.309e-05/0.2919, allocations: 36.11 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.2922, allocations: 20.3 kB / 1.025 GB, free: 3.23 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.2926, allocations: 200.1 kB / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.2928, allocations: 0.6894 MB / 1.026 GB, free: 2.285 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.92e-05/0.2929, allocations: 15.44 kB / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.2929, allocations: 0 / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of Templates: time 0.00342/0.2963, allocations: 1.487 MB / 1.027 GB, free: 0.8008 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches