Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") [: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.001151/0.001151, allocations: 188.1 kB / 8.138 MB, free: 2.195 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.257/1.257, allocations: 194.2 MB / 202.8 MB, free: 8.656 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.001791/0.001791, allocations: 115.5 kB / 247.7 MB, free: 6.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.482e-06/6.502e-06, allocations: 0 / 297.6 MB, free: 7.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07863/0.07865, allocations: 44.49 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.2824, allocations: 73.02 MB / 415.1 MB, free: 22.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.2827, allocations: 66.73 kB / 415.1 MB, free: 21.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01299/0.2957, allocations: 5.097 MB / 420.2 MB, free: 17.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.2957, allocations: 8 kB / 420.2 MB, free: 17.82 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0006588/0.2964, allocations: 0.5547 MB / 420.8 MB, free: 17.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2964, allocations: 12.03 kB / 420.8 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.2965, allocations: 31.62 kB / 420.8 MB, free: 17.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.2968, allocations: 248.2 kB / 421.1 MB, free: 16.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/0.2968, allocations: 64.06 kB / 421.2 MB, free: 16.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.2969, allocations: 16 kB / 421.2 MB, free: 16.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000293/0.2972, allocations: 170.4 kB / 421.3 MB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.2975, allocations: 247 kB / 421.6 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.2975, allocations: 0 / 421.6 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.769e-05/0.2976, allocations: 4 kB / 421.6 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.2976, allocations: 11.89 kB / 421.6 MB, free: 16.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.2989, allocations: 1.072 MB / 422.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.2991, allocations: 92.84 kB / 422.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.2992, allocations: 75.95 kB / 422.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.2992, allocations: 3.938 kB / 422.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.2994, allocations: 142.7 kB / 423 MB, free: 15.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.2994, allocations: 0 / 423 MB, free: 15.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005597/0.3, allocations: 206.5 kB / 423.2 MB, free: 15.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.3, allocations: 106.8 kB / 423.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.3002, allocations: 162.7 kB / 423.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.3002, allocations: 25.7 kB / 423.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.464e-05/0.3003, allocations: 173.9 kB / 423.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.3003, allocations: 61.91 kB / 423.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.136e-05/0.3003, allocations: 0 / 423.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.166e-05/0.3004, allocations: 333 kB / 424 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-05/0.3005, allocations: 53.25 kB / 424.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.3006, allocations: 123.1 kB / 424.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.3007, allocations: 61.81 kB / 424.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3007, allocations: 0 / 424.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000334/0.3011, allocations: 232.8 kB / 424.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.3011, allocations: 4.75 kB / 424.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3011, allocations: 8.156 kB / 424.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/0.3014, allocations: 50.12 kB / 424.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.3016, allocations: 53.83 kB / 424.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008106/0.3024, allocations: 1.255 MB / 425.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.3026, allocations: 31.73 kB / 425.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.3027, allocations: 11.94 kB / 425.9 MB, free: 12.43 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.3028, allocations: 124.8 kB / 426 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.3028, allocations: 23.56 kB / 426 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.216e-05/0.3029, allocations: 27.09 kB / 426.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.3029, allocations: 0 / 426.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.3029, allocations: 0.875 kB / 426.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3029, allocations: 3.984 kB / 426.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.3031, allocations: 268.7 kB / 426.3 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3031, allocations: 0 / 426.3 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.3033, allocations: 35.92 kB / 426.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000176/0.3035, allocations: 52.5 kB / 426.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3035, allocations: 9.25 kB / 426.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000703/0.3042, allocations: 1.255 MB / 427.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3042, allocations: 0 / 427.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005144/0.3048, allocations: 305 kB / 428 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.3049, allocations: 108 kB / 428.1 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.082e-05/0.3049, allocations: 4.062 kB / 428.1 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.3051, allocations: 19.98 kB / 428.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.972e-05/0.3052, allocations: 23.83 kB / 428.1 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3052, allocations: 4 kB / 428.1 MB, free: 10.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-05/0.3053, allocations: 137.6 kB / 428.3 MB, free: 10.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005688/0.3058, allocations: 79.69 kB / 428.3 MB, free: 9.984 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001154/0.306, allocations: 103.2 kB / 428.4 MB, free: 9.875 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003885/0.3064, allocations: 243.6 kB / 428.7 MB, free: 9.672 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3064, allocations: 4 kB / 428.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.3066, allocations: 171 kB / 428.9 MB, free: 9.516 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.3068, allocations: 26.28 kB / 428.9 MB, free: 9.496 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.308, allocations: 0.4974 MB / 429.4 MB, free: 9.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.3082, allocations: 0.7859 MB / 430.2 MB, free: 8.207 MB / 314.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3082, allocations: 0 / 430.2 MB, free: 8.207 MB / 314.7 MB Notification: Performance of Templates: time 0.005108/0.3133, allocations: 2.596 MB / 432.8 MB, free: 5.672 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)