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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.001531/0.001532, allocations: 111.1 kB / 16.37 MB, free: 6.012 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.002075/0.002075, allocations: 190.1 kB / 17.31 MB, free: 5.613 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.496/1.496, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.249/2.249, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 63.02 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3124, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002069/0.3146, allocations: 0.779 MB / 0.9519 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.3156, allocations: 0.8644 MB / 0.9527 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.541e-05/0.3157, allocations: 8 kB / 0.9528 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.517e-05/0.3157, allocations: 7.875 kB / 0.9528 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.015e-05/0.3158, allocations: 15.86 kB / 0.9528 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001717/0.316, allocations: 31.97 kB / 0.9528 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3161, allocations: 87.8 kB / 0.9529 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3162, allocations: 24 kB / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.829e-05/0.3163, allocations: 39.84 kB / 0.9529 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.084e-05/0.3164, allocations: 51.81 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.1e-05/0.3165, allocations: 8 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.845e-05/0.3165, allocations: 8 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.131e-05/0.3165, allocations: 15.92 kB / 0.953 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.647e-05/0.3166, allocations: 43.77 kB / 0.9531 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.3167, allocations: 83.67 kB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3167, allocations: 0 / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3167, allocations: 0 / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.3168, allocations: 7.938 kB / 0.9532 GB, free: 5.961 MB / 0.7325 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.0007469/0.3175, allocations: 399.1 kB / 0.9535 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.501e-05/0.3176, allocations: 12.03 kB / 0.9535 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.3177, allocations: 8.844 kB / 0.9536 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.3179, allocations: 176.2 kB / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.3179, allocations: 4.375 kB / 0.9537 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.3179, allocations: 8.375 kB / 0.9537 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.3183, allocations: 105.7 kB / 0.9538 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3183, allocations: 3.938 kB / 0.9538 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.3183, allocations: 4 kB / 0.9538 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.3183, allocations: 3.938 kB / 0.9539 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.3187, allocations: 99.89 kB / 0.9539 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005662/0.3193, allocations: 336.7 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000621/0.3199, allocations: 122.5 kB / 0.9544 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.3201, allocations: 56.81 kB / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.3202, allocations: 7.984 kB / 0.9544 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.3202, allocations: 30.56 kB / 0.9545 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.3202, allocations: 0 / 0.9545 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0006393/0.3208, allocations: 193.4 kB / 0.9547 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.3209, allocations: 55.41 kB / 0.9547 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.614e-05/0.321, allocations: 125.8 kB / 0.9548 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.321, allocations: 25.7 kB / 0.9549 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.388e-05/0.3211, allocations: 100 kB / 0.955 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.3211, allocations: 19.73 kB / 0.955 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.176e-05/0.3212, allocations: 29.7 kB / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.3213, allocations: 314.8 kB / 0.9553 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.3215, allocations: 47.95 kB / 0.9553 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.3216, allocations: 47.95 kB / 0.9554 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.322, allocations: 92.77 kB / 0.9555 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.322, allocations: 4 kB / 0.9555 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003902/0.3224, allocations: 141.4 kB / 0.9556 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3224, allocations: 8 kB / 0.9556 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3224, allocations: 0 / 0.9556 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.3224, allocations: 0 / 0.9556 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.3226, allocations: 23.97 kB / 0.9556 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3226, allocations: 0 / 0.9556 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.3227, allocations: 23.92 kB / 0.9557 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.3228, allocations: 0 / 0.9557 GB, free: 3.16 MB / 0.7325 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.0001035/0.3229, allocations: 119.8 kB / 0.9558 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.3229, allocations: 11.84 kB / 0.9558 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000437/0.3233, allocations: 153.9 kB / 0.9559 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3234, allocations: 4 kB / 0.9559 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3234, allocations: 3.938 kB / 0.956 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3234, allocations: 3.938 kB / 0.956 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002352/0.3236, allocations: 197.5 kB / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3236, allocations: 4 kB / 0.9561 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.3238, allocations: 23.97 kB / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.3238, allocations: 4 kB / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.3238, allocations: 0 / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3238, allocations: 0 / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3238, allocations: 7.984 kB / 0.9562 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004281/0.3243, allocations: 239.2 kB / 0.9564 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.3243, allocations: 89 kB / 0.9565 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.3243, allocations: 0 / 0.9565 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.3245, allocations: 15.98 kB / 0.9565 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.201e-05/0.3246, allocations: 23.97 kB / 0.9565 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.3246, allocations: 7.938 kB / 0.9565 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.659e-05/0.3247, allocations: 95.27 kB / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3247, allocations: 0 / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000233/0.3249, allocations: 12 kB / 0.9566 GB, free: 2.066 MB / 0.7325 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.0001322/0.3251, allocations: 103.2 kB / 0.9567 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004122/0.3255, allocations: 112.5 kB / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3255, allocations: 0 / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.3257, allocations: 55.95 kB / 0.9569 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.326, allocations: 12.3 kB / 0.9569 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004507/0.3265, allocations: 178.4 kB / 0.9571 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.3268, allocations: 0.6922 MB / 0.9578 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.47e-05/0.3268, allocations: 15.98 kB / 0.9578 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.954e-05/0.3269, allocations: 15.44 kB / 0.9578 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.3269, allocations: 4 kB / 0.9578 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of Templates: time 0.004165/0.3311, allocations: 1.573 MB / 0.9593 GB, free: 15.25 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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) Reference file matches