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.00112/0.00112, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001168/0.001169, allocations: 196.3 kB / 16.14 MB, free: 6.734 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.489/1.489, allocations: 205.1 MB / 222 MB, free: 4.77 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.001902/0.001903, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2982, allocations: 46.63 MB / 324.7 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004879/0.3032, allocations: 3.142 MB / 327.8 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.305, allocations: 0.7768 MB / 328.6 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001853/0.3053, allocations: 9.719 kB / 328.6 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.3055, allocations: 42.28 kB / 328.6 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.3057, allocations: 90.88 kB / 328.7 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.3061, allocations: 93.77 kB / 328.8 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004772/0.3066, allocations: 403.3 kB / 329.2 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.3068, allocations: 115.9 kB / 329.3 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002513/0.3071, allocations: 145.7 kB / 329.5 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.3073, allocations: 168.6 kB / 329.6 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.978e-05/0.3074, allocations: 24.66 kB / 329.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.773e-05/0.3075, allocations: 23.62 kB / 329.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.3077, allocations: 65.59 kB / 329.8 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.3079, allocations: 177.1 kB / 329.9 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005108/0.3084, allocations: 402 kB / 330.3 MB, free: 13.63 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3084, allocations: 4 kB / 330.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3085, allocations: 1.125 kB / 330.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.3085, allocations: 0 / 330.3 MB, free: 13.62 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.001192/0.3097, allocations: 0.6467 MB / 331 MB, free: 13.06 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3097, allocations: 13.97 kB / 331 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.3098, allocations: 40.78 kB / 331 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000386/0.3102, allocations: 272.9 kB / 331.3 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-05/0.3103, allocations: 88.55 kB / 331.4 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.802e-05/0.3104, allocations: 28.38 kB / 331.4 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006328/0.311, allocations: 339.8 kB / 331.7 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.3111, allocations: 0 / 331.7 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.3111, allocations: 19.34 kB / 331.8 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.3111, allocations: 8.656 kB / 331.8 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004771/0.3116, allocations: 218.1 kB / 332 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.3135, allocations: 1.366 MB / 333.3 MB, free: 11.13 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.3139, allocations: 163.2 kB / 333.5 MB, free: 11.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.314, allocations: 94.61 kB / 333.6 MB, free: 10.98 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.3141, allocations: 7.922 kB / 333.6 MB, free: 10.98 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003539/0.3144, allocations: 161.9 kB / 333.8 MB, free: 10.8 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.3145, allocations: 0 / 333.8 MB, free: 10.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001098/0.3156, allocations: 403.1 kB / 334.2 MB, free: 10.38 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.3156, allocations: 114.8 kB / 334.3 MB, free: 10.24 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.3159, allocations: 258.6 kB / 334.5 MB, free: 9.98 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.3159, allocations: 37.64 kB / 334.6 MB, free: 9.938 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3161, allocations: 199.9 kB / 334.8 MB, free: 9.738 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.3161, allocations: 75 kB / 334.8 MB, free: 9.664 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.3162, allocations: 58.03 kB / 334.9 MB, free: 9.602 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3164, allocations: 338.8 kB / 335.2 MB, free: 9.262 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.3165, allocations: 80.61 kB / 335.3 MB, free: 9.184 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.3168, allocations: 173.5 kB / 335.5 MB, free: 8.973 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.3171, allocations: 239.5 kB / 335.7 MB, free: 8.703 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3171, allocations: 0 / 335.7 MB, free: 8.703 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006553/0.3178, allocations: 347.5 kB / 336 MB, free: 8.355 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3178, allocations: 4 kB / 336 MB, free: 8.352 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.3178, allocations: 4 kB / 336 MB, free: 8.348 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.3181, allocations: 61.06 kB / 336.1 MB, free: 8.285 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.3184, allocations: 63.91 kB / 336.2 MB, free: 8.223 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.3197, allocations: 1.416 MB / 337.6 MB, free: 6.672 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.32, allocations: 43.67 kB / 337.6 MB, free: 6.629 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.32, allocations: 15.98 kB / 337.6 MB, free: 6.613 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.000159/0.3202, allocations: 149.9 kB / 337.8 MB, free: 6.457 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.3202, allocations: 23.72 kB / 337.8 MB, free: 6.434 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.3203, allocations: 34.17 kB / 337.8 MB, free: 6.402 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3203, allocations: 0 / 337.8 MB, free: 6.402 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.3203, allocations: 3.938 kB / 337.8 MB, free: 6.398 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3203, allocations: 0 / 337.8 MB, free: 6.398 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003317/0.3206, allocations: 341.3 kB / 338.2 MB, free: 6.016 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3206, allocations: 0 / 338.2 MB, free: 6.016 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/0.3208, allocations: 35.98 kB / 338.2 MB, free: 5.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.321, allocations: 56.75 kB / 338.3 MB, free: 5.922 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.321, allocations: 8 kB / 338.3 MB, free: 5.914 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.3222, allocations: 1.319 MB / 339.6 MB, free: 4.461 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3222, allocations: 4.031 kB / 339.6 MB, free: 4.457 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006788/0.3229, allocations: 350.2 kB / 339.9 MB, free: 4.094 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.323, allocations: 116.8 kB / 340.1 MB, free: 3.961 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.3231, allocations: 12 kB / 340.1 MB, free: 3.949 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.3232, allocations: 19.98 kB / 340.1 MB, free: 3.93 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.401e-05/0.3233, allocations: 28.02 kB / 340.1 MB, free: 3.902 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.3234, allocations: 8 kB / 340.1 MB, free: 3.895 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.3235, allocations: 186 kB / 340.3 MB, free: 3.711 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3235, allocations: 0 / 340.3 MB, free: 3.711 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003774/0.3239, allocations: 87.75 kB / 340.4 MB, free: 3.625 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.0001377/0.3241, allocations: 111.1 kB / 340.5 MB, free: 3.508 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005933/0.3247, allocations: 310.8 kB / 340.8 MB, free: 3.191 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3247, allocations: 0 / 340.8 MB, free: 3.191 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.325, allocations: 198.6 kB / 341 MB, free: 2.984 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.3253, allocations: 35.36 kB / 341 MB, free: 2.953 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.3268, allocations: 0.8004 MB / 341.8 MB, free: 2.129 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.3272, allocations: 0.7677 MB / 342.6 MB, free: 1.336 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.3273, allocations: 30.22 kB / 342.6 MB, free: 1.305 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.156e-05/0.3273, allocations: 23.44 kB / 342.7 MB, free: 1.281 MB / 270.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3274, allocations: 0 / 342.7 MB, free: 1.281 MB / 270.1 MB Notification: Performance of Templates: time 0.006294/0.3337, allocations: 2.814 MB / 345.5 MB, free: 14.46 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)