Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.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.001562/0.001562, allocations: 100 kB / 15.05 MB, free: 1.105 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.001993/0.001993, allocations: 177.3 kB / 15.94 MB, free: 228 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.926/1.926, allocations: 205.4 MB / 222.1 MB, free: 5.676 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.0005187/0.0005191, allocations: 16 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3649, allocations: 47.58 MB / 326.4 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003671/0.3687, allocations: 2.493 MB / 328.9 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002187/0.3709, allocations: 0.7874 MB / 329.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003327/0.3713, allocations: 4.875 kB / 329.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.3714, allocations: 41.67 kB / 329.8 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003336/0.3718, allocations: 118.6 kB / 329.9 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.3722, allocations: 81.03 kB / 330 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.3727, allocations: 289.6 kB / 330.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.3729, allocations: 103.3 kB / 330.3 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.3732, allocations: 129.2 kB / 330.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.3735, allocations: 149.2 kB / 330.6 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.06e-05/0.3736, allocations: 18.41 kB / 330.6 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.741e-05/0.3736, allocations: 22.59 kB / 330.7 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.084e-05/0.3737, allocations: 57.5 kB / 330.7 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.3738, allocations: 89.27 kB / 330.8 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003528/0.3742, allocations: 311.4 kB / 331.1 MB, free: 13.87 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3742, allocations: 1.156 kB / 331.1 MB, free: 13.87 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3742, allocations: 0 / 331.1 MB, free: 13.87 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.3742, allocations: 0 / 331.1 MB, free: 13.87 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.001272/0.3755, allocations: 0.5972 MB / 331.7 MB, free: 13.34 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.3756, allocations: 9.156 kB / 331.7 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.3757, allocations: 39.88 kB / 331.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.3762, allocations: 276.1 kB / 332 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.3763, allocations: 79.28 kB / 332.1 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.518e-05/0.3764, allocations: 33 kB / 332.1 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006715/0.3771, allocations: 335.5 kB / 332.5 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3771, allocations: 0 / 332.5 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.356e-05/0.3772, allocations: 16.12 kB / 332.5 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.3772, allocations: 7.594 kB / 332.5 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005703/0.3778, allocations: 223.7 kB / 332.7 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.3802, allocations: 1.383 MB / 334.1 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003702/0.3806, allocations: 171.7 kB / 334.2 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.3807, allocations: 2.312 kB / 334.3 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004063/0.3811, allocations: 159.4 kB / 334.4 MB, free: 11.19 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 2.585e-06/0.3811, allocations: 0 / 334.4 MB, free: 11.19 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001488/0.3826, allocations: 421.3 kB / 334.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.3827, allocations: 102.8 kB / 334.9 MB, free: 10.72 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.3831, allocations: 266.6 kB / 335.2 MB, free: 10.45 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.818e-05/0.3831, allocations: 29.7 kB / 335.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.3833, allocations: 207.9 kB / 335.4 MB, free: 10.21 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.877e-05/0.3834, allocations: 70.98 kB / 335.5 MB, free: 10.14 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.3834, allocations: 11.94 kB / 335.5 MB, free: 10.12 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.3836, allocations: 339.1 kB / 335.8 MB, free: 9.785 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3838, allocations: 76.62 kB / 335.9 MB, free: 9.711 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.3841, allocations: 177.5 kB / 336.1 MB, free: 9.496 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.3843, allocations: 101.1 kB / 336.2 MB, free: 9.398 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3843, allocations: 0 / 336.2 MB, free: 9.398 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007869/0.3851, allocations: 344.1 kB / 336.5 MB, free: 9.055 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.3851, allocations: 12.03 kB / 336.5 MB, free: 9.043 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.3852, allocations: 4 kB / 336.5 MB, free: 9.039 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003295/0.3855, allocations: 52.81 kB / 336.6 MB, free: 8.984 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.3858, allocations: 67.84 kB / 336.6 MB, free: 8.918 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.3874, allocations: 1.42 MB / 338.1 MB, free: 7.363 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/0.3877, allocations: 47.67 kB / 338.1 MB, free: 7.316 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.3877, allocations: 12 kB / 338.1 MB, free: 7.305 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.0002197/0.388, allocations: 146 kB / 338.3 MB, free: 7.152 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.573e-05/0.388, allocations: 31.72 kB / 338.3 MB, free: 7.121 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.087e-05/0.3881, allocations: 26.17 kB / 338.3 MB, free: 7.098 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3881, allocations: 4 kB / 338.3 MB, free: 7.094 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3881, allocations: 0 / 338.3 MB, free: 7.094 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.3881, allocations: 7.938 kB / 338.3 MB, free: 7.086 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000374/0.3885, allocations: 341.2 kB / 338.7 MB, free: 6.703 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3885, allocations: 0 / 338.7 MB, free: 6.703 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.3887, allocations: 43.91 kB / 338.7 MB, free: 6.66 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.3889, allocations: 56.81 kB / 338.8 MB, free: 6.602 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.3889, allocations: 4 kB / 338.8 MB, free: 6.598 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.3901, allocations: 1.327 MB / 340.1 MB, free: 5.137 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3901, allocations: 0 / 340.1 MB, free: 5.137 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007156/0.3908, allocations: 354.5 kB / 340.4 MB, free: 4.77 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.391, allocations: 116.7 kB / 340.6 MB, free: 4.637 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.391, allocations: 11.98 kB / 340.6 MB, free: 4.625 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.3912, allocations: 28.05 kB / 340.6 MB, free: 4.598 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3913, allocations: 31.84 kB / 340.6 MB, free: 4.566 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.3913, allocations: 11.98 kB / 340.6 MB, free: 4.555 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.3915, allocations: 182 kB / 340.8 MB, free: 4.375 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3916, allocations: 4 kB / 340.8 MB, free: 4.371 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004631/0.392, allocations: 83.84 kB / 340.9 MB, free: 4.289 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.0001938/0.3922, allocations: 107.2 kB / 341 MB, free: 4.176 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007063/0.3929, allocations: 318.5 kB / 341.3 MB, free: 3.852 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.393, allocations: 3.938 kB / 341.3 MB, free: 3.848 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003298/0.3933, allocations: 207.2 kB / 341.5 MB, free: 3.633 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.3936, allocations: 28.55 kB / 341.5 MB, free: 3.605 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.3955, allocations: 0.8343 MB / 342.4 MB, free: 2.746 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/0.3961, allocations: 0.7794 MB / 343.2 MB, free: 1.941 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.3962, allocations: 22.3 kB / 343.2 MB, free: 1.918 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.681e-05/0.3963, allocations: 27.42 kB / 343.2 MB, free: 1.891 MB / 270.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3963, allocations: 0 / 343.2 MB, free: 1.891 MB / 270.1 MB Notification: Performance of Templates: time 0.007044/0.4033, allocations: 2.684 MB / 345.9 MB, free: 15.2 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) Environment - environmentSimulation: