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.0009495/0.0009497, allocations: 91.38 kB / 16.02 MB, free: 80 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.001043/0.001043, allocations: 180.8 kB / 16.92 MB, free: 6.652 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.311/1.311, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.527/2.527, allocations: 443.2 MB / 0.7181 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004971/0.0004974, allocations: 6.672 kB / 0.8801 GB, free: 41.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2791, allocations: 155.2 MB / 1.032 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.003043/0.2822, allocations: 2.674 MB / 1.034 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2837, allocations: 0.8805 MB / 1.035 GB, free: 1 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.2839, allocations: 11.94 kB / 1.035 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.2841, allocations: 55.58 kB / 1.035 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.2843, allocations: 67.44 kB / 1.035 GB, free: 0.8672 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004507/0.2847, allocations: 191.8 kB / 1.035 GB, free: 0.6797 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004086/0.2852, allocations: 463.1 kB / 1.036 GB, free: 232 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.2855, allocations: 193.2 kB / 1.036 GB, free: 32 kB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.2857, allocations: 127.2 kB / 1.036 GB, free: 15.91 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.2859, allocations: 139.1 kB / 1.036 GB, free: 15.77 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.2859, allocations: 12 kB / 1.036 GB, free: 15.76 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 3.099e-05/0.2859, allocations: 12 kB / 1.036 GB, free: 15.75 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.286, allocations: 55.66 kB / 1.036 GB, free: 15.69 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.2861, allocations: 180.6 kB / 1.037 GB, free: 15.51 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003114/0.2864, allocations: 391.2 kB / 1.037 GB, free: 15.12 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2864, allocations: 0 / 1.037 GB, free: 15.12 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2865, allocations: 0 / 1.037 GB, free: 15.12 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.2865, allocations: 0 / 1.037 GB, free: 15.12 MB / 0.795 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.0009135/0.2874, allocations: 0.6391 MB / 1.038 GB, free: 14.44 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2874, allocations: 15.98 kB / 1.038 GB, free: 14.42 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.2875, allocations: 48.38 kB / 1.038 GB, free: 14.38 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/0.288, allocations: 396.3 kB / 1.038 GB, free: 13.95 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.2881, allocations: 21.03 kB / 1.038 GB, free: 13.93 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/0.2881, allocations: 28.38 kB / 1.038 GB, free: 13.9 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/0.2887, allocations: 345.4 kB / 1.038 GB, free: 13.54 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.2887, allocations: 0 / 1.038 GB, free: 13.54 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.2887, allocations: 12 kB / 1.038 GB, free: 13.53 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.2887, allocations: 8 kB / 1.038 GB, free: 13.52 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.2892, allocations: 222.1 kB / 1.039 GB, free: 13.3 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.2906, allocations: 1.193 MB / 1.04 GB, free: 12.04 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005543/0.2912, allocations: 238.7 kB / 1.04 GB, free: 11.79 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.2914, allocations: 112.8 kB / 1.04 GB, free: 11.68 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.2915, allocations: 4 kB / 1.04 GB, free: 11.68 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.2915, allocations: 38.94 kB / 1.04 GB, free: 11.63 MB / 0.795 GB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.2915, allocations: 0 / 1.04 GB, free: 11.63 MB / 0.795 GB Notification: Performance of matching and sorting (n=22): time 0.0006617/0.2922, allocations: 297 kB / 1.04 GB, free: 11.33 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.2922, allocations: 110.8 kB / 1.04 GB, free: 11.2 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.2926, allocations: 345.6 kB / 1.041 GB, free: 10.85 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.2926, allocations: 29.7 kB / 1.041 GB, free: 10.82 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.2927, allocations: 228.1 kB / 1.041 GB, free: 10.59 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.432e-05/0.2928, allocations: 75 kB / 1.041 GB, free: 10.52 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.264e-05/0.2929, allocations: 29.7 kB / 1.041 GB, free: 10.48 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.293, allocations: 342.8 kB / 1.042 GB, free: 10.14 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.2932, allocations: 75.97 kB / 1.042 GB, free: 10.06 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.2934, allocations: 147.7 kB / 1.042 GB, free: 9.891 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003657/0.2938, allocations: 212.5 kB / 1.042 GB, free: 9.664 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2938, allocations: 0 / 1.042 GB, free: 9.664 MB / 0.795 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004859/0.2943, allocations: 291.3 kB / 1.042 GB, free: 9.375 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2943, allocations: 4 kB / 1.042 GB, free: 9.371 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.2943, allocations: 4 kB / 1.042 GB, free: 9.367 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2943, allocations: 0 / 1.042 GB, free: 9.367 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.2946, allocations: 59.91 kB / 1.042 GB, free: 9.309 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2946, allocations: 4 kB / 1.042 GB, free: 9.305 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.2948, allocations: 39.95 kB / 1.042 GB, free: 9.266 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.2948, allocations: 8 kB / 1.042 GB, free: 9.258 MB / 0.795 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.0001569/0.295, allocations: 165.7 kB / 1.042 GB, free: 9.086 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.595e-05/0.295, allocations: 35.53 kB / 1.043 GB, free: 9.051 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.61e-05/0.2951, allocations: 39.36 kB / 1.043 GB, free: 9.012 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2951, allocations: 8 kB / 1.043 GB, free: 9.004 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.2951, allocations: 0 / 1.043 GB, free: 9.004 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2951, allocations: 3.938 kB / 1.043 GB, free: 9 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003983/0.2955, allocations: 397.2 kB / 1.043 GB, free: 8.562 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2956, allocations: 0 / 1.043 GB, free: 8.562 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.2958, allocations: 43.91 kB / 1.043 GB, free: 8.52 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2958, allocations: 0 / 1.043 GB, free: 8.52 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.2958, allocations: 8 kB / 1.043 GB, free: 8.512 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2958, allocations: 3.984 kB / 1.043 GB, free: 8.508 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2958, allocations: 4 kB / 1.043 GB, free: 8.504 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006633/0.2965, allocations: 433 kB / 1.043 GB, free: 8.066 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.2966, allocations: 136.5 kB / 1.044 GB, free: 7.914 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.2967, allocations: 4 kB / 1.044 GB, free: 7.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.2969, allocations: 28.05 kB / 1.044 GB, free: 7.883 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.2969, allocations: 19.91 kB / 1.044 GB, free: 7.863 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.2969, allocations: 8 kB / 1.044 GB, free: 7.855 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000219/0.2972, allocations: 239.2 kB / 1.044 GB, free: 7.625 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2972, allocations: 0 / 1.044 GB, free: 7.625 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003119/0.2975, allocations: 67.75 kB / 1.044 GB, free: 7.559 MB / 0.795 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.0001226/0.2976, allocations: 107.2 kB / 1.044 GB, free: 7.441 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004465/0.2981, allocations: 203.7 kB / 1.044 GB, free: 7.242 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2981, allocations: 0 / 1.044 GB, free: 7.242 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.2983, allocations: 104.3 kB / 1.044 GB, free: 7.141 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.2988, allocations: 83.09 kB / 1.044 GB, free: 7.062 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.3001, allocations: 0.8986 MB / 1.045 GB, free: 6.129 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.3004, allocations: 0.7914 MB / 1.046 GB, free: 5.312 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.467e-05/0.3005, allocations: 27.42 kB / 1.046 GB, free: 5.289 MB / 0.795 GB Notification: Performance of SimCode: time 3.7e-07/0.3005, allocations: 4 kB / 1.046 GB, free: 5.285 MB / 0.795 GB Notification: Performance of Templates: time 0.006031/0.3065, allocations: 4.154 MB / 1.05 GB, free: 1.141 MB / 0.795 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 -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