Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.005889/0.00589, allocations: 177.3 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.412/1.412, allocations: 170.6 MB / 178.4 MB, free: 15.37 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001774/0.001774, allocations: 119.8 kB / 217.7 MB, free: 8.133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.905e-06, allocations: 4 kB / 261.7 MB, free: 26.62 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07847/0.07849, allocations: 38.76 MB / 300.5 MB, free: 3.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3056/0.3842, allocations: 67.27 MB / 367.8 MB, free: 1.16 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.3845, allocations: 66.47 kB / 367.8 MB, free: 1.129 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.01401/0.3985, allocations: 4.474 MB / 372.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.3985, allocations: 10.52 kB / 372.3 MB, free: 13.34 MB / 266.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.001145/0.3997, allocations: 0.5469 MB / 372.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3998, allocations: 11.97 kB / 372.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.443e-05/0.3998, allocations: 31.62 kB / 372.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.4002, allocations: 253 kB / 373.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.4002, allocations: 4 kB / 373.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.492e-05/0.4003, allocations: 12 kB / 373.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003594/0.4007, allocations: 172.3 kB / 373.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003854/0.4011, allocations: 235.7 kB / 373.6 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.4011, allocations: 0 / 373.6 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.4011, allocations: 3.906 kB / 373.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.4011, allocations: 4 kB / 373.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.4031, allocations: 1.372 MB / 375 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.4045, allocations: 305.8 kB / 375.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.4047, allocations: 96.16 kB / 375.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.4048, allocations: 3.984 kB / 375.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.4048, allocations: 34.56 kB / 375.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.442e-06/0.4048, allocations: 0 / 375.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.002808/0.4076, allocations: 0.537 MB / 375.9 MB, free: 9.941 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.4077, allocations: 55.41 kB / 376 MB, free: 9.875 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.4079, allocations: 183.2 kB / 376.2 MB, free: 9.711 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.4079, allocations: 29.7 kB / 376.2 MB, free: 9.676 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.4081, allocations: 150.8 kB / 376.3 MB, free: 9.535 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.443e-05/0.4081, allocations: 46.3 kB / 376.4 MB, free: 9.496 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.425e-05/0.4082, allocations: 0 / 376.4 MB, free: 9.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4083, allocations: 332 kB / 376.7 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.4084, allocations: 56.5 kB / 376.8 MB, free: 9.141 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.4086, allocations: 89.98 kB / 376.8 MB, free: 9.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/0.4087, allocations: 68 kB / 376.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4087, allocations: 4 kB / 376.9 MB, free: 9.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00274/0.4115, allocations: 0.5647 MB / 377.5 MB, free: 8.508 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.4115, allocations: 7.938 kB / 377.5 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4115, allocations: 0 / 377.5 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003589/0.4119, allocations: 133.7 kB / 377.6 MB, free: 8.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.4121, allocations: 47.53 kB / 377.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005136/0.4173, allocations: 2.126 MB / 379.8 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.4176, allocations: 39.88 kB / 379.8 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.4177, allocations: 7.984 kB / 379.8 MB, free: 6.262 MB / 266.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.0001792/0.4178, allocations: 109.5 kB / 379.9 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.496e-05/0.4179, allocations: 23.72 kB / 380 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.122e-05/0.418, allocations: 19.83 kB / 380 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.418, allocations: 3.938 kB / 380 MB, free: 6.113 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.418, allocations: 4 kB / 380 MB, free: 6.109 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.418, allocations: 0 / 380 MB, free: 6.109 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.4184, allocations: 294.7 kB / 380.3 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4185, allocations: 0 / 380.3 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.4186, allocations: 31.98 kB / 380.3 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000275/0.4189, allocations: 132.7 kB / 380.4 MB, free: 5.699 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.419, allocations: 11.8 kB / 380.5 MB, free: 5.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005195/0.4242, allocations: 2.163 MB / 382.6 MB, free: 3.605 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4242, allocations: 4.094 kB / 382.6 MB, free: 3.602 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002825/0.427, allocations: 0.7159 MB / 383.3 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.4272, allocations: 123 kB / 383.5 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/0.4272, allocations: 0 / 383.5 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/0.4276, allocations: 39.97 kB / 383.5 MB, free: 2.801 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.4276, allocations: 7.984 kB / 383.5 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.4277, allocations: 8 kB / 383.5 MB, free: 2.785 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001383/0.4278, allocations: 144.6 kB / 383.7 MB, free: 2.668 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005081/0.4283, allocations: 79.97 kB / 383.7 MB, free: 2.59 MB / 266.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.0002064/0.4285, allocations: 103.2 kB / 383.8 MB, free: 2.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.4297, allocations: 368.2 kB / 384.2 MB, free: 2.164 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4297, allocations: 3.062 kB / 384.2 MB, free: 2.164 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009857/0.4307, allocations: 305 kB / 384.5 MB, free: 1.883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.431, allocations: 24.03 kB / 384.5 MB, free: 1.863 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.4323, allocations: 389 kB / 384.9 MB, free: 1.492 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005375/0.4328, allocations: 0.7708 MB / 385.7 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.4329, allocations: 3.938 kB / 385.7 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of Templates: time 0.008261/0.4411, allocations: 4.084 MB / 389.8 MB, free: 12.62 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)