Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001717/0.001717, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.397/1.397, allocations: 194.3 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001675/0.001674, allocations: 118.3 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.845e-05/2.856e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08332/0.08336, allocations: 44.51 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2881/0.3715, allocations: 74.4 MB / 423.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.3717, allocations: 68.75 kB / 423.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01383/0.3856, allocations: 6.094 MB / 430 MB, free: 8.777 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3856, allocations: 0 / 430 MB, free: 8.777 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.3856, allocations: 11.84 kB / 430 MB, free: 8.773 MB / 298.7 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.0006711/0.3863, allocations: 0.5682 MB / 430.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3864, allocations: 11.41 kB / 430.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/0.3864, allocations: 42.28 kB / 430.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/0.3867, allocations: 265.6 kB / 430.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.232e-05/0.3867, allocations: 79.19 kB / 431 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.3868, allocations: 29.56 kB / 431 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.3872, allocations: 329.8 kB / 431.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3872, allocations: 0 / 431.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.3873, allocations: 18.39 kB / 431.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.3873, allocations: 7.562 kB / 431.4 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/0.3876, allocations: 208.3 kB / 431.6 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.389, allocations: 1.381 MB / 432.9 MB, free: 6.852 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.3892, allocations: 158.2 kB / 433.1 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.3893, allocations: 90.02 kB / 433.2 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.3893, allocations: 0 / 433.2 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.3895, allocations: 154.1 kB / 433.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.3896, allocations: 0 / 433.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004825/0.39, allocations: 241 kB / 433.6 MB, free: 6.613 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.3901, allocations: 102.8 kB / 433.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.3903, allocations: 228.5 kB / 433.9 MB, free: 6.375 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.3903, allocations: 32.61 kB / 433.9 MB, free: 6.344 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.41e-05/0.3904, allocations: 202.6 kB / 434.1 MB, free: 6.188 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.688e-05/0.3904, allocations: 73.41 kB / 434.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.3904, allocations: 3.25 kB / 434.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.28e-05/0.3905, allocations: 336.9 kB / 434.5 MB, free: 5.816 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.755e-05/0.3906, allocations: 68.91 kB / 434.6 MB, free: 5.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.3907, allocations: 153 kB / 434.7 MB, free: 5.707 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000114/0.3908, allocations: 84.34 kB / 434.8 MB, free: 5.688 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3909, allocations: 3.844 kB / 434.8 MB, free: 5.688 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004729/0.3913, allocations: 310.4 kB / 435.1 MB, free: 5.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3914, allocations: 11.75 kB / 435.1 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3914, allocations: 3.812 kB / 435.1 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002313/0.3916, allocations: 57.78 kB / 435.2 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.3919, allocations: 62.3 kB / 435.3 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008729/0.3927, allocations: 1.413 MB / 436.7 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.393, allocations: 41.42 kB / 436.7 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.925e-05/0.393, allocations: 15.22 kB / 436.7 MB, free: 4.141 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 7.15e-05/0.3931, allocations: 122.2 kB / 436.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.3931, allocations: 35.3 kB / 436.9 MB, free: 4.008 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/0.3932, allocations: 24.86 kB / 436.9 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3932, allocations: 3.844 kB / 436.9 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3932, allocations: 0 / 436.9 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3932, allocations: 0 / 436.9 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.3934, allocations: 344.4 kB / 437.2 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3934, allocations: 0 / 437.2 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.3936, allocations: 35.05 kB / 437.3 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.3938, allocations: 65.95 kB / 437.3 MB, free: 3.711 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.3938, allocations: 7.359 kB / 437.4 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006999/0.3945, allocations: 1.319 MB / 438.7 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3945, allocations: 0 / 438.7 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004837/0.395, allocations: 337.8 kB / 439 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.202e-05/0.3951, allocations: 123 kB / 439.1 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.3951, allocations: 3.312 kB / 439.1 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.3953, allocations: 22.55 kB / 439.1 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.3954, allocations: 34.66 kB / 439.2 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.3954, allocations: 7.438 kB / 439.2 MB, free: 2.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.3955, allocations: 179.7 kB / 439.4 MB, free: 2.051 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3955, allocations: 0 / 439.4 MB, free: 2.051 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003336/0.3959, allocations: 99.48 kB / 439.5 MB, free: 2.031 MB / 298.7 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) * 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.0001317/0.396, allocations: 109.6 kB / 439.6 MB, free: 1.934 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004073/0.3964, allocations: 297.2 kB / 439.9 MB, free: 1.801 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3964, allocations: 0 / 439.9 MB, free: 1.801 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.3967, allocations: 191.7 kB / 440 MB, free: 1.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.3969, allocations: 33.66 kB / 440.1 MB, free: 1.672 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.3979, allocations: 0.4937 MB / 440.6 MB, free: 1.379 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/0.3981, allocations: 0.7813 MB / 441.4 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.3982, allocations: 25.53 kB / 441.4 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.113e-05/0.3982, allocations: 19 kB / 441.4 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3982, allocations: 0 / 441.4 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of Templates: time 0.005295/0.4035, allocations: 2.777 MB / 444.2 MB, free: 15.25 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)