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") [: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 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 184.2 kB / 8.519 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.4 MB / 230.3 MB, free: 7.641 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.0009336/0.0009336, allocations: 85.69 kB / 281.2 MB, free: 5.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1898/0.1898, allocations: 44.15 MB / 376.1 MB, free: 3.152 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.947e-06/8.977e-06, allocations: 0 / 444 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1413, allocations: 61.9 MB / 0.4941 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.4839, allocations: 85.39 MB / 0.5775 GB, free: 11.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.4841, allocations: 58.92 kB / 0.5775 GB, free: 11.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.002469/0.4865, allocations: 0.6812 MB / 0.5782 GB, free: 10.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.4866, allocations: 4 kB / 0.5782 GB, free: 10.57 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.0003104/0.4869, allocations: 342.4 kB / 0.5785 GB, free: 10.19 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.4869, allocations: 11.97 kB / 0.5785 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.487, allocations: 0 / 0.5785 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.4871, allocations: 179.5 kB / 0.5787 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.4871, allocations: 0.875 kB / 0.5787 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.4871, allocations: 7.938 kB / 0.5787 GB, free: 9.957 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.296e-05/0.4872, allocations: 8 kB / 0.5787 GB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.283e-05/0.4873, allocations: 59.34 kB / 0.5788 GB, free: 9.879 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.4873, allocations: 0 / 0.5788 GB, free: 9.879 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.4874, allocations: 3.906 kB / 0.5788 GB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.4874, allocations: 0 / 0.5788 GB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000352/0.4877, allocations: 237.5 kB / 0.579 GB, free: 9.605 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.043e-05/0.4878, allocations: 30.58 kB / 0.579 GB, free: 9.566 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.714e-05/0.4878, allocations: 12.92 kB / 0.579 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.4878, allocations: 0 / 0.579 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.4879, allocations: 36.97 kB / 0.5791 GB, free: 9.508 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.4879, allocations: 0 / 0.5791 GB, free: 9.508 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.000141/0.488, allocations: 45.62 kB / 0.5791 GB, free: 9.457 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.4881, allocations: 85.14 kB / 0.5792 GB, free: 9.355 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.533e-05/0.4881, allocations: 101 kB / 0.5793 GB, free: 9.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.4882, allocations: 25.7 kB / 0.5793 GB, free: 9.219 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.347e-05/0.4882, allocations: 84.12 kB / 0.5794 GB, free: 9.133 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.511e-05/0.4882, allocations: 7.906 kB / 0.5794 GB, free: 9.125 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.4882, allocations: 4 kB / 0.5794 GB, free: 9.121 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.363e-05/0.4883, allocations: 313.7 kB / 0.5797 GB, free: 8.809 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.994e-05/0.4884, allocations: 8 kB / 0.5797 GB, free: 8.801 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.85e-05/0.4884, allocations: 25.7 kB / 0.5797 GB, free: 8.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.846e-05/0.4884, allocations: 4 kB / 0.5798 GB, free: 8.766 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.4884, allocations: 0 / 0.5798 GB, free: 8.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.038e-05/0.4885, allocations: 53.53 kB / 0.5798 GB, free: 8.707 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/0.4885, allocations: 4 kB / 0.5798 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.4885, allocations: 4 kB / 0.5798 GB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.4885, allocations: 0 / 0.5798 GB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.4886, allocations: 4 kB / 0.5798 GB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.4886, allocations: 0 / 0.5798 GB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.723e-05/0.4887, allocations: 20.02 kB / 0.5798 GB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.4887, allocations: 0 / 0.5798 GB, free: 8.676 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.751e-05/0.4888, allocations: 108.9 kB / 0.5799 GB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.4888, allocations: 0 / 0.5799 GB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.4889, allocations: 7.625 kB / 0.5799 GB, free: 8.555 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.4889, allocations: 4 kB / 0.5799 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4889, allocations: 3.906 kB / 0.58 GB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.4889, allocations: 3.984 kB / 0.58 GB, free: 8.543 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.489, allocations: 134.2 kB / 0.5801 GB, free: 8.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.489, allocations: 0 / 0.5801 GB, free: 8.375 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.331e-05/0.4891, allocations: 11.98 kB / 0.5801 GB, free: 8.363 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.4891, allocations: 0 / 0.5801 GB, free: 8.363 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.4891, allocations: 3.938 kB / 0.5801 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.4891, allocations: 3.562 kB / 0.5801 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.4891, allocations: 0 / 0.5801 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000126/0.4893, allocations: 155.5 kB / 0.5802 GB, free: 8.191 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.4893, allocations: 85 kB / 0.5803 GB, free: 8.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.4894, allocations: 0 / 0.5803 GB, free: 8.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.4895, allocations: 15.98 kB / 0.5803 GB, free: 8.074 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.709e-05/0.4895, allocations: 8.016 kB / 0.5804 GB, free: 8.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.4895, allocations: 4 kB / 0.5804 GB, free: 8.062 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.978e-05/0.4896, allocations: 83.28 kB / 0.5804 GB, free: 7.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002108/0.4898, allocations: 4 kB / 0.5804 GB, free: 7.977 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.0001057/0.4899, allocations: 95.23 kB / 0.5805 GB, free: 7.871 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001055/0.49, allocations: 16 kB / 0.5805 GB, free: 7.855 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.49, allocations: 0 / 0.5805 GB, free: 7.855 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.689e-05/0.49, allocations: 15.94 kB / 0.5806 GB, free: 7.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.4902, allocations: 4.062 kB / 0.5806 GB, free: 7.836 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002446/0.4904, allocations: 71.67 kB / 0.5806 GB, free: 7.742 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.4908, allocations: 0.6919 MB / 0.5813 GB, free: 7.023 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4908, allocations: 0 / 0.5813 GB, free: 7.023 MB / 394.7 MB Notification: Performance of Templates: time 0.002204/0.493, allocations: 0.4985 MB / 0.5818 GB, free: 6.531 MB / 394.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