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.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001429/0.001429, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.203/2.203, allocations: 390.2 MB / 0.6643 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6966/0.698, allocations: 140.4 MB / 0.9491 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.002418/0.7004, allocations: 1.972 MB / 0.951 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.7017, allocations: 1.105 MB / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.042e-05/0.7017, allocations: 1.25 kB / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.702, allocations: 90.89 kB / 0.9521 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.7022, allocations: 80.16 kB / 0.9522 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002649/0.7025, allocations: 138.7 kB / 0.9524 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001784/0.7027, allocations: 196.9 kB / 0.9525 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.7028, allocations: 54.62 kB / 0.9526 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.7029, allocations: 91.08 kB / 0.9527 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.033e-05/0.703, allocations: 93.38 kB / 0.9528 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.437e-05/0.703, allocations: 7.969 kB / 0.9528 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.927e-05/0.7031, allocations: 57.53 kB / 0.9528 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.898e-05/0.7032, allocations: 58.59 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.73e-05/0.7033, allocations: 79.5 kB / 0.953 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.7035, allocations: 259.9 kB / 0.9532 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.7035, allocations: 0 / 0.9532 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.51e-07/0.7035, allocations: 0 / 0.9532 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.7035, allocations: 0 / 0.9532 GB, free: 6.195 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.0006355/0.7042, allocations: 0.5464 MB / 0.9537 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.7042, allocations: 13.66 kB / 0.9538 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.159e-05/0.7042, allocations: 49.55 kB / 0.9538 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.724e-05/0.7043, allocations: 24.09 kB / 0.9538 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.7045, allocations: 286.7 kB / 0.9541 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.7046, allocations: 12.39 kB / 0.9541 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.7046, allocations: 7.531 kB / 0.9541 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.7048, allocations: 120.5 kB / 0.9542 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.7048, allocations: 0 / 0.9542 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.7049, allocations: 9.281 kB / 0.9542 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.7049, allocations: 6.312 kB / 0.9543 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.7051, allocations: 82.11 kB / 0.9543 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005103/0.7056, allocations: 455.3 kB / 0.9548 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.7059, allocations: 127.4 kB / 0.9549 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.7061, allocations: 56.67 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.7061, allocations: 5.875 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.7063, allocations: 133.8 kB / 0.9551 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.7063, allocations: 0.8125 kB / 0.9551 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0005556/0.7069, allocations: 240.3 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.388e-05/0.7069, allocations: 62.7 kB / 0.9554 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.7072, allocations: 335.7 kB / 0.9557 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.7072, allocations: 33.67 kB / 0.9557 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.7073, allocations: 134 kB / 0.9558 GB, free: 4 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.7073, allocations: 38.05 kB / 0.9559 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/0.7074, allocations: 59.44 kB / 0.9559 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.556e-05/0.7074, allocations: 333.9 kB / 0.9563 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.7076, allocations: 87.02 kB / 0.9563 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.7078, allocations: 131.1 kB / 0.9565 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.7081, allocations: 190.1 kB / 0.9566 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7082, allocations: 0 / 0.9566 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004499/0.7086, allocations: 277.9 kB / 0.9569 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.7086, allocations: 7.375 kB / 0.9569 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.7086, allocations: 6.906 kB / 0.9569 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.7087, allocations: 2.75 kB / 0.9569 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.7088, allocations: 42.16 kB / 0.957 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.7088, allocations: 2.75 kB / 0.957 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.709, allocations: 25.45 kB / 0.957 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.709, allocations: 12.25 kB / 0.957 GB, free: 3.168 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 9.704e-05/0.7091, allocations: 156.9 kB / 0.9572 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.7092, allocations: 34.64 kB / 0.9572 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.191e-05/0.7092, allocations: 22.44 kB / 0.9572 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.7092, allocations: 1.375 kB / 0.9572 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.7092, allocations: 0 / 0.9572 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.7092, allocations: 13.23 kB / 0.9572 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006084/0.7098, allocations: 0.5464 MB / 0.9578 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.7098, allocations: 5.188 kB / 0.9578 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.834e-05/0.7099, allocations: 12.95 kB / 0.9578 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.7099, allocations: 1.188 kB / 0.9578 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.71, allocations: 10.56 kB / 0.9578 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.71, allocations: 0 / 0.9578 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.71, allocations: 0.9375 kB / 0.9578 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003711/0.7103, allocations: 301.6 kB / 0.9581 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.7104, allocations: 101.7 kB / 0.9582 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.343e-05/0.7104, allocations: 6.219 kB / 0.9582 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.7106, allocations: 11.58 kB / 0.9582 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.7106, allocations: 22.75 kB / 0.9582 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.7107, allocations: 4.844 kB / 0.9582 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001569/0.7108, allocations: 215.8 kB / 0.9584 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7108, allocations: 0 / 0.9584 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002808/0.7111, allocations: 41.16 kB / 0.9585 GB, free: 2.016 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.001259/0.7124, allocations: 1.149 MB / 0.9596 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003932/0.7128, allocations: 186.3 kB / 0.9598 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.7128, allocations: 1.25 kB / 0.9598 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.713, allocations: 76.58 kB / 0.9598 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.7133, allocations: 55.22 kB / 0.9599 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.7161, allocations: 2.607 MB / 0.9624 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.7164, allocations: 0.7513 MB / 0.9632 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.533e-05/0.7165, allocations: 33.66 kB / 0.9632 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.7166, allocations: 72.94 kB / 0.9633 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.7166, allocations: 0 / 0.9633 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4433/1.16, allocations: 5.028 MB / 0.9682 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002223/1.16, allocations: 252.8 kB / 0.9684 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/3.31, allocations: 3.938 kB / 0.9684 GB, free: 11.52 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > 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/jenkins1/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