Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter") translateModel(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter") [: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.3+maint.om/package.mo): time 0.002212/0.002212, allocations: 179.7 kB / 7.452 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.106/1.106, allocations: 205.2 MB / 213.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008308/0.0008308, allocations: 93.73 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05361/0.05361, allocations: 14 MB / 323 MB, free: 15.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.853e-06/6.883e-06, allocations: 4 kB / 381.3 MB, free: 73.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06953/0.06956, allocations: 51.1 MB / 432.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.271, allocations: 79.15 MB / 0.4995 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001688/0.2712, allocations: 73.11 kB / 0.4996 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01504/0.2863, allocations: 5.886 MB / 0.5054 GB, free: 10.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.2863, allocations: 8.75 kB / 0.5054 GB, free: 10.64 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0006397/0.287, allocations: 0.5804 MB / 0.5059 GB, free: 10.13 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.936e-05/0.287, allocations: 8.25 kB / 0.5059 GB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.842e-05/0.2871, allocations: 32.12 kB / 0.506 GB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.2875, allocations: 310.1 kB / 0.5063 GB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.2875, allocations: 5.5 kB / 0.5063 GB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.2876, allocations: 15 kB / 0.5063 GB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002773/0.2878, allocations: 144.4 kB / 0.5064 GB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.2882, allocations: 234.4 kB / 0.5067 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2882, allocations: 1.188 kB / 0.5067 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.2882, allocations: 5.156 kB / 0.5067 GB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2882, allocations: 4.562 kB / 0.5067 GB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.2893, allocations: 1.04 MB / 0.5077 GB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.2896, allocations: 180 kB / 0.5079 GB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.2898, allocations: 113.9 kB / 0.508 GB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.2898, allocations: 10.69 kB / 0.508 GB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001905/0.29, allocations: 199.2 kB / 0.5082 GB, free: 8.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.29, allocations: 1.375 kB / 0.5082 GB, free: 8.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004134/0.2904, allocations: 237.9 kB / 0.5084 GB, free: 8.609 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.2905, allocations: 158.7 kB / 0.5085 GB, free: 8.422 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.2907, allocations: 217.8 kB / 0.5087 GB, free: 8.312 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.2907, allocations: 27.17 kB / 0.5088 GB, free: 8.281 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.2908, allocations: 137.8 kB / 0.5089 GB, free: 8.164 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.2908, allocations: 63.77 kB / 0.509 GB, free: 8.117 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.552e-05/0.2908, allocations: 0.9688 kB / 0.509 GB, free: 8.117 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.2909, allocations: 337 kB / 0.5093 GB, free: 7.797 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.291, allocations: 87.31 kB / 0.5094 GB, free: 7.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.2912, allocations: 158.1 kB / 0.5095 GB, free: 7.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.2913, allocations: 89.23 kB / 0.5096 GB, free: 7.676 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2913, allocations: 4 kB / 0.5096 GB, free: 7.672 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000947/0.2923, allocations: 472.5 kB / 0.5101 GB, free: 7.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.188e-05/0.2924, allocations: 0.5232 MB / 0.5106 GB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2924, allocations: 2.219 kB / 0.5106 GB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002196/0.2926, allocations: 87.28 kB / 0.5107 GB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.2928, allocations: 39.47 kB / 0.5107 GB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.2938, allocations: 1.33 MB / 0.512 GB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.2941, allocations: 48.89 kB / 0.512 GB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.2941, allocations: 16.08 kB / 0.5121 GB, free: 5.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.314e-06/0.2942, allocations: 4.156 kB / 0.5121 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003043/0.2945, allocations: 182.1 kB / 0.5122 GB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.2945, allocations: 2.156 kB / 0.5122 GB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.498e-06/0.2945, allocations: 6.094 kB / 0.5122 GB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.2947, allocations: 50.47 kB / 0.5123 GB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.2947, allocations: 3.156 kB / 0.5123 GB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.2949, allocations: 21.39 kB / 0.5123 GB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.2949, allocations: 16.31 kB / 0.5123 GB, free: 5.727 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled,firstOrderNegativeGain.I.local_reset,firstOrderPositiveGain.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.295, allocations: 147.7 kB / 0.5125 GB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.295, allocations: 34 kB / 0.5125 GB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.816e-05/0.2951, allocations: 28.2 kB / 0.5125 GB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2951, allocations: 1.562 kB / 0.5125 GB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2951, allocations: 4.938 kB / 0.5125 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2951, allocations: 1.438 kB / 0.5125 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.2954, allocations: 301.7 kB / 0.5128 GB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2954, allocations: 0 / 0.5128 GB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002618/0.2956, allocations: 61.7 kB / 0.5129 GB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.2957, allocations: 1.281 kB / 0.5129 GB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.2957, allocations: 4.219 kB / 0.5129 GB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2957, allocations: 1.469 kB / 0.5129 GB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2957, allocations: 0 / 0.5129 GB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005276/0.2962, allocations: 409.5 kB / 0.5133 GB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.2963, allocations: 107.4 kB / 0.5134 GB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.632e-05/0.2963, allocations: 8.375 kB / 0.5134 GB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.2966, allocations: 39.78 kB / 0.5134 GB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.153e-05/0.2967, allocations: 23.86 kB / 0.5135 GB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.2967, allocations: 10.59 kB / 0.5135 GB, free: 5.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001226/0.2968, allocations: 178.2 kB / 0.5136 GB, free: 4.934 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004218/0.2972, allocations: 98.47 kB / 0.5137 GB, free: 4.914 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (firstOrderPositiveGain.I.y,firstOrderNegativeGain.I.y) * Number of discrete variables: 6 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 6 (inputSignal.nextEvent,inputSignal.last,inputSignal.nextEventScaled,inputSignal.b,inputSignal.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.0001738/0.2974, allocations: 158.8 kB / 0.5139 GB, free: 4.789 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000927/0.2984, allocations: 0.4991 MB / 0.5144 GB, free: 4.656 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2984, allocations: 1.375 kB / 0.5144 GB, free: 4.656 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.2985, allocations: 158.2 kB / 0.5145 GB, free: 4.617 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.2989, allocations: 44.73 kB / 0.5146 GB, free: 4.605 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007167/0.2996, allocations: 367.8 kB / 0.5149 GB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.2998, allocations: 0.7912 MB / 0.5157 GB, free: 3.672 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2998, allocations: 0 / 0.5157 GB, free: 3.672 MB / 330.7 MB Notification: Performance of Templates: time 0.009379/0.3092, allocations: 4.714 MB / 0.5203 GB, free: 1.348 MB / 330.7 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.sim & ./PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe 2>&1)