Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 78.64 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002173/0.002173, allocations: 167.1 kB / 22.46 MB, free: 5.363 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.578/1.578, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.924/2.924, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.485e-06/2.485e-06, allocations: 0 / 0.9815 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.478e-05/3.727e-05, allocations: 2.281 kB / 0.9815 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002488/0.002525, allocations: 0.8288 MB / 0.9823 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.00401, allocations: 0.921 MB / 0.9832 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.793e-05/0.004088, allocations: 0 / 0.9832 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.434e-05/0.004132, allocations: 7.875 kB / 0.9832 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.004264, allocations: 31.72 kB / 0.9832 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.004586, allocations: 35.94 kB / 0.9833 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.004779, allocations: 119.6 kB / 0.9834 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.004909, allocations: 17.25 kB / 0.9834 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002796/0.005189, allocations: 75.8 kB / 0.9835 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.0053, allocations: 43.88 kB / 0.9835 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.374e-05/0.005334, allocations: 8 kB / 0.9835 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.661e-05/0.00539, allocations: 12 kB / 0.9835 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.169e-05/0.005432, allocations: 35.89 kB / 0.9836 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.96e-05/0.005482, allocations: 35.86 kB / 0.9836 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002493/0.005731, allocations: 131.5 kB / 0.9837 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.005733, allocations: 0 / 0.9837 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of FrontEnd: time 8.02e-07/0.005734, allocations: 0 / 0.9837 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.005739, allocations: 0 / 0.9837 GB, free: 9.625 MB / 0.9356 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.0008229/0.006562, allocations: 373.6 kB / 0.9841 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.006608, allocations: 12.03 kB / 0.9841 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.006917, allocations: 36.83 kB / 0.9841 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.007456, allocations: 189.6 kB / 0.9843 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.007488, allocations: 8.375 kB / 0.9843 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.00751, allocations: 8.375 kB / 0.9843 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.007832, allocations: 120.7 kB / 0.9845 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.007842, allocations: 192 / 0.9845 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.007861, allocations: 8.375 kB / 0.9845 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.007869, allocations: 4.125 kB / 0.9845 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003232/0.008192, allocations: 67.94 kB / 0.9845 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006347/0.008827, allocations: 432.8 kB / 0.9849 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.009105, allocations: 115.8 kB / 0.9851 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.009278, allocations: 50.55 kB / 0.9851 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.009311, allocations: 7.984 kB / 0.9851 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.009343, allocations: 38.5 kB / 0.9851 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.009345, allocations: 0 / 0.9851 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.000653/0.009998, allocations: 161.6 kB / 0.9853 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.01007, allocations: 102.8 kB / 0.9854 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.01021, allocations: 152.7 kB / 0.9855 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.01024, allocations: 33.7 kB / 0.9856 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.01032, allocations: 104.3 kB / 0.9857 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.01036, allocations: 27.78 kB / 0.9857 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.04e-05/0.01043, allocations: 25.97 kB / 0.9857 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.01058, allocations: 326.8 kB / 0.986 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.01075, allocations: 43.95 kB / 0.9861 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.01099, allocations: 162.2 kB / 0.9862 GB, free: 6.809 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003334/0.01132, allocations: 90.52 kB / 0.9863 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01132, allocations: 4 kB / 0.9863 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004107/0.01174, allocations: 145.4 kB / 0.9865 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.01175, allocations: 4 kB / 0.9865 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.01175, allocations: 0 / 0.9865 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.01177, allocations: 3.938 kB / 0.9865 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.01191, allocations: 23.97 kB / 0.9865 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/0.01192, allocations: 0 / 0.9865 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.01207, allocations: 23.92 kB / 0.9865 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.01208, allocations: 4 kB / 0.9865 GB, free: 6.5 MB / 0.9356 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 0.000123/0.01221, allocations: 125.8 kB / 0.9866 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.591e-05/0.01228, allocations: 15.84 kB / 0.9867 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.01257, allocations: 93.92 kB / 0.9867 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.01257, allocations: 0 / 0.9867 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.01258, allocations: 4 kB / 0.9867 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01258, allocations: 4 kB / 0.9868 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002797/0.01286, allocations: 129.4 kB / 0.9869 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.01287, allocations: 4 kB / 0.9869 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.01298, allocations: 15.98 kB / 0.9869 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.01299, allocations: 3.938 kB / 0.9869 GB, free: 6.066 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.013, allocations: 7.984 kB / 0.9869 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.013, allocations: 3.938 kB / 0.9869 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.01301, allocations: 0 / 0.9869 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004981/0.0135, allocations: 373.9 kB / 0.9873 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 2.291e-05/0.01353, allocations: 19.83 kB / 0.9873 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.01355, allocations: 4 kB / 0.9873 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.01378, allocations: 15.98 kB / 0.9873 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.076e-05/0.01387, allocations: 24.19 kB / 0.9873 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.01388, allocations: 0 / 0.9873 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.314e-05/0.01397, allocations: 113.7 kB / 0.9874 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01397, allocations: 0 / 0.9874 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000343/0.01432, allocations: 23.94 kB / 0.9875 GB, free: 5.477 MB / 0.9356 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.0001506/0.01447, allocations: 111.2 kB / 0.9876 GB, free: 5.355 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004141/0.01488, allocations: 95.83 kB / 0.9877 GB, free: 5.262 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.01489, allocations: 4 kB / 0.9877 GB, free: 5.258 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.01508, allocations: 48.03 kB / 0.9877 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.01556, allocations: 14.12 kB / 0.9877 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005314/0.01609, allocations: 211.3 kB / 0.9879 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.0162, allocations: 84.31 kB / 0.988 GB, free: 4.855 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.225e-05/0.01628, allocations: 16.7 kB / 0.988 GB, free: 4.836 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.533e-05/0.01634, allocations: 20.5 kB / 0.988 GB, free: 4.812 MB / 0.9356 GB Notification: Performance of SimCode: time 6.21e-07/0.01634, allocations: 4 kB / 0.988 GB, free: 4.809 MB / 0.9356 GB Notification: Performance of Templates: time 0.004907/0.02125, allocations: 1.403 MB / 0.9894 GB, free: 3.426 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.427524838596582]