Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.MultiSum,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_MultiSum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_MultiSum",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.006667/0.006667, allocations: 105 kB / 15.74 MB, free: 5.992 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.001356/0.001356, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.64/2.64, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.91 kB / 1.054 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8106/0.812, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum): time 0.001992/0.814, allocations: 0.8495 MB / 1.208 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.8151, allocations: 0.8973 MB / 1.209 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.8152, allocations: 4 kB / 1.209 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.8153, allocations: 7.875 kB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.8154, allocations: 15.8 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.8157, allocations: 63.92 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.8158, allocations: 131.7 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.816, allocations: 45.09 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.247e-05/0.8161, allocations: 55.83 kB / 1.209 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.8163, allocations: 79.72 kB / 1.209 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.8163, allocations: 15.94 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.31e-05/0.8163, allocations: 12 kB / 1.209 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.815e-05/0.8164, allocations: 35.89 kB / 1.209 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.403e-05/0.8165, allocations: 55.66 kB / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.8166, allocations: 135.5 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.8166, allocations: 7.984 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.683e-06/0.8167, allocations: 4 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.8167, allocations: 0 / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008151/0.8175, allocations: 441.2 kB / 1.21 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.8175, allocations: 8.031 kB / 1.21 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.871e-05/0.8176, allocations: 46.73 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.154e-05/0.8176, allocations: 16.75 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.8178, allocations: 204.5 kB / 1.21 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.8179, allocations: 15.94 kB / 1.21 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.8179, allocations: 8 kB / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.8183, allocations: 149.5 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.8183, allocations: 0 / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.8184, allocations: 4 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.8184, allocations: 0 / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005848/0.819, allocations: 163.7 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006234/0.8196, allocations: 408.5 kB / 1.211 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008501/0.8205, allocations: 174.6 kB / 1.211 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002887/0.8208, allocations: 88.86 kB / 1.211 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.8208, allocations: 0 / 1.211 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.8208, allocations: 38.5 kB / 1.211 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.8208, allocations: 0 / 1.211 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.00097/0.8218, allocations: 277.2 kB / 1.212 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.8218, allocations: 63.39 kB / 1.212 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.822, allocations: 145 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.822, allocations: 29.7 kB / 1.212 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.024e-05/0.8221, allocations: 116 kB / 1.212 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.201e-05/0.8221, allocations: 27.64 kB / 1.212 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.8222, allocations: 25.7 kB / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.671e-05/0.8223, allocations: 322.8 kB / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.8225, allocations: 75.92 kB / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/0.8229, allocations: 71.92 kB / 1.212 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005498/0.8234, allocations: 165.2 kB / 1.213 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8234, allocations: 0 / 1.213 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006287/0.8241, allocations: 209.3 kB / 1.213 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.8241, allocations: 4 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.8241, allocations: 0 / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.8241, allocations: 7.984 kB / 1.213 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.8244, allocations: 39.89 kB / 1.213 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.8244, allocations: 0 / 1.213 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.8246, allocations: 23.97 kB / 1.213 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.8246, allocations: 4 kB / 1.213 GB, free: 7.629 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (add1.y,add1.u[3],add1.u[2],add1.u[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001262/0.8248, allocations: 121.8 kB / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.052e-05/0.8248, allocations: 19.84 kB / 1.213 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.313e-05/0.8249, allocations: 12.72 kB / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.8249, allocations: 11.94 kB / 1.213 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.8249, allocations: 0 / 1.213 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.8249, allocations: 0 / 1.213 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.8252, allocations: 237.4 kB / 1.213 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.8252, allocations: 3.938 kB / 1.213 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.8254, allocations: 39.89 kB / 1.213 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.8254, allocations: 0 / 1.213 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.8255, allocations: 8 kB / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.8255, allocations: 0 / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.8255, allocations: 0 / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006835/0.8262, allocations: 295.2 kB / 1.214 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.8262, allocations: 96.94 kB / 1.214 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.8263, allocations: 4 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.8265, allocations: 19.97 kB / 1.214 GB, free: 6.676 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.8266, allocations: 28.16 kB / 1.214 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.8266, allocations: 8 kB / 1.214 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.718e-05/0.8267, allocations: 115.2 kB / 1.214 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8267, allocations: 0 / 1.214 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002567/0.827, allocations: 23.91 kB / 1.214 GB, free: 6.504 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (add1.u[1],add1.u[2],add1.u[3],add1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.00099/0.828, allocations: 0.845 MB / 1.215 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006167/0.8286, allocations: 167.8 kB / 1.215 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.8286, allocations: 0 / 1.215 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.8289, allocations: 103.8 kB / 1.215 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.8292, allocations: 18.22 kB / 1.215 GB, free: 5.352 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.8321, allocations: 1.858 MB / 1.217 GB, free: 3.41 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.8324, allocations: 0.7041 MB / 1.217 GB, free: 2.68 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.8325, allocations: 24.42 kB / 1.217 GB, free: 2.656 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.8326, allocations: 47.41 kB / 1.218 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of SimCode: time 5.01e-07/0.8326, allocations: 0 / 1.218 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.8516, allocations: 3.881 MB / 1.221 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.711, allocations: 4.422 kB / 1.221 GB, free: 14.84 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_MultiSum_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_MultiSum.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_MultiSum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.MultiSum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,add1.u[1],add1.u[2],add1.u[3],add1.y Variables in the result:add1.k[1],add1.k[2],add1.k[3],add1.nin,add1.u[1],add1.u[2],add1.u[3],add1.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,ramp3.duration,ramp3.height,ramp3.offset,ramp3.startTime,ramp3.y,reaToInt.u,reaToInt.y,reaToInt1.u,reaToInt1.y,reaToInt2.u,reaToInt2.y,round1.n,round1.u,round1.y,round2.n,round2.u,round2.y,round3.n,round3.u,round3.y,time