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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.14/2.14, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.584e-05/2.595e-05, allocations: 0 / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3168, allocations: 54.85 MB / 364.5 MB, free: 5.383 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.4578, allocations: 94.81 MB / 459.3 MB, free: 1.527 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.4581, allocations: 84.73 kB / 459.4 MB, free: 1.445 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1373/0.5954, allocations: 38.74 MB / 498.2 MB, free: 10.28 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.06e-06/0.5954, allocations: 0 / 498.2 MB, free: 10.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.047e-05/0.5955, allocations: 20 kB / 498.2 MB, free: 10.26 MB / 426.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.00685/0.6023, allocations: 1.678 MB / 499.9 MB, free: 8.535 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.6024, allocations: 8.031 kB / 499.9 MB, free: 8.527 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009793/0.6122, allocations: 1.052 MB / 0.4892 GB, free: 7.473 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.6137, allocations: 0.5728 MB / 0.4897 GB, free: 6.855 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.6138, allocations: 102.7 kB / 0.4898 GB, free: 6.754 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003004/0.6141, allocations: 132 kB / 0.49 GB, free: 6.625 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003534/0.6177, allocations: 1.453 MB / 0.4914 GB, free: 5.125 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.072e-05/0.6177, allocations: 3.906 kB / 0.4914 GB, free: 5.121 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001977/0.6179, allocations: 56 kB / 0.4914 GB, free: 5.066 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.924e-05/0.618, allocations: 43.94 kB / 0.4915 GB, free: 5.023 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003716/0.6217, allocations: 1.49 MB / 0.4929 GB, free: 3.527 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01215/0.6339, allocations: 5.463 MB / 0.4983 GB, free: 13.81 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003276/0.6372, allocations: 2.334 MB / 0.5006 GB, free: 11.2 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.6387, allocations: 0.6249 MB / 0.5012 GB, free: 10.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000217/0.6389, allocations: 110.1 kB / 0.5013 GB, free: 10.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/0.639, allocations: 55.5 kB / 0.5013 GB, free: 10.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=129): time 4.533e-06/0.639, allocations: 0 / 0.5013 GB, free: 10.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=129): time 0.003196/0.6422, allocations: 1.242 MB / 0.5025 GB, free: 9.125 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.6423, allocations: 94.11 kB / 0.5026 GB, free: 9.016 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006991/0.643, allocations: 379 kB / 0.503 GB, free: 8.637 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.6432, allocations: 45.7 kB / 0.503 GB, free: 8.586 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/0.6436, allocations: 0.5056 MB / 0.5035 GB, free: 8.074 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004877/0.6441, allocations: 425.8 kB / 0.5039 GB, free: 7.652 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.971e-05/0.6442, allocations: 28 kB / 0.504 GB, free: 7.625 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.6444, allocations: 362.7 kB / 0.5043 GB, free: 7.262 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.6455, allocations: 422.6 kB / 0.5047 GB, free: 6.848 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001313/0.6469, allocations: 0.6792 MB / 0.5054 GB, free: 6.066 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.6481, allocations: 0.4891 MB / 0.5058 GB, free: 5.578 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.6481, allocations: 3.938 kB / 0.5059 GB, free: 5.574 MB / 442.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003803/0.6519, allocations: 1.502 MB / 0.5073 GB, free: 4.062 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.652, allocations: 13.86 kB / 0.5073 GB, free: 4.051 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/0.6521, allocations: 15.97 kB / 0.5073 GB, free: 4.035 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/0.6542, allocations: 0.5045 MB / 0.5078 GB, free: 3.527 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.6554, allocations: 211.7 kB / 0.508 GB, free: 3.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009201/0.6646, allocations: 4.244 MB / 0.5122 GB, free: 14.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.6658, allocations: 130.7 kB / 0.5123 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.666, allocations: 55.98 kB / 0.5124 GB, free: 14.75 MB / 458.7 MB 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.0003495/0.6664, allocations: 176.7 kB / 0.5125 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.6666, allocations: 86.97 kB / 0.5126 GB, free: 14.49 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00386/0.6705, allocations: 1.501 MB / 0.5141 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.912e-05/0.6706, allocations: 16 kB / 0.5141 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.928e-06/0.6706, allocations: 0 / 0.5141 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/0.6706, allocations: 7.938 kB / 0.5141 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006954/0.6776, allocations: 2.814 MB / 0.5169 GB, free: 10.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.6777, allocations: 4 kB / 0.5169 GB, free: 10.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008903/0.6786, allocations: 147.8 kB / 0.517 GB, free: 9.922 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002031/0.6806, allocations: 0.5028 MB / 0.5175 GB, free: 9.422 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.6808, allocations: 28 kB / 0.5175 GB, free: 9.395 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01062/0.6914, allocations: 4.247 MB / 0.5217 GB, free: 5.008 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.6915, allocations: 11.98 kB / 0.5217 GB, free: 4.996 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00801/0.6995, allocations: 2.203 MB / 0.5238 GB, free: 2.762 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/0.7007, allocations: 307.5 kB / 0.5241 GB, free: 2.441 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002972/0.701, allocations: 20 kB / 0.5241 GB, free: 2.422 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/0.7025, allocations: 51.97 kB / 0.5242 GB, free: 2.371 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/0.7028, allocations: 101.2 kB / 0.5243 GB, free: 2.273 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.703, allocations: 32 kB / 0.5243 GB, free: 2.242 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00053/0.7035, allocations: 297.6 kB / 0.5246 GB, free: 1.949 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.051e-06/0.7035, allocations: 0 / 0.5246 GB, free: 1.949 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001716/0.7053, allocations: 411 kB / 0.525 GB, free: 1.547 MB / 458.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.0004124/0.7057, allocations: 183.7 kB / 0.5252 GB, free: 1.355 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.2919/0.9976, allocations: 1.676 MB / 0.5268 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/0.9977, allocations: 1.875 kB / 0.5268 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005295/1.003, allocations: 1.101 MB / 0.5279 GB, free: 122.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/1.005, allocations: 81.23 kB / 0.528 GB, free: 122.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/1.016, allocations: 2.117 MB / 0.53 GB, free: 122.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001467/1.018, allocations: 1.098 MB / 0.5311 GB, free: 121.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000759/1.018, allocations: 70.36 kB / 0.5312 GB, free: 121.6 MB / 458.7 MB Notification: Performance of SimCode: time 2.668e-06/1.018, allocations: 0 / 0.5312 GB, free: 121.6 MB / 458.7 MB Notification: Performance of Templates: time 0.03132/1.05, allocations: 16.96 MB / 0.5477 GB, free: 120.9 MB / 458.7 MB