Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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) 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(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection") [: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.001452/0.001452, allocations: 195.2 kB / 8.137 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.287/1.287, allocations: 194.2 MB / 202.8 MB, free: 8.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001834/0.001834, allocations: 118.2 kB / 247.7 MB, free: 6.402 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.873e-06/6.893e-06, allocations: 0 / 297.6 MB, free: 8.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08123/0.08125, allocations: 44.49 MB / 342.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.222/0.3033, allocations: 72.38 MB / 414.4 MB, free: 22.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000168/0.3035, allocations: 71.16 kB / 414.5 MB, free: 22.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01282/0.3163, allocations: 4.403 MB / 418.9 MB, free: 19.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.3164, allocations: 8 kB / 418.9 MB, free: 19.29 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0008106/0.3172, allocations: 0.5435 MB / 419.5 MB, free: 18.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.3172, allocations: 12.03 kB / 419.5 MB, free: 18.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.549e-05/0.3173, allocations: 27.62 kB / 419.5 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.3175, allocations: 252.4 kB / 419.7 MB, free: 18.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.3176, allocations: 8 kB / 419.8 MB, free: 18.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/0.3176, allocations: 16 kB / 419.8 MB, free: 18.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003111/0.3179, allocations: 163.2 kB / 419.9 MB, free: 18.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.3183, allocations: 240 kB / 420.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3183, allocations: 0 / 420.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.3183, allocations: 2.516 kB / 420.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.3183, allocations: 8 kB / 420.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.3198, allocations: 1.365 MB / 421.5 MB, free: 16.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.3212, allocations: 312.1 kB / 421.8 MB, free: 16.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.3214, allocations: 96.5 kB / 421.9 MB, free: 16.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.3214, allocations: 4 kB / 421.9 MB, free: 16.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.3214, allocations: 33.81 kB / 422 MB, free: 16.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.683e-06/0.3214, allocations: 4.484 kB / 422 MB, free: 16.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.002674/0.3241, allocations: 0.5204 MB / 422.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.407e-05/0.3241, allocations: 55.41 kB / 422.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.3243, allocations: 180.3 kB / 422.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.3243, allocations: 33.7 kB / 422.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.911e-05/0.3244, allocations: 146.8 kB / 422.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.3244, allocations: 53.84 kB / 423 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.3244, allocations: 0 / 423 MB, free: 15.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.055e-05/0.3245, allocations: 326.5 kB / 423.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3246, allocations: 60.92 kB / 423.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.3247, allocations: 90.09 kB / 423.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.3248, allocations: 69.48 kB / 423.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3248, allocations: 4 kB / 423.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00264/0.3275, allocations: 0.565 MB / 424.1 MB, free: 14.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.3275, allocations: 4 kB / 424.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3275, allocations: 3.984 kB / 424.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002904/0.3278, allocations: 135.3 kB / 424.2 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.328, allocations: 39.97 kB / 424.2 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004741/0.3327, allocations: 2.123 MB / 426.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.3331, allocations: 45.55 kB / 426.4 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.3331, allocations: 7.625 kB / 426.4 MB, free: 12.27 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zDiode.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.3333, allocations: 116.8 kB / 426.5 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.3333, allocations: 23.72 kB / 426.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.074e-05/0.3334, allocations: 18.59 kB / 426.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3334, allocations: 0 / 426.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.3334, allocations: 4 kB / 426.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.3334, allocations: 3.984 kB / 426.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.3337, allocations: 280.3 kB / 426.9 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3337, allocations: 4 kB / 426.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.3339, allocations: 35.53 kB / 426.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002824/0.3342, allocations: 133.1 kB / 427 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.3342, allocations: 8 kB / 427 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004959/0.3392, allocations: 2.181 MB / 429.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3392, allocations: 0 / 429.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002791/0.342, allocations: 0.7111 MB / 429.9 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.3421, allocations: 100.1 kB / 430 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.082e-05/0.3421, allocations: 3.984 kB / 430 MB, free: 8.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.3424, allocations: 40.05 kB / 430.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.367e-05/0.3425, allocations: 3.984 kB / 430.1 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.3425, allocations: 9.422 kB / 430.1 MB, free: 8.812 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.304e-05/0.3426, allocations: 140.8 kB / 430.2 MB, free: 8.699 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004511/0.3431, allocations: 83.77 kB / 430.3 MB, free: 8.617 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001189/0.3432, allocations: 107.3 kB / 430.4 MB, free: 8.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.3443, allocations: 368.3 kB / 430.8 MB, free: 8.188 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3443, allocations: 1.406 kB / 430.8 MB, free: 8.188 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009384/0.3452, allocations: 305.6 kB / 431.1 MB, free: 7.906 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.3455, allocations: 23.84 kB / 431.1 MB, free: 7.891 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009817/0.3465, allocations: 388.5 kB / 431.5 MB, free: 7.523 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.3467, allocations: 0.7666 MB / 432.2 MB, free: 6.727 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3467, allocations: 0 / 432.2 MB, free: 6.727 MB / 314.7 MB Notification: Performance of Templates: time 0.006196/0.3529, allocations: 4.087 MB / 436.3 MB, free: 2.688 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)