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.229/2.229, allocations: 234.9 MB / 250.5 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004435/0.0004436, allocations: 8 kB / 314.4 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.2999, allocations: 54.86 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.143/0.443, allocations: 94.89 MB / 464.2 MB, free: 13.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.4433, allocations: 87.89 kB / 464.2 MB, free: 13.64 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.134/0.5773, allocations: 38.81 MB / 0.4913 GB, free: 6.363 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.409e-06/0.5773, allocations: 0 / 0.4913 GB, free: 6.363 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.035e-05/0.5774, allocations: 20 kB / 0.4913 GB, free: 6.344 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.006833/0.5843, allocations: 1.729 MB / 0.493 GB, free: 4.562 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.5843, allocations: 12.03 kB / 0.493 GB, free: 4.551 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009447/0.5938, allocations: 1.06 MB / 0.494 GB, free: 3.488 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/0.5954, allocations: 0.5719 MB / 0.4946 GB, free: 2.875 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.5955, allocations: 102.7 kB / 0.4947 GB, free: 2.773 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003144/0.5958, allocations: 132 kB / 0.4948 GB, free: 2.645 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004171/0.6, allocations: 1.507 MB / 0.4963 GB, free: 1.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.019e-05/0.6001, allocations: 0 / 0.4963 GB, free: 1.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002025/0.6003, allocations: 56 kB / 0.4963 GB, free: 1.035 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.794e-05/0.6004, allocations: 43.95 kB / 0.4964 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3024/0.9028, allocations: 1.579 MB / 0.4979 GB, free: 101.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01111/0.9139, allocations: 5.465 MB / 0.5032 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002778/0.9167, allocations: 2.373 MB / 0.5056 GB, free: 98.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002013/0.917, allocations: 109.9 kB / 0.5057 GB, free: 98.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.917, allocations: 52.12 kB / 0.5057 GB, free: 98.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 4.453e-06/0.917, allocations: 0 / 0.5057 GB, free: 98.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.01113/0.9282, allocations: 3.125 MB / 0.5088 GB, free: 98.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.9283, allocations: 96.64 kB / 0.5089 GB, free: 98.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000566/0.9288, allocations: 395.7 kB / 0.5092 GB, free: 98.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.929, allocations: 48.27 kB / 0.5093 GB, free: 98.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002063/0.9292, allocations: 0.492 MB / 0.5098 GB, free: 97.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000318/0.9295, allocations: 429.1 kB / 0.5102 GB, free: 97.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.435e-05/0.9296, allocations: 26.44 kB / 0.5102 GB, free: 97.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.417e-05/0.9297, allocations: 361.3 kB / 0.5105 GB, free: 97.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.9309, allocations: 471.5 kB / 0.511 GB, free: 97.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.9323, allocations: 0.7109 MB / 0.5117 GB, free: 96.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.9336, allocations: 0.5319 MB / 0.5122 GB, free: 96.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.842e-06/0.9337, allocations: 0 / 0.5122 GB, free: 96.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004048/0.9377, allocations: 1.594 MB / 0.5138 GB, free: 96.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.9378, allocations: 7.062 kB / 0.5138 GB, free: 96.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.9378, allocations: 9.594 kB / 0.5138 GB, free: 96.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001926/0.9397, allocations: 0.5114 MB / 0.5143 GB, free: 96.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009925/0.9408, allocations: 211.8 kB / 0.5145 GB, free: 96.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008754/0.9495, allocations: 4.419 MB / 0.5188 GB, free: 95.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.9507, allocations: 131.2 kB / 0.5189 GB, free: 95.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.9508, allocations: 50.59 kB / 0.519 GB, free: 95.05 MB / 426.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 () * Number of clocked 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.0006142/0.9514, allocations: 281.2 kB / 0.5192 GB, free: 94.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.9517, allocations: 76 kB / 0.5193 GB, free: 94.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/0.9552, allocations: 1.583 MB / 0.5209 GB, free: 94.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/0.9553, allocations: 11.69 kB / 0.5209 GB, free: 94.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.753e-06/0.9553, allocations: 4 kB / 0.5209 GB, free: 94.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/0.9553, allocations: 7.688 kB / 0.5209 GB, free: 94.07 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/0.9613, allocations: 2.903 MB / 0.5237 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.83e-06/0.9613, allocations: 4.031 kB / 0.5237 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008702/0.9622, allocations: 151.8 kB / 0.5239 GB, free: 92.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00192/0.9642, allocations: 0.5071 MB / 0.5244 GB, free: 92.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.9643, allocations: 28.64 kB / 0.5244 GB, free: 92.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008273/0.9726, allocations: 4.405 MB / 0.5287 GB, free: 89.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.709e-06/0.9726, allocations: 3.562 kB / 0.5287 GB, free: 89.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005253/0.9779, allocations: 2.328 MB / 0.531 GB, free: 88.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006164/0.9786, allocations: 296.5 kB / 0.5312 GB, free: 88.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.9787, allocations: 22.25 kB / 0.5313 GB, free: 88.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008462/0.9796, allocations: 53.66 kB / 0.5313 GB, free: 88.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/0.9799, allocations: 103.2 kB / 0.5314 GB, free: 88.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.98, allocations: 35.12 kB / 0.5314 GB, free: 88.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004221/0.9805, allocations: 294.8 kB / 0.5317 GB, free: 87.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.78e-07/0.9805, allocations: 0 / 0.5317 GB, free: 87.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001608/0.9821, allocations: 420.4 kB / 0.5321 GB, free: 87.85 MB / 426.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 () * Number of clocked 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.0003264/0.9824, allocations: 180.9 kB / 0.5323 GB, free: 87.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004034/0.9865, allocations: 1.778 MB / 0.534 GB, free: 86.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.9865, allocations: 0 / 0.534 GB, free: 86.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002858/0.9894, allocations: 1.168 MB / 0.5352 GB, free: 86.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007275/0.9901, allocations: 79.45 kB / 0.5353 GB, free: 86.42 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006764/0.9969, allocations: 3.14 MB / 0.5383 GB, free: 84.44 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006431/0.9976, allocations: 1.102 MB / 0.5394 GB, free: 83.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003803/0.998, allocations: 67.05 kB / 0.5395 GB, free: 83.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.978e-06/0.998, allocations: 0 / 0.5395 GB, free: 83.41 MB / 426.7 MB Notification: Performance of Templates: time 0.02511/1.023, allocations: 16.95 MB / 0.556 GB, free: 72.84 MB / 426.7 MB