Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001473/0.001473, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002228/0.002228, allocations: 194.4 kB / 16.14 MB, free: 6.707 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.507/1.507, allocations: 205.1 MB / 222 MB, free: 4.992 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.001201/0.001201, allocations: 47.92 kB / 278 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.274, allocations: 46.63 MB / 324.7 MB, free: 1.82 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003638/0.2777, allocations: 2.885 MB / 327.6 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.279, allocations: 0.7622 MB / 328.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.2792, allocations: 3.438 kB / 328.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.2794, allocations: 39.09 kB / 328.4 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.2796, allocations: 74.47 kB / 328.4 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.2799, allocations: 90.31 kB / 328.5 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004038/0.2803, allocations: 357.6 kB / 328.9 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.2806, allocations: 97.05 kB / 329 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/0.2808, allocations: 129.5 kB / 329.1 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.281, allocations: 143.6 kB / 329.2 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.708e-05/0.281, allocations: 19.72 kB / 329.3 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.827e-05/0.2811, allocations: 21.62 kB / 329.3 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.704e-05/0.2812, allocations: 64.84 kB / 329.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.2813, allocations: 154.2 kB / 329.5 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.2817, allocations: 341.4 kB / 329.8 MB, free: 13.91 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2817, allocations: 0 / 329.8 MB, free: 13.91 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2817, allocations: 0 / 329.8 MB, free: 13.91 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.2817, allocations: 4.875 kB / 329.8 MB, free: 13.91 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001169/0.2829, allocations: 0.6103 MB / 330.4 MB, free: 13.36 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.283, allocations: 9.156 kB / 330.4 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.521e-05/0.2831, allocations: 34.5 kB / 330.5 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.2835, allocations: 260.7 kB / 330.7 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.2836, allocations: 82.19 kB / 330.8 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.718e-05/0.2836, allocations: 30.62 kB / 330.8 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.2842, allocations: 303.2 kB / 331.1 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2842, allocations: 0 / 331.1 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.156e-05/0.2842, allocations: 10.84 kB / 331.2 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.2842, allocations: 6.75 kB / 331.2 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003791/0.2846, allocations: 190.8 kB / 331.3 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.2865, allocations: 1.141 MB / 332.5 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003581/0.2869, allocations: 153 kB / 332.6 MB, free: 11.61 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.287, allocations: 79.42 kB / 332.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.2871, allocations: 2.375 kB / 332.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003847/0.2875, allocations: 155 kB / 332.9 MB, free: 11.44 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.2875, allocations: 0 / 332.9 MB, free: 11.44 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001175/0.2887, allocations: 386.2 kB / 333.2 MB, free: 11.18 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.2888, allocations: 121.6 kB / 333.4 MB, free: 11.04 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.289, allocations: 223.5 kB / 333.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.2891, allocations: 31.67 kB / 333.6 MB, free: 10.84 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.2892, allocations: 175.5 kB / 333.8 MB, free: 10.68 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.449e-05/0.2893, allocations: 67.06 kB / 333.8 MB, free: 10.62 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.572e-05/0.2894, allocations: 59.36 kB / 333.9 MB, free: 10.58 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2895, allocations: 340.6 kB / 334.2 MB, free: 10.25 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.2897, allocations: 66.22 kB / 334.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.2899, allocations: 149.6 kB / 334.5 MB, free: 10.05 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.2901, allocations: 184.9 kB / 334.6 MB, free: 9.848 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2901, allocations: 0 / 334.6 MB, free: 9.848 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004288/0.2906, allocations: 279.7 kB / 334.9 MB, free: 9.566 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2906, allocations: 4 kB / 334.9 MB, free: 9.562 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.2906, allocations: 4 kB / 334.9 MB, free: 9.559 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002985/0.2909, allocations: 53.03 kB / 335 MB, free: 9.504 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002422/0.2912, allocations: 55.91 kB / 335 MB, free: 9.449 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.2927, allocations: 1.408 MB / 336.4 MB, free: 7.91 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.2929, allocations: 31.83 kB / 336.5 MB, free: 7.879 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.293, allocations: 8 kB / 336.5 MB, free: 7.871 MB / 270.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.0001832/0.2932, allocations: 149.7 kB / 336.6 MB, free: 7.715 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.18e-05/0.2932, allocations: 27.75 kB / 336.6 MB, free: 7.688 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.775e-05/0.2933, allocations: 30.17 kB / 336.7 MB, free: 7.66 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.2933, allocations: 4 kB / 336.7 MB, free: 7.656 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2933, allocations: 3.938 kB / 336.7 MB, free: 7.652 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.2933, allocations: 0 / 336.7 MB, free: 7.652 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003635/0.2937, allocations: 321.3 kB / 337 MB, free: 7.289 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2937, allocations: 0 / 337 MB, free: 7.289 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.2938, allocations: 39.92 kB / 337 MB, free: 7.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.294, allocations: 48.81 kB / 337.1 MB, free: 7.199 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.2941, allocations: 8 kB / 337.1 MB, free: 7.191 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/0.2951, allocations: 1.323 MB / 338.4 MB, free: 5.73 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2952, allocations: 0 / 338.4 MB, free: 5.73 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/0.2958, allocations: 326.2 kB / 338.7 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.2959, allocations: 116.9 kB / 338.8 MB, free: 5.258 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.2959, allocations: 8 kB / 338.8 MB, free: 5.25 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2961, allocations: 11.98 kB / 338.9 MB, free: 5.238 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.457e-05/0.2962, allocations: 31.94 kB / 338.9 MB, free: 5.207 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.2962, allocations: 11.94 kB / 338.9 MB, free: 5.195 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001469/0.2964, allocations: 160.5 kB / 339.1 MB, free: 5.039 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2964, allocations: 0 / 339.1 MB, free: 5.039 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003876/0.2968, allocations: 87.75 kB / 339.1 MB, free: 4.953 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: 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.0001365/0.2969, allocations: 111.2 kB / 339.3 MB, free: 4.836 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005534/0.2975, allocations: 278.5 kB / 339.5 MB, free: 4.551 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2975, allocations: 0 / 339.5 MB, free: 4.551 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.2978, allocations: 190.6 kB / 339.7 MB, free: 4.352 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.2981, allocations: 44.78 kB / 339.8 MB, free: 4.305 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.2997, allocations: 0.7557 MB / 340.5 MB, free: 3.523 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.3, allocations: 0.756 MB / 341.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.3001, allocations: 26.27 kB / 341.3 MB, free: 2.715 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.528e-05/0.3002, allocations: 19.44 kB / 341.3 MB, free: 2.699 MB / 270.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3002, allocations: 4 kB / 341.3 MB, free: 2.695 MB / 270.1 MB Notification: Performance of Templates: time 0.005935/0.3061, allocations: 2.782 MB / 344.1 MB, free: 15.92 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)