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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001865/0.001866, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.622/1.622, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.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.001458/0.001459, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3188, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004579/0.3234, allocations: 3.106 MB / 328.4 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3249, allocations: 0.7831 MB / 329.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.3251, allocations: 10.34 kB / 329.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.3253, allocations: 53.06 kB / 329.3 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.3255, allocations: 110.3 kB / 329.4 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.326, allocations: 106.5 kB / 329.5 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004772/0.3264, allocations: 419.9 kB / 329.9 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.3268, allocations: 133.4 kB / 330 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.327, allocations: 162 kB / 330.2 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.3272, allocations: 173.2 kB / 330.3 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.488e-05/0.3273, allocations: 34.31 kB / 330.4 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.047e-05/0.3274, allocations: 39.78 kB / 330.4 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.3275, allocations: 81.39 kB / 330.5 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.3278, allocations: 184.1 kB / 330.7 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.3282, allocations: 423.7 kB / 331.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3282, allocations: 1.156 kB / 331.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.031e-06/0.3282, allocations: 0 / 331.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.3283, allocations: 0 / 331.1 MB, free: 13.45 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001121/0.3294, allocations: 0.6429 MB / 331.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.3294, allocations: 9.75 kB / 331.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.952e-05/0.3295, allocations: 45.39 kB / 331.8 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.3299, allocations: 277.2 kB / 332.1 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-05/0.33, allocations: 79.86 kB / 332.1 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.3301, allocations: 33.19 kB / 332.2 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005964/0.3307, allocations: 342.9 kB / 332.5 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3307, allocations: 5.219 kB / 332.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.317e-05/0.3307, allocations: 10.72 kB / 332.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.3308, allocations: 8.25 kB / 332.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004824/0.3313, allocations: 221.9 kB / 332.7 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.3333, allocations: 1.365 MB / 334.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.3337, allocations: 162.6 kB / 334.3 MB, free: 10.72 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.3339, allocations: 88.77 kB / 334.3 MB, free: 10.63 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.3339, allocations: 0 / 334.3 MB, free: 10.63 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000351/0.3342, allocations: 161.8 kB / 334.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.3343, allocations: 0 / 334.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001149/0.3354, allocations: 407.1 kB / 334.9 MB, free: 10.03 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.039e-05/0.3355, allocations: 114.7 kB / 335 MB, free: 9.891 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.3358, allocations: 262.6 kB / 335.3 MB, free: 9.621 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.3358, allocations: 29.7 kB / 335.3 MB, free: 9.586 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.3359, allocations: 203.9 kB / 335.5 MB, free: 9.383 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.336, allocations: 78.98 kB / 335.6 MB, free: 9.305 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.757e-05/0.3361, allocations: 61.97 kB / 335.6 MB, free: 9.238 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3363, allocations: 338.8 kB / 336 MB, free: 8.898 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.3364, allocations: 72.62 kB / 336 MB, free: 8.828 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.3367, allocations: 189.5 kB / 336.2 MB, free: 8.602 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.337, allocations: 235.5 kB / 336.5 MB, free: 8.336 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.337, allocations: 0 / 336.5 MB, free: 8.336 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006741/0.3377, allocations: 343.4 kB / 336.8 MB, free: 7.992 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.3377, allocations: 4 kB / 336.8 MB, free: 7.988 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3377, allocations: 4 kB / 336.8 MB, free: 7.984 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002766/0.338, allocations: 61.16 kB / 336.9 MB, free: 7.922 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.3383, allocations: 59.91 kB / 336.9 MB, free: 7.863 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.3397, allocations: 1.572 MB / 338.5 MB, free: 6.152 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.34, allocations: 47.77 kB / 338.5 MB, free: 6.105 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/0.3401, allocations: 19.98 kB / 338.6 MB, free: 6.086 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001715/0.3402, allocations: 150.3 kB / 338.7 MB, free: 5.93 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.883e-05/0.3403, allocations: 23.72 kB / 338.7 MB, free: 5.906 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.3403, allocations: 38.11 kB / 338.8 MB, free: 5.875 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3404, allocations: 0 / 338.8 MB, free: 5.875 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.3404, allocations: 4 kB / 338.8 MB, free: 5.871 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3404, allocations: 0 / 338.8 MB, free: 5.871 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003899/0.3408, allocations: 341.3 kB / 339.1 MB, free: 5.488 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3408, allocations: 0 / 339.1 MB, free: 5.488 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.341, allocations: 35.98 kB / 339.1 MB, free: 5.453 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001874/0.3412, allocations: 60.69 kB / 339.2 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.3412, allocations: 4 kB / 339.2 MB, free: 5.387 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.3424, allocations: 1.414 MB / 340.6 MB, free: 3.828 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3424, allocations: 0 / 340.6 MB, free: 3.828 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.3431, allocations: 354.3 kB / 341 MB, free: 3.461 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.3432, allocations: 120.7 kB / 341.1 MB, free: 3.324 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.3433, allocations: 4 kB / 341.1 MB, free: 3.32 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.3435, allocations: 15.98 kB / 341.1 MB, free: 3.305 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.573e-05/0.3436, allocations: 35.89 kB / 341.1 MB, free: 3.27 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.3436, allocations: 4 kB / 341.1 MB, free: 3.266 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.3438, allocations: 190 kB / 341.3 MB, free: 3.082 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3438, allocations: 0 / 341.3 MB, free: 3.082 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.3442, allocations: 83.84 kB / 341.4 MB, free: 3 MB / 270.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001848/0.3444, allocations: 111.4 kB / 341.5 MB, free: 2.883 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006967/0.3451, allocations: 322.9 kB / 341.8 MB, free: 2.555 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.3451, allocations: 8.125 kB / 341.8 MB, free: 2.547 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003054/0.3454, allocations: 210.4 kB / 342 MB, free: 2.328 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.3457, allocations: 35.52 kB / 342.1 MB, free: 2.297 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.3473, allocations: 0.6812 MB / 342.8 MB, free: 1.59 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006006/0.3479, allocations: 0.7753 MB / 343.5 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.348, allocations: 22.3 kB / 343.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.915e-05/0.3481, allocations: 27.42 kB / 343.6 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of SimCode: time 2e-07/0.3481, allocations: 0 / 343.6 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of Templates: time 0.007819/0.3559, allocations: 3.087 MB / 346.7 MB, free: 13.65 MB / 286.1 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)