Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001468, allocations: 200.7 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 226.5 MB / 245.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007392/0.0007391, allocations: 94.62 kB / 297.5 MB, free: 6.848 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4572/0.4572, allocations: 44.82 MB / 394.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003287, allocations: 8 kB / 467.9 MB, free: 12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3642, allocations: 62.96 MB / 0.5184 GB, free: 37.22 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1228/0.4871, allocations: 87.13 MB / 0.6035 GB, free: 2.125 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.4874, allocations: 59.97 kB / 0.6036 GB, free: 2.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003328/0.4908, allocations: 1.08 MB / 0.6046 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.4908, allocations: 0 / 0.6046 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.056e-06/0.4908, allocations: 0 / 0.6046 GB, free: 0.9922 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000437/0.4912, allocations: 359.4 kB / 0.605 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.4913, allocations: 12.03 kB / 0.605 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.4915, allocations: 20.81 kB / 0.605 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.4917, allocations: 176.2 kB / 0.6052 GB, free: 356 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.4917, allocations: 384 / 0.6052 GB, free: 356 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.4917, allocations: 4.375 kB / 0.6052 GB, free: 352 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.4919, allocations: 63.89 kB / 0.6052 GB, free: 276 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.4919, allocations: 4.188 kB / 0.6052 GB, free: 272 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.4919, allocations: 3.938 kB / 0.6052 GB, free: 268 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4919, allocations: 0 / 0.6052 GB, free: 268 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.313e-05/0.492, allocations: 23.98 kB / 0.6052 GB, free: 244 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004833/0.4925, allocations: 261 kB / 0.6055 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.688e-05/0.4926, allocations: 42.45 kB / 0.6055 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.331e-05/0.4927, allocations: 20.91 kB / 0.6056 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.4927, allocations: 0 / 0.6056 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.4927, allocations: 30.56 kB / 0.6056 GB, free: 15.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 1.293e-06/0.4928, allocations: 0 / 0.6056 GB, free: 15.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002742/0.493, allocations: 73.67 kB / 0.6057 GB, free: 15.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.4931, allocations: 77.11 kB / 0.6057 GB, free: 15.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.462e-05/0.4932, allocations: 109.8 kB / 0.6058 GB, free: 15.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.4932, allocations: 33.64 kB / 0.6059 GB, free: 15.49 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.4933, allocations: 84.14 kB / 0.6059 GB, free: 15.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.4933, allocations: 7.891 kB / 0.606 GB, free: 15.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.4933, allocations: 4.125 kB / 0.606 GB, free: 15.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4935, allocations: 322.8 kB / 0.6063 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.086e-05/0.4936, allocations: 15.98 kB / 0.6063 GB, free: 15.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.111e-05/0.4936, allocations: 25.72 kB / 0.6063 GB, free: 15.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.755e-05/0.4937, allocations: 28.88 kB / 0.6063 GB, free: 14.99 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4937, allocations: 0 / 0.6063 GB, free: 14.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001418/0.4939, allocations: 65.61 kB / 0.6064 GB, free: 14.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.4939, allocations: 4 kB / 0.6064 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4939, allocations: 0 / 0.6064 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.494, allocations: 7.938 kB / 0.6064 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.227e-05/0.4941, allocations: 11.92 kB / 0.6064 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.4941, allocations: 0 / 0.6064 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.858e-05/0.4941, allocations: 12 kB / 0.6064 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.4942, allocations: 0 / 0.6064 GB, free: 14.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.4943, allocations: 121.8 kB / 0.6065 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.4943, allocations: 3.906 kB / 0.6065 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.42e-05/0.4944, allocations: 7.531 kB / 0.6066 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.4944, allocations: 0 / 0.6066 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.4944, allocations: 4.141 kB / 0.6066 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.4944, allocations: 3.984 kB / 0.6066 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.4946, allocations: 169.6 kB / 0.6067 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.4946, allocations: 4 kB / 0.6067 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-05/0.4947, allocations: 4 kB / 0.6067 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.4947, allocations: 0 / 0.6067 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.4947, allocations: 3.984 kB / 0.6067 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4947, allocations: 0 / 0.6067 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4947, allocations: 0 / 0.6067 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.4949, allocations: 159.4 kB / 0.6069 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.206e-05/0.495, allocations: 85.02 kB / 0.607 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.495, allocations: 3.984 kB / 0.607 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.4951, allocations: 8 kB / 0.607 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.35e-05/0.4952, allocations: 7.984 kB / 0.607 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/0.4952, allocations: 3.984 kB / 0.607 GB, free: 14.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.842e-05/0.4952, allocations: 87.31 kB / 0.6071 GB, free: 14.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4952, allocations: 4 kB / 0.6071 GB, free: 14.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002379/0.4955, allocations: 4 kB / 0.6071 GB, free: 14.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001556/0.4957, allocations: 91.25 kB / 0.6072 GB, free: 14.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001615/0.4958, allocations: 35.97 kB / 0.6072 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4958, allocations: 0 / 0.6072 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.308e-05/0.4959, allocations: 19.94 kB / 0.6072 GB, free: 13.96 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.4961, allocations: 10.75 kB / 0.6072 GB, free: 13.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/0.4965, allocations: 136.7 kB / 0.6074 GB, free: 13.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.4969, allocations: 0.6809 MB / 0.608 GB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 3.956e-05/0.4969, allocations: 4.062 kB / 0.608 GB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.769e-05/0.497, allocations: 11.44 kB / 0.608 GB, free: 13.07 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.497, allocations: 0 / 0.608 GB, free: 13.07 MB / 426.7 MB Notification: Performance of Templates: time 0.002674/0.4997, allocations: 485 kB / 0.6085 GB, free: 12.61 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches