Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_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.005054/0.005054, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001295/0.001295, allocations: 194.9 kB / 16.67 MB, free: 5.977 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.914/2.914, allocations: 482.4 MB / 0.7548 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.89 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3005, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003436/0.304, allocations: 1.922 MB / 1.243 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001932/0.306, allocations: 1.122 MB / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.3061, allocations: 0 / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.3064, allocations: 99.55 kB / 1.245 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.3067, allocations: 91.59 kB / 1.245 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.3071, allocations: 159.5 kB / 1.245 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002884/0.3074, allocations: 215.4 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.3076, allocations: 53.59 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001732/0.3078, allocations: 95.61 kB / 1.245 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.3079, allocations: 103.5 kB / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.308, allocations: 12 kB / 1.245 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.3081, allocations: 63.95 kB / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.1e-05/0.3082, allocations: 55.83 kB / 1.245 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3083, allocations: 95.39 kB / 1.245 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.3087, allocations: 266.8 kB / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.3087, allocations: 4 kB / 1.246 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3087, allocations: 0 / 1.246 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.3087, allocations: 4 kB / 1.246 GB, free: 5.832 MB / 0.9981 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.0009162/0.3096, allocations: 0.545 MB / 1.246 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3097, allocations: 8.031 kB / 1.246 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.455e-05/0.3097, allocations: 38.75 kB / 1.246 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.593e-05/0.3098, allocations: 28.78 kB / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003816/0.3102, allocations: 295.1 kB / 1.247 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.3102, allocations: 7.984 kB / 1.247 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.3102, allocations: 16 kB / 1.247 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.3105, allocations: 113.6 kB / 1.247 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.3105, allocations: 3.938 kB / 1.247 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.3106, allocations: 7.938 kB / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3106, allocations: 0 / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002883/0.3109, allocations: 87.92 kB / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007138/0.3116, allocations: 456.4 kB / 1.247 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.3119, allocations: 130.6 kB / 1.247 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3121, allocations: 52.83 kB / 1.247 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.3122, allocations: 8 kB / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003137/0.3125, allocations: 127.4 kB / 1.248 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.3125, allocations: 0 / 1.248 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.0006728/0.3132, allocations: 244.6 kB / 1.248 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.3132, allocations: 63.39 kB / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003591/0.3136, allocations: 330.5 kB / 1.248 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.3136, allocations: 33.7 kB / 1.248 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3137, allocations: 132.5 kB / 1.248 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.892e-05/0.3138, allocations: 47.67 kB / 1.248 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.519e-05/0.3139, allocations: 57.69 kB / 1.248 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.314, allocations: 334.8 kB / 1.249 GB, free: 2.496 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.3143, allocations: 87.95 kB / 1.249 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.3145, allocations: 133 kB / 1.249 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.315, allocations: 191.2 kB / 1.249 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.315, allocations: 4 kB / 1.249 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005865/0.3156, allocations: 279.2 kB / 1.249 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.3156, allocations: 8 kB / 1.249 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3156, allocations: 0 / 1.249 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3156, allocations: 7.984 kB / 1.249 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.3158, allocations: 47.91 kB / 1.249 GB, free: 1.715 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.3159, allocations: 0 / 1.249 GB, free: 1.715 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.316, allocations: 27.88 kB / 1.249 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.316, allocations: 8 kB / 1.25 GB, free: 1.68 MB / 0.9981 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.0001626/0.3162, allocations: 170 kB / 1.25 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/0.3163, allocations: 23.84 kB / 1.25 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.504e-05/0.3163, allocations: 22.19 kB / 1.25 GB, free: 1.449 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3163, allocations: 4 kB / 1.25 GB, free: 1.445 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3163, allocations: 0 / 1.25 GB, free: 1.445 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3164, allocations: 3.984 kB / 1.25 GB, free: 1.441 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008563/0.3172, allocations: 0.5528 MB / 1.25 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3172, allocations: 0 / 1.25 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.359e-05/0.3173, allocations: 15.98 kB / 1.25 GB, free: 0.8164 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3173, allocations: 0 / 1.25 GB, free: 0.8164 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.3174, allocations: 4 kB / 1.25 GB, free: 0.8125 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.3174, allocations: 4 kB / 1.25 GB, free: 0.8086 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3174, allocations: 3.938 kB / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005016/0.3179, allocations: 299.1 kB / 1.251 GB, free: 0.4961 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.711e-05/0.318, allocations: 104.9 kB / 1.251 GB, free: 384 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.318, allocations: 8 kB / 1.251 GB, free: 376 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.3182, allocations: 15.98 kB / 1.251 GB, free: 360 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.3182, allocations: 19.97 kB / 1.251 GB, free: 340 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.3183, allocations: 7.938 kB / 1.251 GB, free: 332 kB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002167/0.3185, allocations: 209.9 kB / 1.251 GB, free: 124 kB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3185, allocations: 0 / 1.251 GB, free: 124 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003161/0.3188, allocations: 51.94 kB / 1.251 GB, free: 72 kB / 0.9981 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.5432/0.862, allocations: 1.132 MB / 1.252 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005248/0.8626, allocations: 185.3 kB / 1.252 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.8626, allocations: 0 / 1.252 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.8628, allocations: 76.98 kB / 1.252 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.8632, allocations: 53.44 kB / 1.252 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002937/0.8662, allocations: 2.578 MB / 1.255 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.8664, allocations: 0.7445 MB / 1.256 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001054/0.8665, allocations: 39.47 kB / 1.256 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.8666, allocations: 74.08 kB / 1.256 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of SimCode: time 4.21e-07/0.8666, allocations: 0 / 1.256 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02842/0.8951, allocations: 5.44 MB / 1.261 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.02/8.915, allocations: 10 kB / 1.261 GB, free: 11.59 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches