Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009552/0.0009551, allocations: 172.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 100.6 kB / 281.6 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1967/0.1967, allocations: 44.15 MB / 376.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.395e-05/1.394e-05, allocations: 0 / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1661, allocations: 61.91 MB / 0.4947 GB, free: 1.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.396/0.5621, allocations: 101.8 MB / 0.5941 GB, free: 10.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.5624, allocations: 79.95 kB / 0.5941 GB, free: 10.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1096/0.672, allocations: 38.2 MB / 0.6315 GB, free: 3.969 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6721, allocations: 4 kB / 0.6315 GB, free: 3.965 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.931e-05/0.6722, allocations: 24 kB / 0.6315 GB, free: 3.941 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.006377/0.6786, allocations: 1.682 MB / 0.6331 GB, free: 2.211 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/0.6787, allocations: 19.92 kB / 0.6331 GB, free: 2.191 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007083/0.6857, allocations: 0.978 MB / 0.6341 GB, free: 1.211 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.687, allocations: 0.5871 MB / 0.6347 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/0.6871, allocations: 40 kB / 0.6347 GB, free: 0.5391 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001848/0.6872, allocations: 83.86 kB / 0.6348 GB, free: 468 kB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002499/0.6898, allocations: 1.36 MB / 0.6361 GB, free: 15.09 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.6919, allocations: 1.177 MB / 0.6373 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/0.6919, allocations: 0 / 0.6373 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.626e-05/0.692, allocations: 0 / 0.6373 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.102e-05/0.6921, allocations: 36 kB / 0.6373 GB, free: 13.83 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007796/0.6999, allocations: 5.23 MB / 0.6424 GB, free: 8.352 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/0.7021, allocations: 2.118 MB / 0.6445 GB, free: 5.992 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007795/0.7029, allocations: 0.5745 MB / 0.645 GB, free: 5.414 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.703, allocations: 106.4 kB / 0.6451 GB, free: 5.293 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.7031, allocations: 47.81 kB / 0.6452 GB, free: 5.238 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 3.307e-06/0.7031, allocations: 0 / 0.6452 GB, free: 5.238 MB / 458.7 MB Notification: Performance of matching and sorting (n=127): time 0.002512/0.7056, allocations: 1.306 MB / 0.6465 GB, free: 3.918 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.7057, allocations: 94.36 kB / 0.6466 GB, free: 3.805 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/0.7061, allocations: 325.1 kB / 0.6469 GB, free: 3.484 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.694e-05/0.7062, allocations: 25.7 kB / 0.6469 GB, free: 3.453 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/0.7064, allocations: 471.4 kB / 0.6473 GB, free: 2.984 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002879/0.7067, allocations: 405.9 kB / 0.6477 GB, free: 2.582 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.7068, allocations: 0 / 0.6477 GB, free: 2.582 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.707, allocations: 378.7 kB / 0.6481 GB, free: 2.203 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005946/0.7076, allocations: 390.6 kB / 0.6485 GB, free: 1.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007117/0.7083, allocations: 0.5934 MB / 0.649 GB, free: 1.152 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.7097, allocations: 0.6347 MB / 0.6497 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.7097, allocations: 0 / 0.6497 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002872/0.7126, allocations: 1.521 MB / 0.6511 GB, free: 14.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.7126, allocations: 7.984 kB / 0.6511 GB, free: 14.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.7126, allocations: 8 kB / 0.6512 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.7141, allocations: 0.4891 MB / 0.6516 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008039/0.7149, allocations: 191.7 kB / 0.6518 GB, free: 14.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00639/0.7213, allocations: 4.152 MB / 0.6559 GB, free: 10.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.7224, allocations: 90.95 kB / 0.656 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.7225, allocations: 51.98 kB / 0.656 GB, free: 9.883 MB / 474.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.0004226/0.723, allocations: 171.1 kB / 0.6562 GB, free: 9.711 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.7231, allocations: 75.06 kB / 0.6562 GB, free: 9.637 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003299/0.7264, allocations: 1.59 MB / 0.6578 GB, free: 8.035 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.7265, allocations: 12 kB / 0.6578 GB, free: 8.023 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.7265, allocations: 4 kB / 0.6578 GB, free: 8.02 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/0.7265, allocations: 11.92 kB / 0.6578 GB, free: 8.008 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004795/0.7313, allocations: 2.686 MB / 0.6604 GB, free: 5.266 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.7313, allocations: 4.031 kB / 0.6604 GB, free: 5.262 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006555/0.732, allocations: 147.8 kB / 0.6606 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.7334, allocations: 498.9 kB / 0.6611 GB, free: 4.633 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.36e-05/0.7335, allocations: 4 kB / 0.6611 GB, free: 4.629 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006078/0.7395, allocations: 4.125 MB / 0.6651 GB, free: 388 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.7396, allocations: 4 kB / 0.6651 GB, free: 384 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003834/0.7434, allocations: 2.226 MB / 0.6673 GB, free: 14.11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004463/0.7439, allocations: 283.8 kB / 0.6675 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.744, allocations: 4 kB / 0.6676 GB, free: 13.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006098/0.7446, allocations: 36.03 kB / 0.6676 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.7448, allocations: 97.11 kB / 0.6677 GB, free: 13.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.134e-05/0.7449, allocations: 35.98 kB / 0.6677 GB, free: 13.65 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002789/0.7452, allocations: 243 kB / 0.6679 GB, free: 13.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7452, allocations: 4 kB / 0.6679 GB, free: 13.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001232/0.7465, allocations: 362.9 kB / 0.6683 GB, free: 13.05 MB / 490.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.0003092/0.7468, allocations: 158.8 kB / 0.6684 GB, free: 12.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00283/0.7496, allocations: 1.563 MB / 0.67 GB, free: 11.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7496, allocations: 0 / 0.67 GB, free: 11.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.7515, allocations: 1.056 MB / 0.671 GB, free: 10.25 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.752, allocations: 49.86 kB / 0.6711 GB, free: 10.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004745/0.7568, allocations: 2.045 MB / 0.673 GB, free: 8.129 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007712/0.7575, allocations: 1.091 MB / 0.6741 GB, free: 7.012 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0006133/0.7582, allocations: 106.3 kB / 0.6742 GB, free: 6.906 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.7584, allocations: 59.42 kB / 0.6743 GB, free: 6.848 MB / 490.7 MB Notification: Performance of SimCode: time 1.383e-06/0.7584, allocations: 0 / 0.6743 GB, free: 6.848 MB / 490.7 MB Notification: Performance of Templates: time 0.02496/0.7833, allocations: 14.83 MB / 0.6888 GB, free: 8.129 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)