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.001496/0.001496, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002543/0.002543, allocations: 189.5 kB / 16.25 MB, free: 6.633 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.784/1.784, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.00146/0.00146, allocations: 51.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2968, allocations: 46.63 MB / 324.9 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003765/0.3006, allocations: 2.874 MB / 327.7 MB, free: 15.65 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.302, allocations: 0.7603 MB / 328.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.3022, allocations: 4.75 kB / 328.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.3024, allocations: 40.81 kB / 328.5 MB, free: 15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.3026, allocations: 77.5 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.3029, allocations: 84.78 kB / 328.7 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003642/0.3033, allocations: 374.8 kB / 329.1 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.3035, allocations: 115.1 kB / 329.2 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.3037, allocations: 133.6 kB / 329.3 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.3039, allocations: 155.8 kB / 329.4 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.304, allocations: 34.34 kB / 329.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.729e-05/0.304, allocations: 30.75 kB / 329.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.623e-05/0.3041, allocations: 72.88 kB / 329.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.3043, allocations: 161.4 kB / 329.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.3046, allocations: 355.4 kB / 330.1 MB, free: 13.97 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3046, allocations: 0 / 330.1 MB, free: 13.97 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3047, allocations: 1.125 kB / 330.1 MB, free: 13.97 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.3047, allocations: 0 / 330.1 MB, free: 13.97 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.001032/0.3057, allocations: 0.6064 MB / 330.7 MB, free: 13.43 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.3058, allocations: 9.156 kB / 330.7 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.294e-05/0.3058, allocations: 42.89 kB / 330.7 MB, free: 13.4 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.3062, allocations: 256 kB / 331 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-05/0.3063, allocations: 82.78 kB / 331.1 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/0.3064, allocations: 27.19 kB / 331.1 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.3069, allocations: 302.4 kB / 331.4 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3069, allocations: 0 / 331.4 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.3069, allocations: 15.25 kB / 331.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.3069, allocations: 6.688 kB / 331.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.3073, allocations: 190.5 kB / 331.6 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.309, allocations: 1.144 MB / 332.8 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.3093, allocations: 153.5 kB / 332.9 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.3095, allocations: 80.42 kB / 333 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.3095, allocations: 1.125 kB / 333 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000337/0.3099, allocations: 160.4 kB / 333.1 MB, free: 11.49 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.3099, allocations: 0 / 333.1 MB, free: 11.49 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001034/0.3109, allocations: 385.2 kB / 333.5 MB, free: 11.16 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.311, allocations: 110.8 kB / 333.6 MB, free: 11.03 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.3112, allocations: 225 kB / 333.8 MB, free: 10.8 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.3113, allocations: 29.7 kB / 333.9 MB, free: 10.77 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.3114, allocations: 184.1 kB / 334.1 MB, free: 10.58 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.07e-05/0.3115, allocations: 63.09 kB / 334.1 MB, free: 10.52 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-05/0.3115, allocations: 57.61 kB / 334.2 MB, free: 10.46 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3117, allocations: 346.8 kB / 334.5 MB, free: 10.11 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.3118, allocations: 63.97 kB / 334.6 MB, free: 10.05 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.312, allocations: 141.8 kB / 334.7 MB, free: 9.879 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.3123, allocations: 192.9 kB / 334.9 MB, free: 9.668 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3123, allocations: 0 / 334.9 MB, free: 9.668 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004085/0.3127, allocations: 275.7 kB / 335.2 MB, free: 9.391 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3128, allocations: 4 kB / 335.2 MB, free: 9.387 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3128, allocations: 4 kB / 335.2 MB, free: 9.383 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002744/0.3131, allocations: 57.03 kB / 335.2 MB, free: 9.324 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.3133, allocations: 55.84 kB / 335.3 MB, free: 9.27 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.3148, allocations: 1.564 MB / 336.8 MB, free: 7.57 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.3151, allocations: 31.73 kB / 336.9 MB, free: 7.539 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.3152, allocations: 12 kB / 336.9 MB, free: 7.527 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.0002246/0.3154, allocations: 157.7 kB / 337 MB, free: 7.363 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.3155, allocations: 23.8 kB / 337.1 MB, free: 7.34 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.3155, allocations: 26.19 kB / 337.1 MB, free: 7.316 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.3155, allocations: 4 kB / 337.1 MB, free: 7.312 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3155, allocations: 0 / 337.1 MB, free: 7.312 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3156, allocations: 3.984 kB / 337.1 MB, free: 7.309 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/0.316, allocations: 325.2 kB / 337.4 MB, free: 6.941 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.316, allocations: 0 / 337.4 MB, free: 6.941 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.3162, allocations: 39.92 kB / 337.5 MB, free: 6.902 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002068/0.3165, allocations: 52.81 kB / 337.5 MB, free: 6.848 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.3165, allocations: 8 kB / 337.5 MB, free: 6.84 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001569/0.3181, allocations: 1.418 MB / 338.9 MB, free: 5.281 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3181, allocations: 0 / 338.9 MB, free: 5.281 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006325/0.3187, allocations: 330.2 kB / 339.3 MB, free: 4.938 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.3188, allocations: 120.7 kB / 339.4 MB, free: 4.801 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.3189, allocations: 4 kB / 339.4 MB, free: 4.797 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.3191, allocations: 24.11 kB / 339.4 MB, free: 4.773 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/0.3192, allocations: 27.95 kB / 339.4 MB, free: 4.746 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.3192, allocations: 8 kB / 339.4 MB, free: 4.738 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001425/0.3193, allocations: 160.5 kB / 339.6 MB, free: 4.582 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3193, allocations: 0 / 339.6 MB, free: 4.582 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003932/0.3197, allocations: 75.84 kB / 339.7 MB, free: 4.508 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.0001509/0.3199, allocations: 103.2 kB / 339.8 MB, free: 4.398 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005735/0.3205, allocations: 298.4 kB / 340.1 MB, free: 4.094 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3205, allocations: 0 / 340.1 MB, free: 4.094 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002711/0.3208, allocations: 194.6 kB / 340.3 MB, free: 3.891 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.3211, allocations: 40.78 kB / 340.3 MB, free: 3.848 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.3228, allocations: 0.7683 MB / 341.1 MB, free: 3.051 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.3231, allocations: 0.7597 MB / 341.8 MB, free: 2.266 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.3232, allocations: 22.3 kB / 341.8 MB, free: 2.242 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.903e-05/0.3233, allocations: 23.42 kB / 341.9 MB, free: 2.223 MB / 270.1 MB Notification: Performance of SimCode: time 1.543e-06/0.3233, allocations: 0 / 341.9 MB, free: 2.223 MB / 270.1 MB Notification: Performance of Templates: time 0.006774/0.3301, allocations: 2.961 MB / 344.8 MB, free: 15.27 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)