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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001334/0.001334, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001314/0.001314, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.281/2.281, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 71.88 kB / 0.9516 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8425/0.8439, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001914/0.8459, allocations: 0.6807 MB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001482/0.8474, allocations: 1.195 MB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.197e-05/0.8475, allocations: 1.281 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.919e-05/0.8475, allocations: 4.594 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.598e-05/0.8476, allocations: 14.62 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006977/0.8483, allocations: 223.4 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.8486, allocations: 186.4 kB / 1.091 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.8487, allocations: 6.75 kB / 1.091 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.8488, allocations: 72.95 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.849, allocations: 70.69 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.849, allocations: 15.16 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.741e-05/0.8491, allocations: 38.16 kB / 1.091 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.945e-05/0.8492, allocations: 10.98 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.8493, allocations: 61.16 kB / 1.091 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002487/0.8495, allocations: 150.9 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.8496, allocations: 1.844 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8496, allocations: 0 / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.8496, allocations: 0 / 1.091 GB, free: 3.871 MB / 0.8575 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.0004608/0.85, allocations: 442.9 kB / 1.092 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.8501, allocations: 10.2 kB / 1.092 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.914e-05/0.8502, allocations: 12 kB / 1.092 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.309e-05/0.8502, allocations: 181.1 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.8503, allocations: 10.14 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.59e-05/0.8503, allocations: 10.11 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.8504, allocations: 55.89 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.8504, allocations: 0 / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.8505, allocations: 1.453 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.8505, allocations: 4.812 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.205e-05/0.8505, allocations: 12.62 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004883/0.851, allocations: 358.4 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.712e-05/0.8511, allocations: 39.92 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.134e-05/0.8512, allocations: 20.84 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.8512, allocations: 1.391 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.8514, allocations: 90.48 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.8514, allocations: 0 / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002895/0.8517, allocations: 123.3 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.8517, allocations: 58.45 kB / 1.093 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.637e-05/0.8518, allocations: 122.1 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/0.8518, allocations: 29.64 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.592e-05/0.8519, allocations: 91.83 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.8519, allocations: 24.45 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.852, allocations: 57.95 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.754e-05/0.8521, allocations: 319.8 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.8522, allocations: 69.7 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.8524, allocations: 118.2 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.8526, allocations: 183.3 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.8526, allocations: 0 / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004803/0.8531, allocations: 281.7 kB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.977e-05/0.8531, allocations: 69.39 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.8531, allocations: 1.531 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.934e-05/0.8532, allocations: 2.5 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.415e-05/0.8532, allocations: 9.766 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.8533, allocations: 2.844 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003558/0.8536, allocations: 53.33 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.8537, allocations: 23.48 kB / 1.094 GB, free: 1.508 MB / 0.8575 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.536e-05/0.8538, allocations: 125.2 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.637e-05/0.8538, allocations: 11.36 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.8538, allocations: 10.55 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.8538, allocations: 2.406 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.8538, allocations: 0 / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.8538, allocations: 1.516 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002859/0.8541, allocations: 362.7 kB / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.8542, allocations: 0 / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.11e-05/0.8542, allocations: 2.844 kB / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.8542, allocations: 1.344 kB / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.8542, allocations: 6.203 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.8542, allocations: 0.9062 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.8542, allocations: 7.875 kB / 1.095 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001565/0.8544, allocations: 190.6 kB / 1.095 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.055e-05/0.8544, allocations: 83.12 kB / 1.095 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.8544, allocations: 6.562 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.396e-05/0.8545, allocations: 6.328 kB / 1.095 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.8545, allocations: 9.344 kB / 1.095 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.8545, allocations: 12.66 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.793e-05/0.8546, allocations: 91.08 kB / 1.095 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8546, allocations: 0 / 1.095 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002868/0.8549, allocations: 33.92 kB / 1.095 GB, free: 0.6758 MB / 0.8575 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.0001354/0.855, allocations: 106.3 kB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003529/0.8554, allocations: 257.6 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8554, allocations: 4.312 kB / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.852e-05/0.8555, allocations: 36.75 kB / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.8558, allocations: 15.91 kB / 1.095 GB, free: 396 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003243/0.8561, allocations: 197.6 kB / 1.096 GB, free: 216 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.8564, allocations: 0.6885 MB / 1.096 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.331e-05/0.8564, allocations: 12.75 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of SimCode: time 3.8e-07/0.8565, allocations: 4 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of Templates: time 0.003933/0.8604, allocations: 1.49 MB / 1.098 GB, free: 15.36 MB / 0.8731 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches