Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 178.3 kB / 8.005 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009202/0.00092, allocations: 90.28 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1996/0.1996, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.54e-05/1.541e-05, allocations: 0 / 418.2 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1162, allocations: 58.86 MB / 477.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4298/0.5461, allocations: 100.1 MB / 0.5637 GB, free: 11.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.5464, allocations: 87.05 kB / 0.5638 GB, free: 11.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08777/0.6341, allocations: 38.65 MB / 0.6015 GB, free: 12.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.6342, allocations: 0 / 0.6015 GB, free: 12.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.944e-05/0.6343, allocations: 20 kB / 0.6016 GB, free: 12.4 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.005968/0.6402, allocations: 1.693 MB / 0.6032 GB, free: 10.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.6403, allocations: 12.03 kB / 0.6032 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007035/0.6474, allocations: 1.052 MB / 0.6042 GB, free: 9.902 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.6486, allocations: 0.6151 MB / 0.6048 GB, free: 9.391 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.729e-05/0.6487, allocations: 47.31 kB / 0.6049 GB, free: 9.348 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.6488, allocations: 79.91 kB / 0.605 GB, free: 9.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00241/0.6513, allocations: 1.422 MB / 0.6064 GB, free: 8.086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.6534, allocations: 1.213 MB / 0.6075 GB, free: 6.828 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.904e-05/0.6535, allocations: 0 / 0.6075 GB, free: 6.828 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.6536, allocations: 7.984 kB / 0.6075 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.6536, allocations: 32 kB / 0.6076 GB, free: 6.789 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007755/0.6614, allocations: 5.392 MB / 0.6128 GB, free: 1.129 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.6637, allocations: 2.301 MB / 0.6151 GB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007943/0.6645, allocations: 0.5869 MB / 0.6157 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001633/0.6647, allocations: 110.3 kB / 0.6158 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.6647, allocations: 51.81 kB / 0.6158 GB, free: 13.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 3.697e-06/0.6647, allocations: 4 kB / 0.6158 GB, free: 13.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.002645/0.6674, allocations: 1.314 MB / 0.6171 GB, free: 12.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.6674, allocations: 94.41 kB / 0.6172 GB, free: 12.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.6678, allocations: 341 kB / 0.6175 GB, free: 12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.364e-05/0.6679, allocations: 25.7 kB / 0.6175 GB, free: 11.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.6681, allocations: 479.3 kB / 0.618 GB, free: 11.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.6684, allocations: 417.8 kB / 0.6184 GB, free: 11.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-05/0.6685, allocations: 0 / 0.6184 GB, free: 11.08 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.6686, allocations: 378.8 kB / 0.6188 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006113/0.6692, allocations: 394.6 kB / 0.6191 GB, free: 10.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007683/0.67, allocations: 0.6454 MB / 0.6198 GB, free: 9.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.6714, allocations: 0.6464 MB / 0.6204 GB, free: 8.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.6714, allocations: 4 kB / 0.6204 GB, free: 8.926 MB / 426.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002979/0.6744, allocations: 1.591 MB / 0.622 GB, free: 7.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.6745, allocations: 8 kB / 0.622 GB, free: 7.312 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.6745, allocations: 8 kB / 0.622 GB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.6759, allocations: 0.5008 MB / 0.6225 GB, free: 6.809 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008103/0.6767, allocations: 211.6 kB / 0.6227 GB, free: 6.602 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005945/0.6827, allocations: 4.126 MB / 0.6267 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008255/0.6835, allocations: 102.8 kB / 0.6268 GB, free: 2.254 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.332e-05/0.6836, allocations: 55.98 kB / 0.6268 GB, free: 2.199 MB / 426.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.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real variableAdmittance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real idealIntermediateSwitch.s4.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 idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real 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 idealCommutingSwitch.s2.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.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.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 idealClosingSwitch.s.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 idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (116): * Single equations (assignments): 115 * 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.0003669/0.684, allocations: 181 kB / 0.627 GB, free: 2.016 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.6842, allocations: 79.06 kB / 0.6271 GB, free: 1.938 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002875/0.6871, allocations: 1.536 MB / 0.6286 GB, free: 392 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/0.6871, allocations: 16 kB / 0.6286 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.6871, allocations: 0 / 0.6286 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.6871, allocations: 7.969 kB / 0.6286 GB, free: 368 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004465/0.6916, allocations: 2.712 MB / 0.6313 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.6916, allocations: 0 / 0.6313 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006419/0.6923, allocations: 151.7 kB / 0.6314 GB, free: 13.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.6936, allocations: 498.9 kB / 0.6319 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.219e-05/0.6937, allocations: 12 kB / 0.6319 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005803/0.6995, allocations: 4.133 MB / 0.6359 GB, free: 8.688 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/0.6995, allocations: 4 kB / 0.6359 GB, free: 8.684 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003815/0.7033, allocations: 2.241 MB / 0.6381 GB, free: 6.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000442/0.7038, allocations: 287.7 kB / 0.6384 GB, free: 6.109 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.7039, allocations: 7.938 kB / 0.6384 GB, free: 6.102 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006006/0.7045, allocations: 36.05 kB / 0.6384 GB, free: 6.066 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.7047, allocations: 97.16 kB / 0.6385 GB, free: 5.973 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.671e-05/0.7048, allocations: 32 kB / 0.6386 GB, free: 5.941 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002812/0.7051, allocations: 255 kB / 0.6388 GB, free: 5.691 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7051, allocations: 0 / 0.6388 GB, free: 5.691 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001235/0.7064, allocations: 370.8 kB / 0.6392 GB, free: 5.328 MB / 442.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 (86): * Single equations (assignments): 85 * 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.0002929/0.7067, allocations: 159.1 kB / 0.6393 GB, free: 5.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002797/0.7095, allocations: 1.579 MB / 0.6409 GB, free: 3.574 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7095, allocations: 1.188 kB / 0.6409 GB, free: 3.574 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.7113, allocations: 1.062 MB / 0.6419 GB, free: 2.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004878/0.7118, allocations: 49.97 kB / 0.6419 GB, free: 2.449 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004651/0.7164, allocations: 2.059 MB / 0.644 GB, free: 368 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007592/0.7172, allocations: 1.107 MB / 0.645 GB, free: 15.22 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005322/0.7178, allocations: 106.7 kB / 0.6451 GB, free: 15.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.7179, allocations: 59.42 kB / 0.6452 GB, free: 15.05 MB / 458.7 MB Notification: Performance of SimCode: time 7.11e-07/0.7179, allocations: 3.938 kB / 0.6452 GB, free: 15.05 MB / 458.7 MB Notification: Performance of Templates: time 0.02355/0.7415, allocations: 14.86 MB / 0.6597 GB, free: 220 kB / 458.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)