Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009479/0.000948, allocations: 180.9 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 221.4 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007982/0.0007982, allocations: 86.88 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2031/0.2031, allocations: 44.16 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.324e-05/4.35e-05, allocations: 4.219 kB / 451.8 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.127, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4168/0.5438, allocations: 86.12 MB / 0.5858 GB, free: 3.188 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.5441, allocations: 71.02 kB / 0.5859 GB, free: 3.121 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002825/0.5469, allocations: 0.9844 MB / 0.5868 GB, free: 2.148 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5469, allocations: 0 / 0.5868 GB, free: 2.148 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.547, allocations: 0 / 0.5868 GB, free: 2.148 MB / 394.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.0003831/0.5473, allocations: 334.5 kB / 0.5872 GB, free: 1.777 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.5474, allocations: 8.031 kB / 0.5872 GB, free: 1.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.5474, allocations: 8 kB / 0.5872 GB, free: 1.762 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.5476, allocations: 170.9 kB / 0.5873 GB, free: 1.555 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.5476, allocations: 3.938 kB / 0.5873 GB, free: 1.551 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.5476, allocations: 0 / 0.5873 GB, free: 1.551 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.5478, allocations: 59.34 kB / 0.5874 GB, free: 1.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.5478, allocations: 7.938 kB / 0.5874 GB, free: 1.473 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.5478, allocations: 0 / 0.5874 GB, free: 1.473 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.5478, allocations: 4 kB / 0.5874 GB, free: 1.469 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.661e-05/0.5479, allocations: 8 kB / 0.5874 GB, free: 1.461 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004531/0.5484, allocations: 260.9 kB / 0.5877 GB, free: 1.156 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.807e-05/0.5484, allocations: 34.5 kB / 0.5877 GB, free: 1.113 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.154e-05/0.5485, allocations: 16.92 kB / 0.5877 GB, free: 1.094 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.5485, allocations: 0 / 0.5877 GB, free: 1.094 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.5485, allocations: 34.56 kB / 0.5877 GB, free: 1.051 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 8.81e-07/0.5485, allocations: 0 / 0.5877 GB, free: 1.051 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001606/0.5487, allocations: 37.7 kB / 0.5878 GB, free: 1.008 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.5488, allocations: 85.03 kB / 0.5879 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.782e-05/0.5489, allocations: 101 kB / 0.588 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.5489, allocations: 29.73 kB / 0.588 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.665e-05/0.5489, allocations: 84.14 kB / 0.5881 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.549, allocations: 11.89 kB / 0.5881 GB, free: 0.668 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.549, allocations: 2.953 kB / 0.5881 GB, free: 0.668 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5491, allocations: 314.8 kB / 0.5884 GB, free: 360 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.172e-05/0.5491, allocations: 4 kB / 0.5884 GB, free: 356 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.063e-05/0.5492, allocations: 25.7 kB / 0.5884 GB, free: 324 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.579e-05/0.5492, allocations: 16.02 kB / 0.5884 GB, free: 308 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.5492, allocations: 0 / 0.5884 GB, free: 308 kB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.232e-05/0.5493, allocations: 49.56 kB / 0.5885 GB, free: 252 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.5493, allocations: 4 kB / 0.5885 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5493, allocations: 0 / 0.5885 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.5494, allocations: 11.92 kB / 0.5885 GB, free: 236 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.315e-05/0.5494, allocations: 4 kB / 0.5885 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.5495, allocations: 0 / 0.5885 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.077e-05/0.5495, allocations: 11.98 kB / 0.5885 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.5495, allocations: 4 kB / 0.5885 GB, free: 216 kB / 394.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 () * 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 7.58e-05/0.5496, allocations: 109 kB / 0.5886 GB, free: 100 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.5497, allocations: 3.953 kB / 0.5886 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.5497, allocations: 10.53 kB / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.5497, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.5497, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.5497, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.5499, allocations: 161.7 kB / 0.5888 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.5499, allocations: 0 / 0.5888 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-05/0.55, allocations: 11.98 kB / 0.5888 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.55, allocations: 7.953 kB / 0.5888 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.55, allocations: 0 / 0.5888 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.55, allocations: 0 / 0.5888 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.55, allocations: 3.938 kB / 0.5888 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.5502, allocations: 143.3 kB / 0.5889 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.694e-05/0.5502, allocations: 81.02 kB / 0.589 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.5503, allocations: 15.98 kB / 0.589 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.5504, allocations: 11.98 kB / 0.589 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.625e-05/0.5504, allocations: 3.984 kB / 0.589 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.5504, allocations: 4 kB / 0.589 GB, free: 15.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.739e-05/0.5505, allocations: 87.27 kB / 0.5891 GB, free: 15.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5505, allocations: 0 / 0.5891 GB, free: 15.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001974/0.5507, allocations: 8 kB / 0.5891 GB, free: 15.47 MB / 410.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) * 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.0001386/0.5508, allocations: 99.23 kB / 0.5892 GB, free: 15.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.551, allocations: 16 kB / 0.5892 GB, free: 15.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.551, allocations: 0 / 0.5892 GB, free: 15.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.84e-05/0.551, allocations: 11.94 kB / 0.5893 GB, free: 15.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.5511, allocations: 4 kB / 0.5893 GB, free: 15.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002441/0.5514, allocations: 69.42 kB / 0.5893 GB, free: 15.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.5517, allocations: 0.6809 MB / 0.59 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.747e-05/0.5518, allocations: 8.047 kB / 0.59 GB, free: 14.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.5518, allocations: 7.438 kB / 0.59 GB, free: 14.52 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5518, allocations: 0 / 0.59 GB, free: 14.52 MB / 410.7 MB Notification: Performance of Templates: time 0.002519/0.5544, allocations: 487.5 kB / 0.5905 GB, free: 14.05 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches