Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001139, allocations: 197.2 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007989/0.0007989, allocations: 98.84 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1908/0.1908, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.583e-05/1.586e-05, allocations: 0 / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3855/0.4938, allocations: 102.9 MB / 0.6049 GB, free: 15.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.4941, allocations: 82.33 kB / 0.6049 GB, free: 15.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08914/0.5833, allocations: 39.95 MB / 0.644 GB, free: 15.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5833, allocations: 0 / 0.644 GB, free: 15.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.198e-05/0.5834, allocations: 20 kB / 0.644 GB, free: 15.68 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.005592/0.589, allocations: 1.673 MB / 0.6456 GB, free: 14.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.589, allocations: 12.03 kB / 0.6456 GB, free: 14.13 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006571/0.5956, allocations: 0.9797 MB / 0.6466 GB, free: 13.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/0.597, allocations: 0.6005 MB / 0.6472 GB, free: 12.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.56e-05/0.5971, allocations: 51.31 kB / 0.6472 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003887/0.5975, allocations: 76 kB / 0.6473 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002947/0.6005, allocations: 1.354 MB / 0.6486 GB, free: 11.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002655/0.6032, allocations: 1.177 MB / 0.6498 GB, free: 10.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.688e-05/0.6032, allocations: 3.984 kB / 0.6498 GB, free: 10.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.6034, allocations: 4 kB / 0.6498 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.23e-05/0.6034, allocations: 32 kB / 0.6498 GB, free: 10.06 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008734/0.6121, allocations: 5.483 MB / 0.6552 GB, free: 4.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/0.6143, allocations: 2.11 MB / 0.6572 GB, free: 1.926 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008127/0.6152, allocations: 0.5744 MB / 0.6578 GB, free: 1.348 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000222/0.6154, allocations: 195.5 kB / 0.658 GB, free: 1.121 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.6155, allocations: 47.88 kB / 0.658 GB, free: 1.066 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 3.497e-06/0.6155, allocations: 0 / 0.658 GB, free: 1.066 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.003454/0.6189, allocations: 1.427 MB / 0.6594 GB, free: 15.62 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.619, allocations: 94.45 kB / 0.6595 GB, free: 15.51 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004288/0.6194, allocations: 325.1 kB / 0.6598 GB, free: 15.19 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.873e-05/0.6195, allocations: 25.7 kB / 0.6598 GB, free: 15.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002881/0.6198, allocations: 459.5 kB / 0.6603 GB, free: 14.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003291/0.6201, allocations: 405.8 kB / 0.6606 GB, free: 14.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.6202, allocations: 0 / 0.6606 GB, free: 14.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.6204, allocations: 378.8 kB / 0.661 GB, free: 13.92 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006289/0.621, allocations: 390.6 kB / 0.6614 GB, free: 13.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007952/0.6218, allocations: 0.6012 MB / 0.662 GB, free: 12.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/0.6241, allocations: 0.7634 MB / 0.6627 GB, free: 12.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.228e-06/0.6242, allocations: 4 kB / 0.6627 GB, free: 12.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00413/0.6283, allocations: 1.646 MB / 0.6643 GB, free: 10.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.6283, allocations: 9.562 kB / 0.6643 GB, free: 10.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/0.6284, allocations: 8.625 kB / 0.6643 GB, free: 10.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/0.6299, allocations: 0.4889 MB / 0.6648 GB, free: 9.934 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007829/0.6307, allocations: 195.7 kB / 0.665 GB, free: 9.742 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006509/0.6373, allocations: 4.15 MB / 0.6691 GB, free: 5.473 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008733/0.6382, allocations: 86.95 kB / 0.6691 GB, free: 5.387 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.6384, allocations: 47.98 kB / 0.6692 GB, free: 5.34 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real admittance.i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real variableAdmittance.v.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real idealCommutingSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealClosingSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealOpeningSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 107 * 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 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0003974/0.6388, allocations: 176 kB / 0.6694 GB, free: 5.168 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.639, allocations: 79.02 kB / 0.6694 GB, free: 5.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004025/0.643, allocations: 1.703 MB / 0.6711 GB, free: 3.367 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/0.6431, allocations: 12 kB / 0.6711 GB, free: 3.355 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6431, allocations: 0 / 0.6711 GB, free: 3.355 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.6431, allocations: 7.969 kB / 0.6711 GB, free: 3.348 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005359/0.6485, allocations: 2.795 MB / 0.6738 GB, free: 0.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.6485, allocations: 0 / 0.6738 GB, free: 0.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006338/0.6491, allocations: 147.8 kB / 0.674 GB, free: 364 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.6505, allocations: 494.9 kB / 0.6745 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.638e-05/0.6506, allocations: 15.95 kB / 0.6745 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005797/0.6564, allocations: 4.129 MB / 0.6785 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.6564, allocations: 0 / 0.6785 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004373/0.6608, allocations: 2.343 MB / 0.6808 GB, free: 9.227 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004537/0.6613, allocations: 283.7 kB / 0.6811 GB, free: 8.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.6614, allocations: 7.984 kB / 0.6811 GB, free: 8.922 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006507/0.6621, allocations: 27.98 kB / 0.6811 GB, free: 8.895 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.6623, allocations: 105.2 kB / 0.6812 GB, free: 8.793 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.216e-05/0.6623, allocations: 32 kB / 0.6812 GB, free: 8.762 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002755/0.6626, allocations: 246.9 kB / 0.6815 GB, free: 8.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6626, allocations: 0 / 0.6815 GB, free: 8.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00124/0.6639, allocations: 374.9 kB / 0.6818 GB, free: 8.152 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * 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 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003065/0.6642, allocations: 155 kB / 0.682 GB, free: 7.992 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002762/0.667, allocations: 1.559 MB / 0.6835 GB, free: 6.422 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.667, allocations: 5.188 kB / 0.6835 GB, free: 6.418 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001789/0.6688, allocations: 1.058 MB / 0.6845 GB, free: 5.355 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.6693, allocations: 49.84 kB / 0.6846 GB, free: 5.301 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005156/0.6744, allocations: 2.189 MB / 0.6867 GB, free: 3.086 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007249/0.6752, allocations: 1.095 MB / 0.6878 GB, free: 1.965 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005414/0.6757, allocations: 102.3 kB / 0.6879 GB, free: 1.863 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.6759, allocations: 55.42 kB / 0.6879 GB, free: 1.809 MB / 474.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6759, allocations: 4 kB / 0.6879 GB, free: 1.805 MB / 474.7 MB Notification: Performance of Templates: time 0.02634/0.7023, allocations: 14.88 MB / 0.7025 GB, free: 3.027 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)