Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.006464/0.006464, allocations: 166.3 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.504/1.504, allocations: 170.8 MB / 186.6 MB, free: 1.125 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001632/0.001632, allocations: 110.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005759/0.0005759, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2301, allocations: 38.77 MB / 312.9 MB, free: 38.85 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08253/0.3126, allocations: 68.47 MB / 381.4 MB, free: 6.078 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.313, allocations: 71.97 kB / 381.4 MB, free: 6.008 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01493/0.3279, allocations: 5.353 MB / 386.8 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.328, allocations: 3.938 kB / 386.8 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.974e-05/0.328, allocations: 4 kB / 386.8 MB, free: 0.6367 MB / 282.7 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.001236/0.3293, allocations: 0.5601 MB / 387.3 MB, free: 28 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3293, allocations: 8.031 kB / 387.4 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.3295, allocations: 35.67 kB / 387.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.3299, allocations: 250.8 kB / 387.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.33, allocations: 76.02 kB / 387.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.3301, allocations: 31.94 kB / 387.7 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005363/0.3306, allocations: 297.8 kB / 388 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3307, allocations: 0 / 388 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.912e-05/0.3307, allocations: 12 kB / 388 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.3307, allocations: 8 kB / 388 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003543/0.3311, allocations: 186.1 kB / 388.2 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.333, allocations: 1.155 MB / 389.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.3334, allocations: 150.5 kB / 389.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.3334, allocations: 8.281 kB / 389.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003509/0.3338, allocations: 159.5 kB / 389.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 4.899e-06/0.3338, allocations: 0 / 389.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.00122/0.335, allocations: 400.5 kB / 390.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.606e-05/0.3351, allocations: 106.8 kB / 390.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.3354, allocations: 200.2 kB / 390.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.3354, allocations: 25.7 kB / 390.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.3356, allocations: 180.2 kB / 390.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.726e-05/0.3357, allocations: 74.98 kB / 390.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.677e-05/0.3357, allocations: 8 kB / 390.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3359, allocations: 330.8 kB / 391 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.336, allocations: 60.55 kB / 391 MB, free: 12.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.3363, allocations: 132.1 kB / 391.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.3364, allocations: 72.73 kB / 391.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3364, allocations: 0 / 391.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004919/0.3369, allocations: 264.8 kB / 391.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.337, allocations: 8.156 kB / 391.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.337, allocations: 4 kB / 391.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003188/0.3373, allocations: 52.81 kB / 391.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.3376, allocations: 51.91 kB / 391.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.3391, allocations: 1.416 MB / 393 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.3394, allocations: 35.86 kB / 393.1 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.3394, allocations: 4 kB / 393.1 MB, free: 9.863 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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.0001745/0.3396, allocations: 149.7 kB / 393.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.3396, allocations: 23.72 kB / 393.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.103e-05/0.3397, allocations: 34.36 kB / 393.3 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3397, allocations: 4 kB / 393.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3397, allocations: 0 / 393.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3397, allocations: 0 / 393.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003907/0.3401, allocations: 325.3 kB / 393.6 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3401, allocations: 0 / 393.6 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.3403, allocations: 39.92 kB / 393.6 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001897/0.3405, allocations: 52.81 kB / 393.7 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.3405, allocations: 8 kB / 393.7 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.3419, allocations: 1.332 MB / 395 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3419, allocations: 0 / 395 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.3427, allocations: 341.5 kB / 395.4 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.3428, allocations: 108.8 kB / 395.5 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.3428, allocations: 3.984 kB / 395.5 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.343, allocations: 19.98 kB / 395.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.918e-05/0.3431, allocations: 35.89 kB / 395.5 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.3431, allocations: 12.05 kB / 395.5 MB, free: 7.164 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001471/0.3433, allocations: 160.5 kB / 395.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3433, allocations: 0 / 395.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003877/0.3437, allocations: 83.73 kB / 395.8 MB, free: 6.926 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,switch2.off,switch2.tSwitch,switch2.quenched) * 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 (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.0001723/0.3439, allocations: 104.5 kB / 395.9 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005871/0.3445, allocations: 286.5 kB / 396.2 MB, free: 6.523 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.3445, allocations: 4.312 kB / 396.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002833/0.3448, allocations: 187.6 kB / 396.3 MB, free: 6.324 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.3451, allocations: 40.36 kB / 396.4 MB, free: 6.285 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.3468, allocations: 0.806 MB / 397.2 MB, free: 5.457 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.3471, allocations: 0.7635 MB / 398 MB, free: 4.668 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.3472, allocations: 25.94 kB / 398 MB, free: 4.637 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.665e-05/0.3473, allocations: 19.44 kB / 398 MB, free: 4.617 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3473, allocations: 0 / 398 MB, free: 4.617 MB / 298.7 MB Notification: Performance of Templates: time 0.006393/0.3537, allocations: 2.749 MB / 400.8 MB, free: 1.898 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)