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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 108.8 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002363/0.002363, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 47.94 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1333, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005243/0.1386, allocations: 2.827 MB / 377.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.1403, allocations: 0.7795 MB / 378.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.1405, allocations: 8 kB / 378.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.1407, allocations: 51.5 kB / 378.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.141, allocations: 87.19 kB / 378.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.1414, allocations: 99.75 kB / 378.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.1419, allocations: 374.3 kB / 378.7 MB, free: 344 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002888/0.1422, allocations: 123.2 kB / 378.8 MB, free: 216 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.1424, allocations: 135.6 kB / 379 MB, free: 80 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2171/0.3595, allocations: 148.9 kB / 379.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.3597, allocations: 30.97 kB / 379.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.299e-05/0.3598, allocations: 29.59 kB / 379.2 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.763e-05/0.3598, allocations: 75.34 kB / 379.2 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.36, allocations: 160.2 kB / 379.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.3605, allocations: 368.3 kB / 379.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3605, allocations: 2.125 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3605, allocations: 1.938 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3606, allocations: 0 / 379.8 MB, free: 10.54 MB / 318.1 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.0008583/0.3614, allocations: 0.6128 MB / 380.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3615, allocations: 9.719 kB / 380.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.952e-05/0.3615, allocations: 35.81 kB / 380.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.3619, allocations: 274.3 kB / 380.7 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.106e-05/0.362, allocations: 73.41 kB / 380.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.362, allocations: 29.56 kB / 380.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.3625, allocations: 302.6 kB / 381.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3625, allocations: 5.312 kB / 381.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.3625, allocations: 11.19 kB / 381.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3625, allocations: 6.875 kB / 381.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/0.3628, allocations: 189.9 kB / 381.3 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.3644, allocations: 1.122 MB / 382.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.3648, allocations: 161.4 kB / 382.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.3649, allocations: 76.48 kB / 382.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.365, allocations: 5.984 kB / 382.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.3652, allocations: 154.3 kB / 382.8 MB, free: 8.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.3652, allocations: 2.469 kB / 382.8 MB, free: 8.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001033/0.3663, allocations: 386.2 kB / 383.2 MB, free: 8.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.3663, allocations: 107.3 kB / 383.3 MB, free: 8.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.3665, allocations: 233.2 kB / 383.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.3666, allocations: 32.88 kB / 383.5 MB, free: 8.508 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.444e-05/0.3666, allocations: 180 kB / 383.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.495e-05/0.3667, allocations: 70.8 kB / 383.8 MB, free: 8.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.589e-05/0.3668, allocations: 63.36 kB / 383.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.091e-05/0.3669, allocations: 340.3 kB / 384.2 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.367, allocations: 62.02 kB / 384.2 MB, free: 7.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.3671, allocations: 148.8 kB / 384.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.3674, allocations: 189.2 kB / 384.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3674, allocations: 1.281 kB / 384.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003958/0.3678, allocations: 270 kB / 384.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3678, allocations: 10.55 kB / 384.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3678, allocations: 2.094 kB / 384.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.3681, allocations: 56.81 kB / 384.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.3683, allocations: 48.73 kB / 384.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/0.3693, allocations: 1.575 MB / 386.5 MB, free: 5.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.3696, allocations: 35.38 kB / 386.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.3696, allocations: 12.86 kB / 386.6 MB, free: 5.938 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.3698, allocations: 154.4 kB / 386.7 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.3698, allocations: 24.33 kB / 386.7 MB, free: 5.785 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.816e-05/0.3699, allocations: 32.22 kB / 386.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.3699, allocations: 2.391 kB / 386.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3699, allocations: 1.938 kB / 386.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3699, allocations: 1.734 kB / 386.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003086/0.3702, allocations: 320.7 kB / 387.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3702, allocations: 3.938 kB / 387.1 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.3704, allocations: 34.84 kB / 387.1 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001842/0.3706, allocations: 54.31 kB / 387.2 MB, free: 5.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.3706, allocations: 7.516 kB / 387.2 MB, free: 5.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008527/0.3715, allocations: 1.418 MB / 388.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3715, allocations: 0 / 388.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006011/0.3721, allocations: 333.3 kB / 388.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.524e-05/0.3722, allocations: 112.7 kB / 389 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.3722, allocations: 10.89 kB / 389.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.3724, allocations: 22.62 kB / 389.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.836e-05/0.3725, allocations: 28.36 kB / 389.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.3725, allocations: 5.656 kB / 389.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001401/0.3727, allocations: 161.3 kB / 389.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3727, allocations: 4 kB / 389.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.3731, allocations: 83.38 kB / 389.4 MB, free: 3.633 MB / 318.1 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.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001235/0.3732, allocations: 106.6 kB / 389.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005186/0.3737, allocations: 290.5 kB / 389.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3737, allocations: 1.062 kB / 389.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.374, allocations: 195.4 kB / 389.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.3743, allocations: 35.41 kB / 390 MB, free: 3.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.3758, allocations: 0.6553 MB / 390.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000201/0.376, allocations: 0.7586 MB / 391.4 MB, free: 2.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.3761, allocations: 23.88 kB / 391.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.175e-05/0.3762, allocations: 21.17 kB / 391.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3762, allocations: 0 / 391.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of Templates: time 0.008306/0.3845, allocations: 3.105 MB / 394.5 MB, free: 1.914 MB / 318.1 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)