Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.00127/0.00127, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001393/0.001393, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.609/2.609, allocations: 390.3 MB / 0.6653 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.0003369, allocations: 8 kB / 0.8145 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8455/0.8458, allocations: 142.3 MB / 0.9535 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0007898/0.8467, allocations: 401.1 kB / 0.9539 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001187/0.8479, allocations: 1.142 MB / 0.955 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.76e-05/0.8479, allocations: 0 / 0.955 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.876e-05/0.848, allocations: 7.875 kB / 0.955 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.211e-05/0.848, allocations: 10.38 kB / 0.955 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006465/0.8487, allocations: 197.3 kB / 0.9552 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.8489, allocations: 83.89 kB / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.849, allocations: 8.609 kB / 0.9553 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.8491, allocations: 63.59 kB / 0.9554 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.8492, allocations: 45.5 kB / 0.9554 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.537e-05/0.8493, allocations: 8.562 kB / 0.9554 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.244e-05/0.8494, allocations: 26.25 kB / 0.9555 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.344e-05/0.8494, allocations: 8.625 kB / 0.9555 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.411e-05/0.8495, allocations: 44.52 kB / 0.9555 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001716/0.8496, allocations: 109.4 kB / 0.9556 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.8497, allocations: 0 / 0.9556 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.765e-06/0.8497, allocations: 0 / 0.9556 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.8497, allocations: 0 / 0.9556 GB, free: 6.477 MB / 0.7169 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.0005493/0.8502, allocations: 421.5 kB / 0.956 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.8503, allocations: 9.312 kB / 0.956 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.388e-05/0.8504, allocations: 7.312 kB / 0.956 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.8505, allocations: 177.7 kB / 0.9562 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.8505, allocations: 4.594 kB / 0.9562 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.8506, allocations: 17.22 kB / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.8507, allocations: 51.27 kB / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.8508, allocations: 1.344 kB / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.8508, allocations: 0 / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.8508, allocations: 5.391 kB / 0.9563 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.254e-05/0.8508, allocations: 10.19 kB / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.8514, allocations: 352.8 kB / 0.9566 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.786e-05/0.8515, allocations: 41.25 kB / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-06/0.8515, allocations: 1.5 kB / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.8517, allocations: 100.5 kB / 0.9568 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.8517, allocations: 3.938 kB / 0.9568 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0003206/0.8521, allocations: 120.5 kB / 0.9569 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.8521, allocations: 57.78 kB / 0.9569 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.8522, allocations: 126.4 kB / 0.9571 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.8523, allocations: 34.64 kB / 0.9571 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.991e-05/0.8523, allocations: 94.92 kB / 0.9572 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.8524, allocations: 18.41 kB / 0.9572 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/0.8524, allocations: 3.938 kB / 0.9572 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.077e-05/0.8525, allocations: 320 kB / 0.9575 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.8526, allocations: 59.38 kB / 0.9576 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.8528, allocations: 111.3 kB / 0.9577 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.853, allocations: 113 kB / 0.9578 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.853, allocations: 5.125 kB / 0.9578 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004502/0.8534, allocations: 287.7 kB / 0.9581 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.629e-05/0.8535, allocations: 72.41 kB / 0.9581 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.8535, allocations: 1.188 kB / 0.9581 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.8535, allocations: 3.688 kB / 0.9581 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.814e-05/0.8536, allocations: 6.625 kB / 0.9581 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.8536, allocations: 4.312 kB / 0.9581 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003881/0.854, allocations: 78.47 kB / 0.9582 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.854, allocations: 18.48 kB / 0.9582 GB, free: 4.031 MB / 0.7169 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 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.399e-05/0.8541, allocations: 128.8 kB / 0.9584 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.655e-05/0.8542, allocations: 15.7 kB / 0.9584 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.875e-05/0.8542, allocations: 9.203 kB / 0.9584 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.8542, allocations: 1.25 kB / 0.9584 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.8542, allocations: 0 / 0.9584 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.8542, allocations: 1.344 kB / 0.9584 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.8545, allocations: 356.3 kB / 0.9587 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.8545, allocations: 1.25 kB / 0.9587 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.211e-05/0.8545, allocations: 9.141 kB / 0.9587 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.8545, allocations: 9.016 kB / 0.9587 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.8545, allocations: 5 kB / 0.9587 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.8545, allocations: 1.344 kB / 0.9587 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.8545, allocations: 0 / 0.9587 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.8547, allocations: 192 kB / 0.9589 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.381e-05/0.8548, allocations: 87.38 kB / 0.959 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.8548, allocations: 4.984 kB / 0.959 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.296e-05/0.8548, allocations: 5.125 kB / 0.959 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.875e-05/0.8549, allocations: 7.422 kB / 0.959 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.8549, allocations: 7.5 kB / 0.959 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.556e-05/0.8549, allocations: 90.67 kB / 0.9591 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.61e-07/0.855, allocations: 1.281 kB / 0.9591 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002916/0.8552, allocations: 29.06 kB / 0.9591 GB, free: 3.156 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001416/0.8554, allocations: 105.2 kB / 0.9592 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003017/0.8557, allocations: 266.8 kB / 0.9595 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8557, allocations: 0 / 0.9595 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.67e-05/0.8558, allocations: 36.42 kB / 0.9595 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.856, allocations: 11.62 kB / 0.9595 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/0.8563, allocations: 181 kB / 0.9597 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.8565, allocations: 0.6943 MB / 0.9604 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.998e-05/0.8565, allocations: 6.172 kB / 0.9604 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.8565, allocations: 11.56 kB / 0.9604 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8565, allocations: 0 / 0.9604 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of Templates: time 0.00444/0.861, allocations: 1.747 MB / 0.9621 GB, free: 1.078 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches