Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.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.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002083/0.002083, allocations: 194.5 kB / 16.25 MB, free: 6.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.462/1.462, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.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.619/2.619, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8008/0.8029, allocations: 140.4 MB / 0.9491 GB, free: 9.352 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003053/0.806, allocations: 1.979 MB / 0.951 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.8078, allocations: 1.096 MB / 0.9521 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.8079, allocations: 1.25 kB / 0.9521 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003432/0.8082, allocations: 90.39 kB / 0.9522 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002235/0.8085, allocations: 83.06 kB / 0.9523 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.8088, allocations: 150.3 kB / 0.9524 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.8091, allocations: 211 kB / 0.9526 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.8092, allocations: 51.25 kB / 0.9527 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.8094, allocations: 101.1 kB / 0.9528 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.8095, allocations: 107.7 kB / 0.9529 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.8095, allocations: 13.41 kB / 0.9529 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.8097, allocations: 59.16 kB / 0.9529 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.945e-05/0.8098, allocations: 59.75 kB / 0.953 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.123e-05/0.8098, allocations: 90.28 kB / 0.9531 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002822/0.8101, allocations: 262.6 kB / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.8101, allocations: 0 / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8102, allocations: 0 / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.8102, allocations: 1.406 kB / 0.9533 GB, free: 6.137 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008067/0.811, allocations: 0.546 MB / 0.9539 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.811, allocations: 12.19 kB / 0.9539 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.393e-05/0.8111, allocations: 24.28 kB / 0.9539 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.8114, allocations: 291.4 kB / 0.9542 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.8115, allocations: 8.656 kB / 0.9542 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.8115, allocations: 7.375 kB / 0.9542 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.8118, allocations: 118.8 kB / 0.9543 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.8118, allocations: 0 / 0.9543 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.8118, allocations: 13.12 kB / 0.9543 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.8119, allocations: 2.344 kB / 0.9543 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002652/0.8121, allocations: 81.58 kB / 0.9544 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006433/0.8128, allocations: 455.9 kB / 0.9548 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.8131, allocations: 122.9 kB / 0.955 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.8133, allocations: 61.05 kB / 0.955 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.8133, allocations: 5.109 kB / 0.955 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.8136, allocations: 138.6 kB / 0.9551 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.774e-06/0.8136, allocations: 0 / 0.9551 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0006042/0.8142, allocations: 237.9 kB / 0.9554 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.8143, allocations: 66.61 kB / 0.9554 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.8146, allocations: 331.2 kB / 0.9558 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.8146, allocations: 32.83 kB / 0.9558 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.45e-05/0.8147, allocations: 135.4 kB / 0.9559 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.8147, allocations: 37.39 kB / 0.956 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-05/0.8148, allocations: 53.36 kB / 0.956 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.292e-05/0.8149, allocations: 337.7 kB / 0.9563 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.8151, allocations: 90.31 kB / 0.9564 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.8153, allocations: 131.4 kB / 0.9565 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003655/0.8157, allocations: 185.3 kB / 0.9567 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.8157, allocations: 3.938 kB / 0.9567 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005042/0.8162, allocations: 283.5 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.8163, allocations: 4.844 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.8163, allocations: 1.5 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.8163, allocations: 2.719 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.8165, allocations: 42.81 kB / 0.957 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.8165, allocations: 2.344 kB / 0.957 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.8167, allocations: 30.38 kB / 0.9571 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.8167, allocations: 15.27 kB / 0.9571 GB, free: 3.156 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 (decreaseSampler.y,$PRE.decreaseSampler.y,increaseSampler.y,$PRE.increaseSampler.y,changeSampler.y,$PRE.changeSampler.y,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition2,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,cha.down,cha.up,cha.y,cha.u,$PRE.cha.u,$whenCondition1,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.0001297/0.8168, allocations: 157.8 kB / 0.9572 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/0.8169, allocations: 26.56 kB / 0.9573 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.8169, allocations: 25.8 kB / 0.9573 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.817, allocations: 2.219 kB / 0.9573 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.817, allocations: 3.938 kB / 0.9573 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.817, allocations: 0.9375 kB / 0.9573 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007085/0.8177, allocations: 0.5534 MB / 0.9578 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.8177, allocations: 0 / 0.9578 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.632e-05/0.8178, allocations: 13.61 kB / 0.9578 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8178, allocations: 1.375 kB / 0.9578 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.8178, allocations: 9.359 kB / 0.9579 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.8178, allocations: 1.375 kB / 0.9579 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8178, allocations: 3.938 kB / 0.9579 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004203/0.8183, allocations: 295.8 kB / 0.9581 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.8183, allocations: 105.3 kB / 0.9582 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.912e-05/0.8184, allocations: 6.016 kB / 0.9582 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.8185, allocations: 15.3 kB / 0.9583 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.43e-05/0.8186, allocations: 19.67 kB / 0.9583 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.8186, allocations: 8.391 kB / 0.9583 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001916/0.8188, allocations: 208.5 kB / 0.9585 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8188, allocations: 4 kB / 0.9585 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003395/0.8192, allocations: 44.28 kB / 0.9585 GB, free: 2.008 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: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001055/0.8202, allocations: 424.1 kB / 0.9589 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005264/0.8208, allocations: 197 kB / 0.9591 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.8208, allocations: 4.062 kB / 0.9591 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001956/0.821, allocations: 70.14 kB / 0.9592 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004428/0.8214, allocations: 60.78 kB / 0.9593 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007416/0.8222, allocations: 450.6 kB / 0.9597 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.8224, allocations: 0.7547 MB / 0.9604 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001024/0.8225, allocations: 37.55 kB / 0.9605 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.512e-05/0.8226, allocations: 31.05 kB / 0.9605 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8226, allocations: 0 / 0.9605 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of Templates: time 0.006708/0.8293, allocations: 2.932 MB / 0.9633 GB, free: 15.12 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches