Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001601, allocations: 110.1 kB / 16.37 MB, free: 5.539 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.001809/0.001809, allocations: 197.5 kB / 17.31 MB, free: 5.18 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.639/2.639, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 63.5 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3361, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.004663/0.3408, allocations: 3.013 MB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001817/0.3427, allocations: 0.9078 MB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002498/0.3429, allocations: 15.94 kB / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002398/0.3432, allocations: 67.31 kB / 1.031 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.3434, allocations: 87.17 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004985/0.3439, allocations: 215.6 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004794/0.3444, allocations: 491.2 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003479/0.3448, allocations: 213.6 kB / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.345, allocations: 183.2 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.3452, allocations: 179 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.448e-05/0.3453, allocations: 44 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.019e-05/0.3453, allocations: 44 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.3454, allocations: 95.62 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.3456, allocations: 198.9 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004711/0.3461, allocations: 0.5137 MB / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3461, allocations: 0 / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3461, allocations: 0 / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.3461, allocations: 0 / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001054/0.3472, allocations: 0.7102 MB / 1.034 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3472, allocations: 12.03 kB / 1.034 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.402e-05/0.3473, allocations: 44.38 kB / 1.034 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005968/0.3479, allocations: 408.3 kB / 1.034 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.3479, allocations: 21.03 kB / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.781e-05/0.348, allocations: 28.38 kB / 1.034 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.3485, allocations: 345.4 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.3485, allocations: 4 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.3486, allocations: 8 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.3486, allocations: 8 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004384/0.349, allocations: 214.1 kB / 1.035 GB, free: 9.898 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.3505, allocations: 1.17 MB / 1.036 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005463/0.351, allocations: 246.7 kB / 1.036 GB, free: 8.402 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/0.3513, allocations: 116.8 kB / 1.036 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.3513, allocations: 8 kB / 1.036 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.3513, allocations: 34.94 kB / 1.036 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=22): time 2.154e-06/0.3513, allocations: 0 / 1.036 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22): time 0.0006298/0.352, allocations: 294.2 kB / 1.036 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.3521, allocations: 106.8 kB / 1.036 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003291/0.3524, allocations: 337.6 kB / 1.037 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.3524, allocations: 37.7 kB / 1.037 GB, free: 7.434 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.3526, allocations: 228.1 kB / 1.037 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.865e-05/0.3527, allocations: 66.92 kB / 1.037 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.751e-05/0.3527, allocations: 57.69 kB / 1.037 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3529, allocations: 342.8 kB / 1.037 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.3531, allocations: 75.95 kB / 1.038 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.3533, allocations: 148.4 kB / 1.038 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.3536, allocations: 207.8 kB / 1.038 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3536, allocations: 4 kB / 1.038 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004829/0.3541, allocations: 272.2 kB / 1.038 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3542, allocations: 18.2 kB / 1.038 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3542, allocations: 0 / 1.038 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.3542, allocations: 4 kB / 1.038 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.3544, allocations: 51.92 kB / 1.038 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.3544, allocations: 11.97 kB / 1.038 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.3546, allocations: 35.67 kB / 1.038 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.3546, allocations: 8 kB / 1.038 GB, free: 5.867 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001622/0.3548, allocations: 170.2 kB / 1.038 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.3549, allocations: 35.53 kB / 1.038 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.478e-05/0.355, allocations: 39.36 kB / 1.039 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.355, allocations: 4 kB / 1.039 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.355, allocations: 3.938 kB / 1.039 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.355, allocations: 3.984 kB / 1.039 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004139/0.3554, allocations: 393.3 kB / 1.039 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3554, allocations: 0 / 1.039 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.3556, allocations: 35.98 kB / 1.039 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3557, allocations: 4 kB / 1.039 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.3557, allocations: 8 kB / 1.039 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.3557, allocations: 3.984 kB / 1.039 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.3557, allocations: 0 / 1.039 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006516/0.3563, allocations: 425.5 kB / 1.039 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.3565, allocations: 124.7 kB / 1.039 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.3565, allocations: 12.06 kB / 1.039 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.3567, allocations: 23.91 kB / 1.04 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.3568, allocations: 15.98 kB / 1.04 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.3568, allocations: 7.984 kB / 1.04 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002307/0.357, allocations: 235.2 kB / 1.04 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.357, allocations: 0 / 1.04 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003184/0.3574, allocations: 71.69 kB / 1.04 GB, free: 4.191 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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.0001439/0.3575, allocations: 111.2 kB / 1.04 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004429/0.358, allocations: 201.7 kB / 1.04 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.358, allocations: 0 / 1.04 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.3582, allocations: 103.8 kB / 1.04 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.3587, allocations: 82.55 kB / 1.04 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.3599, allocations: 0.687 MB / 1.041 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.3603, allocations: 0.7912 MB / 1.042 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001399/0.3604, allocations: 46.89 kB / 1.042 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.436e-05/0.3605, allocations: 31.42 kB / 1.042 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of SimCode: time 2e-07/0.3605, allocations: 0 / 1.042 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of Templates: time 0.007057/0.3676, allocations: 3.17 MB / 1.045 GB, free: 14.95 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches