Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Max",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.007762/0.007762, allocations: 103.2 kB / 15.73 MB, free: 6.047 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.001704/0.001704, allocations: 195.7 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.321/2.321, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 71.48 kB / 0.9504 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2694, allocations: 140.4 MB / 1.087 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.001939/0.2714, allocations: 0.7664 MB / 1.088 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.2726, allocations: 0.8701 MB / 1.089 GB, free: 300 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.172e-05/0.2727, allocations: 4 kB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.797e-05/0.2728, allocations: 7.875 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.935e-05/0.2729, allocations: 11.86 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.2731, allocations: 39.95 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.2732, allocations: 87.81 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.2734, allocations: 27.97 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.2735, allocations: 35.86 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.839e-05/0.2736, allocations: 47.83 kB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.2737, allocations: 11.98 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.2737, allocations: 8 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.753e-05/0.2737, allocations: 15.98 kB / 1.089 GB, free: 16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.767e-05/0.2738, allocations: 39.72 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.274, allocations: 83.73 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.274, allocations: 0 / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.723e-06/0.274, allocations: 3.938 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.114e-05/0.274, allocations: 7.984 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000724/0.2748, allocations: 386.9 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.2748, allocations: 12.03 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.527e-05/0.2749, allocations: 34.73 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.34e-05/0.2749, allocations: 8.844 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.2751, allocations: 184.2 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.2752, allocations: 8.312 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.2752, allocations: 12.12 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.2755, allocations: 109.6 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.2756, allocations: 3.938 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.2756, allocations: 0 / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.2756, allocations: 3.938 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.276, allocations: 97.78 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005276/0.2765, allocations: 344.7 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006077/0.2771, allocations: 122.5 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.2773, allocations: 52.81 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.2774, allocations: 7.984 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.2774, allocations: 34.56 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.2774, allocations: 0 / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000673/0.2781, allocations: 189.4 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.2781, allocations: 51.41 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.998e-05/0.2782, allocations: 125.7 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.2783, allocations: 25.7 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.236e-05/0.2783, allocations: 99.97 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.341e-05/0.2784, allocations: 11.81 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.2784, allocations: 25.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2785, allocations: 322.8 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.2787, allocations: 47.95 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.2789, allocations: 43.95 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.2793, allocations: 96.77 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2793, allocations: 4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004173/0.2797, allocations: 141.4 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2797, allocations: 4 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.2797, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2798, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.2799, allocations: 23.97 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.28, allocations: 11.94 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.2801, allocations: 15.91 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.2801, allocations: 8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (reaToInt1.y,reaToInt.y,max1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.000105/0.2802, allocations: 113.8 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.2803, allocations: 11.84 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004865/0.2808, allocations: 158.4 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.2808, allocations: 0 / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.2808, allocations: 3.938 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2808, allocations: 4 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.281, allocations: 193.6 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.281, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.2812, allocations: 27.95 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2812, allocations: 3.938 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2812, allocations: 8 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2812, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2812, allocations: 3.938 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.2817, allocations: 240.8 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.2818, allocations: 81.02 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.2818, allocations: 8 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.282, allocations: 7.984 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.359e-05/0.2821, allocations: 27.91 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.2821, allocations: 4 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.971e-05/0.2822, allocations: 95.27 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2822, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002409/0.2824, allocations: 12 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (max1.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0008398/0.2833, allocations: 0.7825 MB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000486/0.2838, allocations: 103.9 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.2838, allocations: 0 / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002234/0.284, allocations: 63.88 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.2844, allocations: 13.66 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.2865, allocations: 1.531 MB / 1.095 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.2868, allocations: 0.69 MB / 1.096 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.971e-05/0.2869, allocations: 15.75 kB / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.997e-05/0.287, allocations: 31.42 kB / 1.096 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of SimCode: time 1.984e-06/0.287, allocations: 0 / 1.096 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.3053, allocations: 2.753 MB / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.163, allocations: 3.938 kB / 1.099 GB, free: 5.914 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Max_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,max1.u1,max1.u2,max1.y Variables in the result:max1.u1,max1.u2,max1.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,reaToInt.u,reaToInt.y,reaToInt1.u,reaToInt1.y,round1.n,round1.u,round1.y,round2.n,round2.u,round2.y,time