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.005836/0.005836, allocations: 100.9 kB / 15.73 MB, free: 6 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.001508/0.001508, allocations: 189.9 kB / 16.67 MB, free: 5.934 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.601/2.601, allocations: 482.6 MB / 0.755 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 63.89 kB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2732, allocations: 162.3 MB / 1.242 GB, free: 9.844 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003153/0.2764, allocations: 1.923 MB / 1.244 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.2781, allocations: 1.122 MB / 1.245 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.349e-05/0.2782, allocations: 4 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002975/0.2785, allocations: 99.55 kB / 1.245 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.2788, allocations: 91.59 kB / 1.245 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.2791, allocations: 163.1 kB / 1.245 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002521/0.2794, allocations: 215.4 kB / 1.245 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.2795, allocations: 49.66 kB / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.2797, allocations: 95.61 kB / 1.246 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.2798, allocations: 99.59 kB / 1.246 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.2799, allocations: 16 kB / 1.246 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.28, allocations: 59.89 kB / 1.246 GB, free: 5.91 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.096e-05/0.2801, allocations: 55.83 kB / 1.246 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.219e-05/0.2802, allocations: 91.41 kB / 1.246 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003186/0.2805, allocations: 274.8 kB / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2805, allocations: 7.984 kB / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.143e-06/0.2805, allocations: 0 / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.2805, allocations: 0 / 1.246 GB, free: 5.488 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.000806/0.2813, allocations: 0.545 MB / 1.247 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.2814, allocations: 8.031 kB / 1.247 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.2814, allocations: 42.73 kB / 1.247 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.884e-05/0.2815, allocations: 24.8 kB / 1.247 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.2818, allocations: 299.1 kB / 1.247 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.2818, allocations: 8 kB / 1.247 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.2819, allocations: 11.94 kB / 1.247 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.2821, allocations: 113.6 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.2822, allocations: 7.938 kB / 1.247 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2822, allocations: 4 kB / 1.247 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.2822, allocations: 0 / 1.247 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002782/0.2825, allocations: 87.92 kB / 1.247 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006722/0.2832, allocations: 452.4 kB / 1.248 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.2835, allocations: 138.6 kB / 1.248 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.2837, allocations: 60.83 kB / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.2837, allocations: 0 / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.284, allocations: 123.5 kB / 1.248 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.284, allocations: 0 / 1.248 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.0006322/0.2846, allocations: 252.1 kB / 1.248 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.2847, allocations: 63.34 kB / 1.248 GB, free: 3.09 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.285, allocations: 326.5 kB / 1.249 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.285, allocations: 33.7 kB / 1.249 GB, free: 2.727 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.823e-05/0.2851, allocations: 136.5 kB / 1.249 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.2852, allocations: 35.73 kB / 1.249 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-05/0.2853, allocations: 65.64 kB / 1.249 GB, free: 2.484 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2854, allocations: 338.8 kB / 1.249 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.2856, allocations: 83.95 kB / 1.249 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.2859, allocations: 133.1 kB / 1.249 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.2863, allocations: 191.5 kB / 1.25 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2863, allocations: 0 / 1.25 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005372/0.2868, allocations: 283 kB / 1.25 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.2868, allocations: 5.406 kB / 1.25 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.2869, allocations: 8 kB / 1.25 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.2869, allocations: 0 / 1.25 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.2871, allocations: 43.91 kB / 1.25 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.2871, allocations: 7.984 kB / 1.25 GB, free: 1.367 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.2873, allocations: 23.88 kB / 1.25 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.2873, allocations: 16.16 kB / 1.25 GB, free: 1.328 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.0001498/0.2874, allocations: 165.4 kB / 1.25 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.2875, allocations: 23.86 kB / 1.25 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.144e-05/0.2875, allocations: 22.19 kB / 1.25 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2875, allocations: 3.984 kB / 1.25 GB, free: 1.098 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2876, allocations: 0 / 1.25 GB, free: 1.098 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2876, allocations: 0 / 1.25 GB, free: 1.098 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007856/0.2884, allocations: 0.5528 MB / 1.251 GB, free: 500 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2884, allocations: 0 / 1.251 GB, free: 500 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.325e-05/0.2885, allocations: 15.98 kB / 1.251 GB, free: 484 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2885, allocations: 3.938 kB / 1.251 GB, free: 480 kB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.2885, allocations: 8 kB / 1.251 GB, free: 472 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2885, allocations: 3.938 kB / 1.251 GB, free: 468 kB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2885, allocations: 3.984 kB / 1.251 GB, free: 464 kB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004552/0.289, allocations: 299.2 kB / 1.251 GB, free: 148 kB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.719e-05/0.289, allocations: 100.9 kB / 1.251 GB, free: 28 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.2891, allocations: 4 kB / 1.251 GB, free: 24 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2892, allocations: 15.97 kB / 1.251 GB, free: 8 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.5249/0.8141, allocations: 12.56 kB / 1.251 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.8142, allocations: 9.297 kB / 1.251 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002805/0.8144, allocations: 208.3 kB / 1.251 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8145, allocations: 0.8125 kB / 1.251 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004577/0.8149, allocations: 52.19 kB / 1.251 GB, free: 14.67 MB / 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.002021/0.8169, allocations: 1.132 MB / 1.252 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004816/0.8174, allocations: 188.5 kB / 1.253 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.8175, allocations: 0.6875 kB / 1.253 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.8176, allocations: 71.22 kB / 1.253 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004146/0.8181, allocations: 62.16 kB / 1.253 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002916/0.821, allocations: 2.572 MB / 1.255 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.8212, allocations: 0.7487 MB / 1.256 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.8213, allocations: 38.78 kB / 1.256 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.8214, allocations: 74.7 kB / 1.256 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of SimCode: time 4.31e-07/0.8214, allocations: 0.8438 kB / 1.256 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.587/2.408, allocations: 5.431 MB / 1.261 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.91/25.32, allocations: 8.844 kB / 1.261 GB, free: 11.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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