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.001303/0.001303, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001512/0.001512, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.4 MB / 222.1 MB, free: 5.879 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.0004937/0.0004938, allocations: 12 kB / 278.9 MB, free: 13.05 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2971, allocations: 47.59 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002881/0.3, allocations: 2.638 MB / 329.1 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.3014, allocations: 0.7479 MB / 329.9 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.3016, allocations: 5.062 kB / 329.9 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.3017, allocations: 50.42 kB / 329.9 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.3019, allocations: 82.62 kB / 330 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.3022, allocations: 89.83 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004108/0.3026, allocations: 388.3 kB / 330.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.3029, allocations: 103.1 kB / 330.6 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.3031, allocations: 130.9 kB / 330.7 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.3033, allocations: 151.9 kB / 330.8 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.474e-05/0.3034, allocations: 19.62 kB / 330.9 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.661e-05/0.3034, allocations: 18.22 kB / 330.9 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.672e-05/0.3035, allocations: 62.44 kB / 330.9 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.986e-05/0.3036, allocations: 92.38 kB / 331 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.3039, allocations: 302 kB / 331.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3039, allocations: 0 / 331.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3039, allocations: 0 / 331.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.304, allocations: 1.344 kB / 331.3 MB, free: 13.71 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.001013/0.305, allocations: 0.5967 MB / 331.9 MB, free: 13.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.305, allocations: 13.56 kB / 331.9 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.46e-05/0.3051, allocations: 47.45 kB / 332 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.3055, allocations: 268.3 kB / 332.2 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.3056, allocations: 80.17 kB / 332.3 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.292e-05/0.3057, allocations: 31.5 kB / 332.4 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006319/0.3063, allocations: 330.5 kB / 332.7 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.3064, allocations: 5.312 kB / 332.7 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.3064, allocations: 15.39 kB / 332.7 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3064, allocations: 11.25 kB / 332.7 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004611/0.3069, allocations: 223.5 kB / 332.9 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.3089, allocations: 1.38 MB / 334.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.3092, allocations: 176.4 kB / 334.5 MB, free: 11.15 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.3094, allocations: 84.92 kB / 334.6 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.3094, allocations: 10.36 kB / 334.6 MB, free: 11.1 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003296/0.3098, allocations: 154.6 kB / 334.7 MB, free: 10.98 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.3098, allocations: 1 kB / 334.7 MB, free: 10.98 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001093/0.3109, allocations: 424.7 kB / 335.1 MB, free: 10.57 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.311, allocations: 106.8 kB / 335.2 MB, free: 10.45 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.3112, allocations: 262.6 kB / 335.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.3113, allocations: 33.7 kB / 335.5 MB, free: 10.14 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.3114, allocations: 203.9 kB / 335.7 MB, free: 9.938 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.434e-05/0.3114, allocations: 71 kB / 335.8 MB, free: 9.867 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.3115, allocations: 8 kB / 335.8 MB, free: 9.859 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3116, allocations: 343 kB / 336.1 MB, free: 9.516 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.3117, allocations: 76.62 kB / 336.2 MB, free: 9.441 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.312, allocations: 189.4 kB / 336.4 MB, free: 9.215 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.3122, allocations: 89.19 kB / 336.5 MB, free: 9.129 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3122, allocations: 0 / 336.5 MB, free: 9.129 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006428/0.3128, allocations: 343.8 kB / 336.8 MB, free: 8.785 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3128, allocations: 8 kB / 336.8 MB, free: 8.777 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3129, allocations: 352 / 336.8 MB, free: 8.777 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002583/0.3131, allocations: 64.75 kB / 336.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.3134, allocations: 63.91 kB / 337 MB, free: 8.648 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3147, allocations: 1.412 MB / 338.4 MB, free: 7.102 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.315, allocations: 51.83 kB / 338.4 MB, free: 7.051 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.315, allocations: 19.98 kB / 338.4 MB, free: 7.031 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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.3152, allocations: 149.8 kB / 338.6 MB, free: 6.875 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/0.3152, allocations: 23.72 kB / 338.6 MB, free: 6.852 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.606e-05/0.3153, allocations: 30.11 kB / 338.6 MB, free: 6.824 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3153, allocations: 11.95 kB / 338.7 MB, free: 6.812 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3153, allocations: 4 kB / 338.7 MB, free: 6.809 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3153, allocations: 0 / 338.7 MB, free: 6.809 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000342/0.3157, allocations: 345.3 kB / 339 MB, free: 6.422 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3157, allocations: 0 / 339 MB, free: 6.422 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001872/0.3159, allocations: 43.92 kB / 339 MB, free: 6.379 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001674/0.316, allocations: 52.81 kB / 339.1 MB, free: 6.324 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.3161, allocations: 7.984 kB / 339.1 MB, free: 6.316 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.3171, allocations: 1.323 MB / 340.4 MB, free: 4.859 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3171, allocations: 0 / 340.4 MB, free: 4.859 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.3178, allocations: 350.4 kB / 340.8 MB, free: 4.496 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3179, allocations: 124.7 kB / 340.9 MB, free: 4.355 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.3179, allocations: 0 / 340.9 MB, free: 4.355 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.3181, allocations: 32 kB / 340.9 MB, free: 4.324 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.65e-05/0.3182, allocations: 35.88 kB / 341 MB, free: 4.289 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.3183, allocations: 4 kB / 341 MB, free: 4.285 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001758/0.3184, allocations: 182 kB / 341.1 MB, free: 4.105 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3184, allocations: 0 / 341.1 MB, free: 4.105 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000384/0.3188, allocations: 83.84 kB / 341.2 MB, free: 4.023 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001308/0.319, allocations: 111.2 kB / 341.3 MB, free: 3.906 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005869/0.3196, allocations: 322.5 kB / 341.6 MB, free: 3.578 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3196, allocations: 0 / 341.6 MB, free: 3.578 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.3199, allocations: 206.4 kB / 341.8 MB, free: 3.363 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3202, allocations: 29.25 kB / 341.9 MB, free: 3.336 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.3216, allocations: 0.842 MB / 342.7 MB, free: 2.469 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.3219, allocations: 0.7677 MB / 343.5 MB, free: 1.676 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.322, allocations: 26.28 kB / 343.5 MB, free: 1.648 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.997e-05/0.3221, allocations: 23.44 kB / 343.5 MB, free: 1.625 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3221, allocations: 0 / 343.5 MB, free: 1.625 MB / 270.1 MB Notification: Performance of Templates: time 0.005868/0.328, allocations: 2.684 MB / 346.2 MB, free: 14.94 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)