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.001442/0.001442, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001427/0.001427, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.416/1.416, 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.247/2.247, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 64.09 kB / 0.9516 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9932/0.9947, 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.002348/0.9971, allocations: 0.6896 MB / 1.089 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001887/0.999, allocations: 1.199 MB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.114e-05/0.9991, allocations: 0 / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.108e-05/0.9992, allocations: 4.594 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.451e-05/0.9993, allocations: 15.39 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00077/1, allocations: 226.9 kB / 1.091 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003457/1, allocations: 181.8 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/1.001, allocations: 11.7 kB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/1.001, allocations: 72.11 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/1.001, allocations: 71.62 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/1.001, allocations: 15.5 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.184e-05/1.001, allocations: 29.73 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.828e-05/1.001, allocations: 10.11 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000104/1.001, allocations: 61.34 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002996/1.001, allocations: 156.1 kB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/1.001, allocations: 0 / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.064e-06/1.001, allocations: 0.9375 kB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.581e-06/1.001, allocations: 0 / 1.091 GB, free: 3.859 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.0005461/1.002, allocations: 440 kB / 1.092 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/1.002, allocations: 8.312 kB / 1.092 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/1.002, allocations: 12.53 kB / 1.092 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.904e-05/1.002, allocations: 177.7 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/1.002, allocations: 8.969 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/1.002, allocations: 9.938 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/1.002, allocations: 59.62 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/1.003, allocations: 0 / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/1.003, allocations: 1.844 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/1.003, allocations: 0.8438 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.845e-05/1.003, allocations: 13.31 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/1.003, allocations: 353.9 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.38e-05/1.003, allocations: 41.09 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.034e-05/1.003, allocations: 16.64 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.355e-06/1.003, allocations: 0.7812 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/1.004, allocations: 93.94 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/1.004, allocations: 0 / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0003237/1.004, allocations: 127.4 kB / 1.093 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/1.004, allocations: 54.33 kB / 1.093 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.597e-05/1.004, allocations: 126 kB / 1.093 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/1.004, allocations: 34.5 kB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/1.004, allocations: 95.39 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/1.004, allocations: 15.94 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/1.004, allocations: 54.95 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.084e-05/1.004, allocations: 323 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/1.004, allocations: 66.61 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/1.005, allocations: 110.7 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/1.005, allocations: 186.8 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/1.005, allocations: 4.906 kB / 1.094 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004961/1.005, allocations: 277.6 kB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.345e-05/1.005, allocations: 68.52 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/1.005, allocations: 2.094 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/1.005, allocations: 2.594 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.98e-05/1.006, allocations: 9.938 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/1.006, allocations: 6.859 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/1.006, allocations: 52.41 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/1.006, allocations: 16.91 kB / 1.094 GB, free: 1.512 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 0.0001147/1.006, allocations: 129.4 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/1.006, allocations: 11.89 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/1.006, allocations: 10.58 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/1.006, allocations: 0.7969 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/1.006, allocations: 0.8438 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-05/1.006, allocations: 83.59 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/1.006, allocations: 7.484 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.383e-05/1.006, allocations: 4 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/1.006, allocations: 7.016 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002033/1.007, allocations: 185.2 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002399/1.007, allocations: 277.7 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.458e-05/1.007, allocations: 27.38 kB / 1.095 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.037e-05/1.007, allocations: 99.69 kB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of Backend: time 3.51e-07/1.007, allocations: 0 / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007161/1.008, allocations: 321.5 kB / 1.095 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of SimCode: time 0.000584/1.008, allocations: 0.609 MB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of Templates: time 0.005843/1.014, allocations: 1.966 MB / 1.098 GB, free: 15.77 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