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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002075/0.002076, allocations: 200 kB / 8.539 MB, free: 1.75 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009709/0.0009711, allocations: 93.19 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1934/0.1934, allocations: 45.15 MB / 383.4 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.205e-06/8.225e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 63.25 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4032/0.5385, allocations: 86.45 MB / 0.5882 GB, free: 472 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.5388, allocations: 62.09 kB / 0.5883 GB, free: 444 kB / 378.7 MB Notification: Performance of FrontEnd: time 0.003123/0.5419, allocations: 0.775 MB / 0.589 GB, free: 15.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.5419, allocations: 0 / 0.589 GB, free: 15.8 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.0003658/0.5423, allocations: 349.8 kB / 0.5893 GB, free: 15.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.5424, allocations: 12.03 kB / 0.5894 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.5425, allocations: 19.89 kB / 0.5894 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.5427, allocations: 167.1 kB / 0.5895 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.5427, allocations: 0 / 0.5895 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.5427, allocations: 4 kB / 0.5895 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.327e-05/0.5428, allocations: 7.125 kB / 0.5895 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.5429, allocations: 58.73 kB / 0.5896 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.5429, allocations: 4 kB / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.543, allocations: 0 / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.543, allocations: 0 / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003913/0.5434, allocations: 239.5 kB / 0.5898 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.498e-05/0.5434, allocations: 29.83 kB / 0.5899 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.568e-05/0.5435, allocations: 12.17 kB / 0.5899 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.5435, allocations: 3.906 kB / 0.5899 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.5436, allocations: 36.92 kB / 0.5899 GB, free: 14.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.5436, allocations: 0 / 0.5899 GB, free: 14.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001794/0.5438, allocations: 44.58 kB / 0.59 GB, free: 14.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.5438, allocations: 77.11 kB / 0.59 GB, free: 14.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.5439, allocations: 109.8 kB / 0.5901 GB, free: 14.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.544, allocations: 25.7 kB / 0.5902 GB, free: 14.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.544, allocations: 84.08 kB / 0.5902 GB, free: 14.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.5441, allocations: 11.03 kB / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/0.5441, allocations: 0 / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.5442, allocations: 314.8 kB / 0.5906 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.094e-05/0.5442, allocations: 7.969 kB / 0.5906 GB, free: 14.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.41e-05/0.5443, allocations: 17.34 kB / 0.5906 GB, free: 14.04 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.131e-05/0.5443, allocations: 11.09 kB / 0.5906 GB, free: 14.03 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5443, allocations: 0 / 0.5906 GB, free: 14.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.515e-05/0.5444, allocations: 53.23 kB / 0.5906 GB, free: 13.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.5444, allocations: 8 kB / 0.5906 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.5444, allocations: 0 / 0.5906 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.5444, allocations: 0 / 0.5906 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.645e-05/0.5445, allocations: 11.92 kB / 0.5907 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.5445, allocations: 3.938 kB / 0.5907 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.311e-05/0.5446, allocations: 12 kB / 0.5907 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.5446, allocations: 4 kB / 0.5907 GB, free: 13.93 MB / 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.316e-05/0.5447, allocations: 112.2 kB / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.5447, allocations: 0 / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.5448, allocations: 7.625 kB / 0.5908 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.5448, allocations: 3.906 kB / 0.5908 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.5448, allocations: 0 / 0.5908 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.5448, allocations: 4 kB / 0.5908 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.545, allocations: 140.7 kB / 0.5909 GB, free: 13.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.545, allocations: 7.938 kB / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.362e-05/0.545, allocations: 4 kB / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.545, allocations: 0 / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.545, allocations: 0 / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.5451, allocations: 3.688 kB / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5451, allocations: 0 / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001328/0.5452, allocations: 148 kB / 0.5911 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.463e-05/0.5453, allocations: 81.02 kB / 0.5912 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.5453, allocations: 3.984 kB / 0.5912 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.421e-05/0.5454, allocations: 12 kB / 0.5912 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.5454, allocations: 7.234 kB / 0.5912 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.5455, allocations: 7.984 kB / 0.5912 GB, free: 13.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.553e-05/0.5455, allocations: 87.31 kB / 0.5913 GB, free: 13.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00022/0.5457, allocations: 8 kB / 0.5913 GB, free: 13.25 MB / 394.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.0001173/0.5459, allocations: 91.25 kB / 0.5914 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001002/0.546, allocations: 11.19 kB / 0.5914 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.546, allocations: 0 / 0.5914 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.234e-05/0.546, allocations: 11.5 kB / 0.5914 GB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.5462, allocations: 10.56 kB / 0.5914 GB, free: 13.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002362/0.5464, allocations: 71.53 kB / 0.5915 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.5467, allocations: 0.6921 MB / 0.5921 GB, free: 12.32 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5467, allocations: 0 / 0.5921 GB, free: 12.32 MB / 394.7 MB Notification: Performance of Templates: time 0.002405/0.5491, allocations: 0.5057 MB / 0.5926 GB, free: 11.83 MB / 394.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/jenkins/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