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.009134/0.009134, allocations: 102.2 kB / 15.73 MB, free: 6.008 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.001357/0.001357, allocations: 198.4 kB / 16.68 MB, free: 5.93 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.529/1.529, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.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.001261/0.001261, allocations: 55.94 kB / 326.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1039, allocations: 46.61 MB / 373.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005229/0.1092, allocations: 2.827 MB / 376 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.111, allocations: 0.7834 MB / 376.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.1113, allocations: 11.94 kB / 376.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.1116, allocations: 47.5 kB / 376.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.1119, allocations: 91.19 kB / 376.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004669/0.1124, allocations: 95.81 kB / 377 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.1129, allocations: 378.2 kB / 377.4 MB, free: 316 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.1132, allocations: 119.3 kB / 377.5 MB, free: 192 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/0.1135, allocations: 135.6 kB / 377.6 MB, free: 56 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1903/0.3038, allocations: 145.2 kB / 377.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.304, allocations: 30.19 kB / 377.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.3041, allocations: 31.09 kB / 377.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.401e-05/0.3042, allocations: 75.05 kB / 377.9 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.3044, allocations: 164 kB / 378.1 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.3049, allocations: 364 kB / 378.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.3049, allocations: 4.438 kB / 378.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3049, allocations: 2.094 kB / 378.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.3049, allocations: 0 / 378.4 MB, free: 9.945 MB / 318.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.0009815/0.3059, allocations: 0.6065 MB / 379 MB, free: 9.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3059, allocations: 10.22 kB / 379 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.889e-05/0.306, allocations: 34.48 kB / 379.1 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004004/0.3064, allocations: 261.4 kB / 379.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.41e-05/0.3065, allocations: 80.52 kB / 379.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.017e-05/0.3066, allocations: 29.62 kB / 379.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.3071, allocations: 303.1 kB / 379.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3071, allocations: 0 / 379.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.3072, allocations: 12.75 kB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.3072, allocations: 9.781 kB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003844/0.3076, allocations: 193.8 kB / 379.9 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.3095, allocations: 1.118 MB / 381.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.31, allocations: 159 kB / 381.2 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/0.3103, allocations: 83.77 kB / 381.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.3103, allocations: 2.344 kB / 381.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003492/0.3107, allocations: 160.9 kB / 381.5 MB, free: 8.398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.803e-06/0.3107, allocations: 0 / 381.5 MB, free: 8.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001324/0.312, allocations: 380.6 kB / 381.8 MB, free: 8.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.263e-05/0.3121, allocations: 109.7 kB / 381.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.3125, allocations: 229.6 kB / 382.2 MB, free: 8.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.3125, allocations: 29.19 kB / 382.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.3126, allocations: 183.5 kB / 382.4 MB, free: 7.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.511e-05/0.3127, allocations: 64.86 kB / 382.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.665e-05/0.3128, allocations: 58.98 kB / 382.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.05e-05/0.3129, allocations: 335.5 kB / 382.8 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.313, allocations: 65.14 kB / 382.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.3132, allocations: 148.7 kB / 383 MB, free: 7.402 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.3134, allocations: 190.8 kB / 383.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3135, allocations: 1.344 kB / 383.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004251/0.3139, allocations: 273.5 kB / 383.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3139, allocations: 8.062 kB / 383.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.3139, allocations: 3.25 kB / 383.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000288/0.3142, allocations: 54.25 kB / 383.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.3144, allocations: 50.16 kB / 383.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.3155, allocations: 1.574 MB / 385.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.3157, allocations: 40.16 kB / 385.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.3158, allocations: 13.55 kB / 385.2 MB, free: 5.652 MB / 318.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.0001254/0.3159, allocations: 153.2 kB / 385.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.516e-05/0.3159, allocations: 23.12 kB / 385.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.668e-05/0.316, allocations: 29.84 kB / 385.4 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.316, allocations: 6.656 kB / 385.4 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.316, allocations: 0 / 385.4 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.316, allocations: 2.156 kB / 385.4 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.3163, allocations: 328.8 kB / 385.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.3164, allocations: 0.6562 kB / 385.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.3165, allocations: 33.31 kB / 385.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001802/0.3167, allocations: 55.23 kB / 385.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.3167, allocations: 3.672 kB / 385.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008619/0.3176, allocations: 1.418 MB / 387.3 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3176, allocations: 0 / 387.3 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005669/0.3182, allocations: 336.6 kB / 387.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.3183, allocations: 108.6 kB / 387.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.3183, allocations: 10.5 kB / 387.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.3185, allocations: 18.69 kB / 387.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.881e-05/0.3186, allocations: 26.94 kB / 387.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.3186, allocations: 7.344 kB / 387.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000122/0.3187, allocations: 164.3 kB / 387.9 MB, free: 3.375 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3187, allocations: 0.9062 kB / 387.9 MB, free: 3.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.3191, allocations: 86.06 kB / 388 MB, free: 3.352 MB / 318.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.0001109/0.3192, allocations: 107.5 kB / 388.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004979/0.3197, allocations: 290 kB / 388.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3197, allocations: 448 / 388.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.32, allocations: 195.3 kB / 388.6 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.3203, allocations: 36.64 kB / 388.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.3218, allocations: 0.6487 MB / 389.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.322, allocations: 0.7624 MB / 390 MB, free: 1.879 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.921e-05/0.3222, allocations: 23.97 kB / 390.1 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.3222, allocations: 20.53 kB / 390.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3222, allocations: 0 / 390.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of Templates: time 0.007454/0.3297, allocations: 3.102 MB / 393.2 MB, free: 1.641 MB / 318.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)