Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadModel(ModelicaTest): time 2.163/2.163, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.368e-05/1.384e-05, allocations: 0 / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2762, allocations: 54.86 MB / 358 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1415/0.4178, allocations: 94.13 MB / 452.2 MB, free: 0.582 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.4181, allocations: 79.95 kB / 452.2 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3649/0.783, allocations: 38.22 MB / 490.5 MB, free: 88.97 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.95e-06/0.7831, allocations: 3.812 kB / 490.5 MB, free: 88.97 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.826e-05/0.7831, allocations: 18.22 kB / 490.5 MB, free: 88.97 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 345 * Number of variables: 345 Notification: Performance of Generate backend data structure: time 0.006046/0.7892, allocations: 1.668 MB / 492.2 MB, free: 87.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.7893, allocations: 9.531 kB / 492.2 MB, free: 87.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008889/0.7982, allocations: 1.051 MB / 493.2 MB, free: 86.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.7993, allocations: 0.5726 MB / 493.8 MB, free: 86.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.916e-05/0.7994, allocations: 44 kB / 493.8 MB, free: 86.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002312/0.7997, allocations: 83.94 kB / 493.9 MB, free: 86.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00297/0.8027, allocations: 1.411 MB / 495.3 MB, free: 84.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002556/0.8052, allocations: 1.205 MB / 496.5 MB, free: 83.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.294e-05/0.8053, allocations: 0 / 496.5 MB, free: 83.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.8055, allocations: 11.94 kB / 496.5 MB, free: 83.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/0.8055, allocations: 32 kB / 496.6 MB, free: 83.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009034/0.8146, allocations: 5.231 MB / 0.49 GB, free: 78.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00223/0.8169, allocations: 2.304 MB / 0.4923 GB, free: 75.51 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009928/0.8179, allocations: 0.5869 MB / 0.4929 GB, free: 74.92 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001544/0.8181, allocations: 106.3 kB / 0.493 GB, free: 74.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.8181, allocations: 51.88 kB / 0.493 GB, free: 74.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 5.395e-06/0.8181, allocations: 0 / 0.493 GB, free: 74.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.003465/0.8216, allocations: 1.318 MB / 0.4943 GB, free: 73.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.8217, allocations: 90.42 kB / 0.4944 GB, free: 73.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004132/0.8221, allocations: 321.1 kB / 0.4947 GB, free: 72.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.355e-05/0.8222, allocations: 29.64 kB / 0.4947 GB, free: 72.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.8224, allocations: 0.5056 MB / 0.4952 GB, free: 72.44 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002972/0.8227, allocations: 421.6 kB / 0.4956 GB, free: 72.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.8228, allocations: 0 / 0.4956 GB, free: 72.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.218e-05/0.8229, allocations: 358.8 kB / 0.496 GB, free: 71.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008142/0.8237, allocations: 394.6 kB / 0.4963 GB, free: 71.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009323/0.8247, allocations: 0.6418 MB / 0.497 GB, free: 70.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/0.8269, allocations: 0.662 MB / 0.4976 GB, free: 69.87 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.8269, allocations: 7.953 kB / 0.4976 GB, free: 69.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004344/0.8313, allocations: 1.564 MB / 0.4992 GB, free: 68.29 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.8313, allocations: 12.58 kB / 0.4992 GB, free: 68.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.8313, allocations: 12 kB / 0.4992 GB, free: 68.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/0.8332, allocations: 0.4889 MB / 0.4997 GB, free: 67.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009997/0.8342, allocations: 207.7 kB / 0.4998 GB, free: 67.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007555/0.8418, allocations: 4.147 MB / 0.5039 GB, free: 63.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.8429, allocations: 94.89 kB / 0.504 GB, free: 63.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.843, allocations: 52 kB / 0.504 GB, free: 63.17 MB / 394.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.0003705/0.8434, allocations: 188.4 kB / 0.5042 GB, free: 62.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.8436, allocations: 75.06 kB / 0.5043 GB, free: 62.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003992/0.8476, allocations: 1.532 MB / 0.5058 GB, free: 61.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.8477, allocations: 16 kB / 0.5058 GB, free: 61.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.8477, allocations: 0 / 0.5058 GB, free: 61.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.8477, allocations: 3.984 kB / 0.5058 GB, free: 61.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00597/0.8537, allocations: 2.719 MB / 0.5085 GB, free: 58.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.8538, allocations: 0 / 0.5085 GB, free: 58.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008803/0.8546, allocations: 147.8 kB / 0.5086 GB, free: 58.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002018/0.8567, allocations: 0.4911 MB / 0.5091 GB, free: 57.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.8568, allocations: 4 kB / 0.5091 GB, free: 57.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007191/0.864, allocations: 4.133 MB / 0.5131 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.825e-06/0.8641, allocations: 4 kB / 0.5131 GB, free: 53.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005048/0.8691, allocations: 2.245 MB / 0.5153 GB, free: 51.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005513/0.8697, allocations: 295.8 kB / 0.5156 GB, free: 51.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.8699, allocations: 3.984 kB / 0.5156 GB, free: 51.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007383/0.8706, allocations: 27.98 kB / 0.5156 GB, free: 51.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.8709, allocations: 105.2 kB / 0.5157 GB, free: 50.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.871, allocations: 36 kB / 0.5158 GB, free: 50.95 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003003/0.8713, allocations: 239 kB / 0.516 GB, free: 50.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.8713, allocations: 0 / 0.516 GB, free: 50.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001497/0.8729, allocations: 370.8 kB / 0.5163 GB, free: 50.35 MB / 394.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.0003064/0.8732, allocations: 146.3 kB / 0.5165 GB, free: 50.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003302/0.8765, allocations: 1.588 MB / 0.518 GB, free: 48.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.8765, allocations: 3.938 kB / 0.518 GB, free: 48.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002192/0.8787, allocations: 1.052 MB / 0.5191 GB, free: 47.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007524/0.8795, allocations: 57.78 kB / 0.5191 GB, free: 47.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005666/0.8852, allocations: 2.049 MB / 0.5211 GB, free: 45.42 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006373/0.8859, allocations: 1.099 MB / 0.5222 GB, free: 44.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.8863, allocations: 71.42 kB / 0.5223 GB, free: 44.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.703e-06/0.8863, allocations: 0 / 0.5223 GB, free: 44.23 MB / 394.7 MB Notification: Performance of Templates: time 0.02316/0.9094, allocations: 16.68 MB / 0.5386 GB, free: 27.52 MB / 394.7 MB