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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00935/0.00935, allocations: 101 kB / 15.73 MB, free: 6.043 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.001608/0.001608, allocations: 191.8 kB / 16.67 MB, free: 5.969 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.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.986/2.986, allocations: 472.6 MB / 0.7453 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.91 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4262/0.4275, allocations: 159.9 MB / 1.226 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002113/0.4297, allocations: 0.6856 MB / 1.226 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001648/0.4313, allocations: 1.194 MB / 1.227 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.652e-05/0.4314, allocations: 0 / 1.227 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.567e-05/0.4314, allocations: 7.922 kB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.411e-05/0.4315, allocations: 11.92 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007165/0.4322, allocations: 217.4 kB / 1.228 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.4325, allocations: 195.6 kB / 1.228 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.4326, allocations: 15.98 kB / 1.228 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.4327, allocations: 63.89 kB / 1.228 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.4329, allocations: 67.83 kB / 1.228 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.4329, allocations: 16 kB / 1.228 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.277e-05/0.433, allocations: 27.98 kB / 1.228 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.4331, allocations: 11.94 kB / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.519e-05/0.4332, allocations: 55.88 kB / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.4334, allocations: 163.5 kB / 1.228 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4334, allocations: 4 kB / 1.228 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4334, allocations: 0 / 1.228 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.4334, allocations: 7.938 kB / 1.228 GB, free: 6.461 MB / 0.9825 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.0005634/0.434, allocations: 434.7 kB / 1.229 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4341, allocations: 12.03 kB / 1.229 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.076e-05/0.4341, allocations: 12.89 kB / 1.229 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.4343, allocations: 172.3 kB / 1.229 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.4343, allocations: 16.38 kB / 1.229 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/0.4343, allocations: 8.375 kB / 1.229 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.4345, allocations: 53.61 kB / 1.229 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.4345, allocations: 4 kB / 1.229 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.4345, allocations: 4 kB / 1.229 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4345, allocations: 0 / 1.229 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.407e-05/0.4346, allocations: 19.92 kB / 1.229 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005917/0.4352, allocations: 344.8 kB / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.535e-05/0.4353, allocations: 42.5 kB / 1.229 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.046e-05/0.4353, allocations: 20.86 kB / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.4353, allocations: 3.984 kB / 1.229 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002051/0.4355, allocations: 95.33 kB / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.4355, allocations: 0 / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003145/0.4359, allocations: 121.6 kB / 1.23 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.4359, allocations: 59.41 kB / 1.23 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.436, allocations: 121.8 kB / 1.23 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.4361, allocations: 37.7 kB / 1.23 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.4362, allocations: 92.36 kB / 1.23 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.105e-05/0.4362, allocations: 27.78 kB / 1.23 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.4363, allocations: 53.69 kB / 1.23 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000181/0.4365, allocations: 322.8 kB / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.4367, allocations: 55.97 kB / 1.23 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.4369, allocations: 117.9 kB / 1.23 GB, free: 4 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.4372, allocations: 177.7 kB / 1.231 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4372, allocations: 4 kB / 1.231 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004985/0.4377, allocations: 280.8 kB / 1.231 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.921e-05/0.4378, allocations: 67.39 kB / 1.231 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.4378, allocations: 7.938 kB / 1.231 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.4378, allocations: 4 kB / 1.231 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.927e-05/0.4379, allocations: 7.938 kB / 1.231 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.4379, allocations: 4 kB / 1.231 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.4383, allocations: 52.09 kB / 1.231 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/0.4383, allocations: 15.98 kB / 1.231 GB, free: 3.328 MB / 0.9825 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.0001521/0.4385, allocations: 132.3 kB / 1.231 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.4385, allocations: 7.953 kB / 1.231 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.4386, allocations: 12.36 kB / 1.231 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.4386, allocations: 0 / 1.231 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.4386, allocations: 7.938 kB / 1.231 GB, free: 3.16 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.4386, allocations: 0 / 1.231 GB, free: 3.16 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004091/0.439, allocations: 362.4 kB / 1.232 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.439, allocations: 0 / 1.232 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.516e-05/0.4391, allocations: 7.984 kB / 1.232 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4391, allocations: 0 / 1.232 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.4391, allocations: 0 / 1.232 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4391, allocations: 0 / 1.232 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.4391, allocations: 7.938 kB / 1.232 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.4393, allocations: 199.4 kB / 1.232 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.907e-05/0.4394, allocations: 81.06 kB / 1.232 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.4394, allocations: 11.98 kB / 1.232 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.259e-05/0.4394, allocations: 0 / 1.232 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.4395, allocations: 7.938 kB / 1.232 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.4395, allocations: 7.984 kB / 1.232 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.368e-05/0.4396, allocations: 91.27 kB / 1.232 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4396, allocations: 0 / 1.232 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003009/0.4399, allocations: 36 kB / 1.232 GB, free: 2.273 MB / 0.9825 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.0002128/0.4401, allocations: 107.4 kB / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004121/0.4405, allocations: 262.6 kB / 1.232 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4406, allocations: 0 / 1.232 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.13e-05/0.4406, allocations: 31.94 kB / 1.232 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.4409, allocations: 22.17 kB / 1.232 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003921/0.4413, allocations: 174.2 kB / 1.233 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.4416, allocations: 0.6885 MB / 1.233 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.054e-05/0.4417, allocations: 4.672 kB / 1.233 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.49e-05/0.4417, allocations: 11.44 kB / 1.233 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.4417, allocations: 0 / 1.233 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of Templates: time 0.004847/0.4466, allocations: 1.928 MB / 1.235 GB, free: 14.99 MB / 0.9981 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/jenkins/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