Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001916/0.001916, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002656/0.002656, allocations: 194.2 kB / 16.13 MB, free: 6.668 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.545/1.545, allocations: 205.1 MB / 222 MB, free: 4.723 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.001098/0.001098, allocations: 55.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2748, allocations: 46.62 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003873/0.2787, allocations: 2.874 MB / 327.6 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2804, allocations: 0.7638 MB / 328.3 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.2807, allocations: 4.906 kB / 328.3 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002541/0.281, allocations: 41.31 kB / 328.4 MB, free: 15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.2812, allocations: 77.53 kB / 328.4 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.2817, allocations: 85.14 kB / 328.5 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004225/0.2821, allocations: 358.3 kB / 328.9 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002641/0.2824, allocations: 96.64 kB / 329 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.2826, allocations: 125.8 kB / 329.1 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.2828, allocations: 146.7 kB / 329.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/0.2829, allocations: 24.81 kB / 329.3 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.146e-05/0.283, allocations: 21.06 kB / 329.3 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.101e-05/0.2831, allocations: 65.16 kB / 329.3 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.2832, allocations: 153.8 kB / 329.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.2836, allocations: 341.2 kB / 329.8 MB, free: 14.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2836, allocations: 1.375 kB / 329.8 MB, free: 14.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2836, allocations: 0 / 329.8 MB, free: 14.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.2837, allocations: 0 / 329.8 MB, free: 14.02 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.001155/0.2848, allocations: 0.6141 MB / 330.4 MB, free: 13.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.2849, allocations: 9.312 kB / 330.4 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.049e-05/0.285, allocations: 34.72 kB / 330.5 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.2853, allocations: 260.4 kB / 330.7 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.857e-05/0.2854, allocations: 73.62 kB / 330.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.746e-05/0.2855, allocations: 28.03 kB / 330.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.2861, allocations: 309.8 kB / 331.1 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.2861, allocations: 0 / 331.1 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.2861, allocations: 15.84 kB / 331.2 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.2862, allocations: 6.594 kB / 331.2 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.2866, allocations: 190.2 kB / 331.3 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.2884, allocations: 1.133 MB / 332.5 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.2887, allocations: 154.7 kB / 332.6 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.2889, allocations: 78.8 kB / 332.7 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.2889, allocations: 1.219 kB / 332.7 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.2893, allocations: 167.9 kB / 332.9 MB, free: 11.55 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 2.896e-06/0.2893, allocations: 3.984 kB / 332.9 MB, free: 11.55 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001082/0.2904, allocations: 381.2 kB / 333.2 MB, free: 11.29 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.2904, allocations: 114.5 kB / 333.4 MB, free: 11.16 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.2907, allocations: 226.2 kB / 333.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.2907, allocations: 33.69 kB / 333.6 MB, free: 10.91 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.2908, allocations: 184.1 kB / 333.8 MB, free: 10.72 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.055e-05/0.2909, allocations: 63.11 kB / 333.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-05/0.291, allocations: 57.59 kB / 333.9 MB, free: 10.6 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.2911, allocations: 338.8 kB / 334.2 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.2913, allocations: 67.91 kB / 334.3 MB, free: 10.19 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.2914, allocations: 145.8 kB / 334.4 MB, free: 10.02 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.2917, allocations: 192.9 kB / 334.6 MB, free: 9.809 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2917, allocations: 0 / 334.6 MB, free: 9.809 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004022/0.2921, allocations: 275.9 kB / 334.9 MB, free: 9.531 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.2921, allocations: 4 kB / 334.9 MB, free: 9.527 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.2921, allocations: 4 kB / 334.9 MB, free: 9.523 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002818/0.2924, allocations: 56.75 kB / 335 MB, free: 9.465 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.2927, allocations: 47.92 kB / 335 MB, free: 9.418 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.294, allocations: 1.408 MB / 336.4 MB, free: 7.879 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.2942, allocations: 27.83 kB / 336.5 MB, free: 7.852 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.2942, allocations: 12 kB / 336.5 MB, free: 7.84 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.0001478/0.2944, allocations: 145.7 kB / 336.6 MB, free: 7.688 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/0.2945, allocations: 31.64 kB / 336.6 MB, free: 7.656 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.508e-05/0.2945, allocations: 26.19 kB / 336.7 MB, free: 7.633 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.2945, allocations: 8.062 kB / 336.7 MB, free: 7.625 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2945, allocations: 0 / 336.7 MB, free: 7.625 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.2946, allocations: 3.984 kB / 336.7 MB, free: 7.621 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003108/0.2949, allocations: 317.4 kB / 337 MB, free: 7.262 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2949, allocations: 0 / 337 MB, free: 7.262 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.2951, allocations: 39.92 kB / 337 MB, free: 7.223 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.2953, allocations: 56.81 kB / 337.1 MB, free: 7.164 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.2953, allocations: 3.938 kB / 337.1 MB, free: 7.16 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00103/0.2963, allocations: 1.327 MB / 338.4 MB, free: 5.695 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2963, allocations: 0 / 338.4 MB, free: 5.695 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005857/0.2969, allocations: 325.4 kB / 338.7 MB, free: 5.355 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.297, allocations: 108.9 kB / 338.8 MB, free: 5.23 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.654e-05/0.2971, allocations: 12.08 kB / 338.8 MB, free: 5.219 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.2973, allocations: 19.98 kB / 338.9 MB, free: 5.199 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.2973, allocations: 27.95 kB / 338.9 MB, free: 5.172 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.2974, allocations: 7.938 kB / 338.9 MB, free: 5.164 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001933/0.2976, allocations: 164.5 kB / 339.1 MB, free: 5.004 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2976, allocations: 0 / 339.1 MB, free: 5.004 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000364/0.2979, allocations: 83.75 kB / 339.1 MB, free: 4.922 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.0001748/0.2981, allocations: 108.1 kB / 339.2 MB, free: 4.809 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005256/0.2987, allocations: 282.5 kB / 339.5 MB, free: 4.52 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.2987, allocations: 0 / 339.5 MB, free: 4.52 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.2989, allocations: 194.5 kB / 339.7 MB, free: 4.316 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.2993, allocations: 44.73 kB / 339.8 MB, free: 4.27 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.3009, allocations: 0.7557 MB / 340.5 MB, free: 3.488 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.3012, allocations: 0.7599 MB / 341.3 MB, free: 2.703 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.3013, allocations: 22.28 kB / 341.3 MB, free: 2.68 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.038e-05/0.3014, allocations: 23.44 kB / 341.3 MB, free: 2.66 MB / 270.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3014, allocations: 0 / 341.3 MB, free: 2.66 MB / 270.1 MB Notification: Performance of Templates: time 0.00623/0.3076, allocations: 2.786 MB / 344.1 MB, free: 15.87 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)