Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001099/0.001099, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.437/2.437, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 68.14 kB / 0.8707 GB, free: 1.434 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2815, allocations: 151.6 MB / 1.019 GB, free: 9.84 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002059/0.2836, allocations: 0.8478 MB / 1.02 GB, free: 8.988 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009094/0.2845, allocations: 0.8857 MB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.88e-05/0.2846, allocations: 4 kB / 1.02 GB, free: 8.086 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.759e-05/0.2847, allocations: 11.81 kB / 1.021 GB, free: 8.074 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.51e-05/0.2848, allocations: 15.8 kB / 1.021 GB, free: 8.059 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001806/0.2849, allocations: 35.95 kB / 1.021 GB, free: 8.023 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.2851, allocations: 123.6 kB / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.2852, allocations: 21.11 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.2853, allocations: 47.84 kB / 1.021 GB, free: 7.832 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.972e-05/0.2854, allocations: 59.73 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.2854, allocations: 8 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.755e-05/0.2855, allocations: 16 kB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.999e-05/0.2855, allocations: 23.92 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.095e-05/0.2855, allocations: 47.72 kB / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.2857, allocations: 127.4 kB / 1.021 GB, free: 7.555 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2857, allocations: 0 / 1.021 GB, free: 7.555 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.283e-06/0.2857, allocations: 0 / 1.021 GB, free: 7.555 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.2857, allocations: 0 / 1.021 GB, free: 7.555 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006274/0.2863, allocations: 446.8 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.2864, allocations: 8.922 kB / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.406e-05/0.2864, allocations: 12.84 kB / 1.021 GB, free: 7.047 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.2869, allocations: 259.1 kB / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.2869, allocations: 4.375 kB / 1.022 GB, free: 6.754 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.287, allocations: 8.375 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.2872, allocations: 129.2 kB / 1.022 GB, free: 6.605 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2872, allocations: 3.938 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.2872, allocations: 0 / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.2872, allocations: 0 / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002507/0.2875, allocations: 83.81 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005479/0.2881, allocations: 497 kB / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.2883, allocations: 117.3 kB / 1.023 GB, free: 5.836 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.2884, allocations: 58.59 kB / 1.023 GB, free: 5.77 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.2885, allocations: 7.938 kB / 1.023 GB, free: 5.762 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.2885, allocations: 34.56 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.2885, allocations: 3.938 kB / 1.023 GB, free: 5.715 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.0005315/0.289, allocations: 157.4 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.2891, allocations: 111 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.2892, allocations: 142.2 kB / 1.023 GB, free: 5.273 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.2893, allocations: 37.64 kB / 1.023 GB, free: 5.23 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.495e-05/0.2893, allocations: 104.3 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.2893, allocations: 31.7 kB / 1.023 GB, free: 5.09 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-05/0.2894, allocations: 29.7 kB / 1.023 GB, free: 5.055 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.2895, allocations: 326.8 kB / 1.024 GB, free: 4.727 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2897, allocations: 43.97 kB / 1.024 GB, free: 4.684 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.2899, allocations: 81.11 kB / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.2901, allocations: 94.69 kB / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2901, allocations: 0 / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003201/0.2904, allocations: 137.5 kB / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.2905, allocations: 4 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2905, allocations: 7.984 kB / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2905, allocations: 0 / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.2906, allocations: 19.98 kB / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2906, allocations: 4 kB / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.2908, allocations: 19.89 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.2908, allocations: 4 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.669e-05/0.2909, allocations: 126.5 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.2909, allocations: 11.91 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000231/0.2912, allocations: 89.89 kB / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2912, allocations: 4 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2912, allocations: 0 / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2912, allocations: 0 / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.2915, allocations: 201.5 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2915, allocations: 0 / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.2916, allocations: 31.97 kB / 1.024 GB, free: 3.766 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2916, allocations: 0 / 1.024 GB, free: 3.766 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2916, allocations: 3.938 kB / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2916, allocations: 8 kB / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2916, allocations: 0 / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003801/0.292, allocations: 369.9 kB / 1.025 GB, free: 3.375 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.132e-05/0.2921, allocations: 96.95 kB / 1.025 GB, free: 3.262 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.2921, allocations: 7.938 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.2923, allocations: 11.98 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.2924, allocations: 23.95 kB / 1.025 GB, free: 3.219 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.2924, allocations: 4 kB / 1.025 GB, free: 3.215 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.261e-05/0.2925, allocations: 121.4 kB / 1.025 GB, free: 3.098 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2925, allocations: 0 / 1.025 GB, free: 3.098 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002991/0.2928, allocations: 16 kB / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001237/0.2929, allocations: 109.5 kB / 1.025 GB, free: 2.965 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000334/0.2932, allocations: 99.86 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2932, allocations: 0 / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.2934, allocations: 55.95 kB / 1.025 GB, free: 2.812 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.2938, allocations: 8 kB / 1.025 GB, free: 2.805 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003656/0.2942, allocations: 207.5 kB / 1.025 GB, free: 2.566 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.2945, allocations: 0.7002 MB / 1.026 GB, free: 1.84 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 6.791e-05/0.2945, allocations: 17.06 kB / 1.026 GB, free: 1.824 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.694e-05/0.2946, allocations: 23.42 kB / 1.026 GB, free: 1.801 MB / 0.795 GB Notification: Performance of SimCode: time 2.91e-07/0.2946, allocations: 4 kB / 1.026 GB, free: 1.797 MB / 0.795 GB Notification: Performance of Templates: time 0.003465/0.2981, allocations: 1.344 MB / 1.027 GB, free: 472 kB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches