Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [: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.003221/0.003221, allocations: 172.5 kB / 7.446 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.19/1.19, allocations: 170.6 MB / 178.4 MB, free: 15.38 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.001806/0.001806, allocations: 119.7 kB / 217.7 MB, free: 8.145 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.336e-06/8.356e-06, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08927/0.0893, allocations: 38.76 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2705/0.3598, allocations: 68.62 MB / 369.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.3601, allocations: 64.91 kB / 369.2 MB, free: 15.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.01724/0.3774, allocations: 5.691 MB / 374.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.3775, allocations: 8 kB / 374.9 MB, free: 11.1 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001137/0.3786, allocations: 0.586 MB / 375.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.3787, allocations: 8.031 kB / 375.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.3788, allocations: 44.28 kB / 375.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.3793, allocations: 267.4 kB / 375.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.3794, allocations: 72.05 kB / 375.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.264e-05/0.3795, allocations: 16 kB / 375.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004261/0.3799, allocations: 177 kB / 376.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.3804, allocations: 280.4 kB / 376.3 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3805, allocations: 0 / 376.3 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.3805, allocations: 7.938 kB / 376.3 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.3805, allocations: 11.94 kB / 376.3 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.3829, allocations: 1.337 MB / 377.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.3832, allocations: 93.7 kB / 377.8 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.3833, allocations: 71.77 kB / 377.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.3834, allocations: 4.078 kB / 377.8 MB, free: 8.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.3836, allocations: 132.8 kB / 378 MB, free: 8.215 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 2.755e-06/0.3836, allocations: 0 / 378 MB, free: 8.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007225/0.3843, allocations: 205.6 kB / 378.2 MB, free: 8.039 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.467e-05/0.3845, allocations: 109.9 kB / 378.3 MB, free: 7.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3847, allocations: 197.3 kB / 378.5 MB, free: 7.738 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.3847, allocations: 25.7 kB / 378.5 MB, free: 7.707 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.3849, allocations: 190 kB / 378.7 MB, free: 7.535 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.337e-05/0.385, allocations: 57.86 kB / 378.7 MB, free: 7.484 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.117e-05/0.385, allocations: 4 kB / 378.7 MB, free: 7.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3852, allocations: 333.9 kB / 379.1 MB, free: 7.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.3853, allocations: 54 kB / 379.1 MB, free: 7.125 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.3855, allocations: 152.8 kB / 379.3 MB, free: 6.973 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.3857, allocations: 68.94 kB / 379.3 MB, free: 6.926 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3857, allocations: 0 / 379.3 MB, free: 6.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004878/0.3862, allocations: 241.7 kB / 379.6 MB, free: 6.727 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3862, allocations: 11.91 kB / 379.6 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3862, allocations: 4.188 kB / 379.6 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003061/0.3865, allocations: 62.75 kB / 379.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.3869, allocations: 91.75 kB / 379.7 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.3885, allocations: 1.251 MB / 381 MB, free: 5.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.3888, allocations: 51.77 kB / 381 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.3889, allocations: 11.19 kB / 381.1 MB, free: 5.191 MB / 266.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0002534/0.3892, allocations: 113.9 kB / 381.2 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.847e-05/0.3892, allocations: 27.7 kB / 381.2 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.357e-05/0.3893, allocations: 27.95 kB / 381.2 MB, free: 5.039 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3893, allocations: 11.91 kB / 381.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3893, allocations: 0 / 381.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.3893, allocations: 3.984 kB / 381.2 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003944/0.3897, allocations: 282.9 kB / 381.5 MB, free: 4.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3897, allocations: 4 kB / 381.5 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003082/0.3901, allocations: 71.39 kB / 381.6 MB, free: 4.684 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.3903, allocations: 52.06 kB / 381.6 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.3903, allocations: 3.688 kB / 381.6 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.3915, allocations: 1.239 MB / 382.9 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.952e-06/0.3915, allocations: 3.906 kB / 382.9 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006528/0.3922, allocations: 303.3 kB / 383.2 MB, free: 3.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.3923, allocations: 115.9 kB / 383.3 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.3924, allocations: 7.938 kB / 383.3 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.3926, allocations: 24.05 kB / 383.3 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.3927, allocations: 23.77 kB / 383.4 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.3928, allocations: 4 kB / 383.4 MB, free: 2.891 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001506/0.3929, allocations: 152 kB / 383.5 MB, free: 2.766 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004039/0.3933, allocations: 87.69 kB / 383.6 MB, free: 2.68 MB / 266.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: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002097/0.3935, allocations: 102.8 kB / 383.7 MB, free: 2.574 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005695/0.3941, allocations: 266.9 kB / 383.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3941, allocations: 0 / 383.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002516/0.3944, allocations: 167.5 kB / 384.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.3947, allocations: 34.89 kB / 384.1 MB, free: 2.176 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.3962, allocations: 459 kB / 384.6 MB, free: 1.734 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005025/0.3967, allocations: 0.7981 MB / 385.4 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3967, allocations: 4 kB / 385.4 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of Templates: time 0.007501/0.4042, allocations: 2.69 MB / 388.1 MB, free: 14.22 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)