Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Max,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|max1.u1|max1.u2|max1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Max,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|max1.u1|max1.u2|max1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008973/0.0008971, allocations: 96.14 kB / 16.03 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 185.7 kB / 16.92 MB, free: 6.691 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.251/1.251, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.446/2.446, allocations: 443.2 MB / 0.7181 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000305/0.0003051, allocations: 8.25 kB / 0.8801 GB, free: 42.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2546, allocations: 155.1 MB / 1.032 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.0008653/0.2555, allocations: 0.5003 MB / 1.032 GB, free: 4.25 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008503/0.2564, allocations: 0.855 MB / 1.033 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.806e-05/0.2564, allocations: 7.938 kB / 1.033 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.574e-05/0.2564, allocations: 0 / 1.033 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.066e-05/0.2565, allocations: 11.92 kB / 1.033 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001389/0.2567, allocations: 35.97 kB / 1.033 GB, free: 3.328 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.593e-05/0.2568, allocations: 75.77 kB / 1.033 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.2569, allocations: 27.98 kB / 1.033 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.987e-05/0.257, allocations: 39.83 kB / 1.033 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.781e-05/0.257, allocations: 35.84 kB / 1.033 GB, free: 3.152 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.2571, allocations: 4 kB / 1.033 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.344e-05/0.2571, allocations: 4 kB / 1.033 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.303e-05/0.2571, allocations: 19.84 kB / 1.033 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.626e-05/0.2572, allocations: 57.55 kB / 1.033 GB, free: 3.062 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.026e-05/0.2573, allocations: 55.86 kB / 1.033 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2573, allocations: 0 / 1.033 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.914e-06/0.2573, allocations: 0 / 1.033 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.267e-06/0.2573, allocations: 0 / 1.033 GB, free: 3.008 MB / 0.7794 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.0005447/0.2578, allocations: 391.5 kB / 1.034 GB, free: 2.578 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.2579, allocations: 11.97 kB / 1.034 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.2579, allocations: 12.84 kB / 1.034 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.258, allocations: 172.2 kB / 1.034 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.2581, allocations: 12.38 kB / 1.034 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.2581, allocations: 8.375 kB / 1.034 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.2584, allocations: 125.6 kB / 1.034 GB, free: 2.199 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.2584, allocations: 0 / 1.034 GB, free: 2.199 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.2584, allocations: 0 / 1.034 GB, free: 2.199 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.2584, allocations: 4 kB / 1.034 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003951/0.2589, allocations: 131.9 kB / 1.034 GB, free: 2.066 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004626/0.2593, allocations: 340.6 kB / 1.034 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006046/0.2599, allocations: 138.5 kB / 1.035 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.2602, allocations: 64.81 kB / 1.035 GB, free: 1.473 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.2602, allocations: 0 / 1.035 GB, free: 1.473 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.832e-05/0.2602, allocations: 34.56 kB / 1.035 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.2602, allocations: 0 / 1.035 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006898/0.2609, allocations: 221.4 kB / 1.035 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.2609, allocations: 59.41 kB / 1.035 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.184e-05/0.261, allocations: 117.8 kB / 1.035 GB, free: 1.012 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.2611, allocations: 29.7 kB / 1.035 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.2611, allocations: 95.97 kB / 1.035 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.2611, allocations: 19.72 kB / 1.035 GB, free: 0.8594 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.97e-05/0.2612, allocations: 17.72 kB / 1.035 GB, free: 0.8359 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.745e-05/0.2613, allocations: 322.8 kB / 1.036 GB, free: 0.5117 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.2615, allocations: 59.95 kB / 1.036 GB, free: 464 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.2617, allocations: 52.27 kB / 1.036 GB, free: 412 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.262, allocations: 132.8 kB / 1.036 GB, free: 276 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2621, allocations: 4 kB / 1.036 GB, free: 272 kB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004255/0.2625, allocations: 149.5 kB / 1.036 GB, free: 116 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.2625, allocations: 4 kB / 1.036 GB, free: 112 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2625, allocations: 4 kB / 1.036 GB, free: 108 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.2625, allocations: 0 / 1.036 GB, free: 108 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.2627, allocations: 27.97 kB / 1.036 GB, free: 80 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2627, allocations: 3.984 kB / 1.036 GB, free: 76 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.2628, allocations: 31.83 kB / 1.036 GB, free: 44 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.2629, allocations: 4 kB / 1.036 GB, free: 40 kB / 0.7794 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 8.872e-05/0.263, allocations: 113.8 kB / 1.036 GB, free: 15.92 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.263, allocations: 0 / 1.036 GB, free: 15.92 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004851/0.2635, allocations: 181.9 kB / 1.036 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2635, allocations: 0 / 1.036 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.2635, allocations: 4 kB / 1.036 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2635, allocations: 3.938 kB / 1.036 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.2637, allocations: 205.5 kB / 1.036 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2637, allocations: 0 / 1.036 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.2639, allocations: 27.97 kB / 1.037 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2639, allocations: 0 / 1.037 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.2639, allocations: 4 kB / 1.037 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2639, allocations: 7.938 kB / 1.037 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2639, allocations: 4 kB / 1.037 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004619/0.2644, allocations: 259.3 kB / 1.037 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.432e-05/0.2644, allocations: 81.02 kB / 1.037 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.2645, allocations: 0 / 1.037 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.2646, allocations: 27.97 kB / 1.037 GB, free: 15.04 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.2647, allocations: 19.97 kB / 1.037 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.2647, allocations: 11.94 kB / 1.037 GB, free: 15.01 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.001e-05/0.2648, allocations: 95.27 kB / 1.037 GB, free: 14.91 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2648, allocations: 0 / 1.037 GB, free: 14.91 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002223/0.265, allocations: 12 kB / 1.037 GB, free: 14.9 MB / 0.795 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.0001081/0.2651, allocations: 95.25 kB / 1.037 GB, free: 14.8 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004357/0.2656, allocations: 139.8 kB / 1.037 GB, free: 14.66 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2656, allocations: 0 / 1.037 GB, free: 14.66 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002063/0.2658, allocations: 67.95 kB / 1.037 GB, free: 14.6 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.2661, allocations: 8.766 kB / 1.037 GB, free: 14.59 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004027/0.2665, allocations: 223 kB / 1.038 GB, free: 14.33 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.2667, allocations: 0.6904 MB / 1.038 GB, free: 13.62 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.853e-05/0.2668, allocations: 19.42 kB / 1.038 GB, free: 13.6 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.2668, allocations: 0 / 1.038 GB, free: 13.6 MB / 0.795 GB Notification: Performance of Templates: time 0.002363/0.2691, allocations: 1.225 MB / 1.039 GB, free: 12.39 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches