Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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 3.2.2+maint.om/package.mo): time 0.001758/0.001758, allocations: 191 kB / 7.466 MB, free: 484 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.312/1.312, allocations: 194.2 MB / 202.1 MB, free: 12.98 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.1055/0.1055, allocations: 115.8 kB / 247.1 MB, free: 6.371 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1661/0.1661, allocations: 39.94 MB / 331.9 MB, free: 9.109 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.863e-06, allocations: 0 / 392.8 MB, free: 79.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 54.87 MB / 447.6 MB, free: 24.86 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2863/0.3897, allocations: 79.38 MB / 0.5147 GB, free: 11.25 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001745/0.3899, allocations: 57 kB / 0.5147 GB, free: 11.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.002333/0.3923, allocations: 0.6076 MB / 0.5153 GB, free: 11.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.3923, allocations: 0 / 0.5153 GB, free: 11.22 MB / 350.1 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.0002698/0.3926, allocations: 348 kB / 0.5157 GB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3926, allocations: 7.594 kB / 0.5157 GB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.3927, allocations: 5.078 kB / 0.5157 GB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.283e-05/0.3928, allocations: 163.6 kB / 0.5158 GB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3928, allocations: 7.828 kB / 0.5158 GB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.3928, allocations: 0 / 0.5158 GB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.366e-05/0.3929, allocations: 15.12 kB / 0.5158 GB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.389e-05/0.393, allocations: 53.39 kB / 0.5159 GB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.393, allocations: 0 / 0.5159 GB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.393, allocations: 4 kB / 0.5159 GB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.393, allocations: 5.453 kB / 0.5159 GB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003301/0.3933, allocations: 240.7 kB / 0.5161 GB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.08e-05/0.3934, allocations: 26.14 kB / 0.5162 GB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.576e-05/0.3934, allocations: 15.95 kB / 0.5162 GB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.3935, allocations: 3.828 kB / 0.5162 GB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.307e-05/0.3935, allocations: 30.56 kB / 0.5162 GB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3935, allocations: 0 / 0.5162 GB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001354/0.3936, allocations: 47.88 kB / 0.5163 GB, free: 10.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.3937, allocations: 81.05 kB / 0.5163 GB, free: 10.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.208e-05/0.3937, allocations: 101.9 kB / 0.5164 GB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.3937, allocations: 29.73 kB / 0.5165 GB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.3938, allocations: 88.86 kB / 0.5165 GB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.3938, allocations: 9.297 kB / 0.5165 GB, free: 9.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.3938, allocations: 0 / 0.5165 GB, free: 9.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.304e-05/0.3938, allocations: 315.5 kB / 0.5168 GB, free: 9.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.693e-05/0.3939, allocations: 3.844 kB / 0.5169 GB, free: 9.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.319e-05/0.3939, allocations: 24.53 kB / 0.5169 GB, free: 9.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.865e-05/0.3939, allocations: 2.188 kB / 0.5169 GB, free: 9.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3939, allocations: 7.812 kB / 0.5169 GB, free: 9.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.911e-05/0.394, allocations: 49.81 kB / 0.5169 GB, free: 9.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.394, allocations: 3.688 kB / 0.5169 GB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.394, allocations: 0 / 0.5169 GB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.394, allocations: 3.938 kB / 0.5169 GB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.63e-05/0.3941, allocations: 13.2 kB / 0.517 GB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.3941, allocations: 0 / 0.517 GB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.433e-05/0.3942, allocations: 17.2 kB / 0.517 GB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.3942, allocations: 3.938 kB / 0.517 GB, free: 9.562 MB / 350.1 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 5.142e-05/0.3943, allocations: 110.1 kB / 0.5171 GB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.3943, allocations: 0 / 0.5171 GB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.3943, allocations: 10.53 kB / 0.5171 GB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3944, allocations: 1.688 kB / 0.5171 GB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3944, allocations: 0 / 0.5171 GB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3944, allocations: 3.906 kB / 0.5171 GB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000109/0.3945, allocations: 141.9 kB / 0.5172 GB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3945, allocations: 0 / 0.5172 GB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.95e-05/0.3945, allocations: 5.422 kB / 0.5172 GB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.3945, allocations: 5.391 kB / 0.5172 GB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.3946, allocations: 0 / 0.5172 GB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3946, allocations: 0 / 0.5172 GB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3946, allocations: 0 / 0.5172 GB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.134e-05/0.3947, allocations: 149.2 kB / 0.5174 GB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.912e-05/0.3947, allocations: 81.16 kB / 0.5175 GB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.3947, allocations: 0 / 0.5175 GB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.241e-05/0.3948, allocations: 15.45 kB / 0.5175 GB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.3949, allocations: 12.42 kB / 0.5175 GB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-06/0.3949, allocations: 0 / 0.5175 GB, free: 9.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.393e-05/0.3949, allocations: 87.97 kB / 0.5176 GB, free: 8.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002059/0.3951, allocations: 7.656 kB / 0.5176 GB, free: 8.961 MB / 350.1 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 8.26e-05/0.3952, allocations: 90.75 kB / 0.5177 GB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.7e-05/0.3953, allocations: 19.03 kB / 0.5177 GB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.3953, allocations: 0 / 0.5177 GB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.079e-05/0.3953, allocations: 7.891 kB / 0.5177 GB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.3955, allocations: 0 / 0.5177 GB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002186/0.3957, allocations: 74.03 kB / 0.5178 GB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.3958, allocations: 0.6972 MB / 0.5184 GB, free: 8.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3958, allocations: 0 / 0.5184 GB, free: 8.09 MB / 350.1 MB Notification: Performance of Templates: time 0.002341/0.3982, allocations: 0.5016 MB / 0.5189 GB, free: 8.051 MB / 350.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe 2>&1)