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.MultiPhase.SerialConnection.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.MultiPhase.SerialConnection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|v.1..re|v.1..im|v.2..re|v.2..im|v.3..re|v.3..im",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection") Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004363, allocations: 12 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3088, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection): time 0.03967/0.3486, allocations: 16.63 MB / 385.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0193/0.3679, allocations: 4.634 MB / 390.4 MB, free: 5.395 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004759/0.3728, allocations: 119.6 kB / 390.6 MB, free: 5.277 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004881/0.3777, allocations: 0.9635 MB / 391.5 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008457/0.3862, allocations: 1.862 MB / 393.4 MB, free: 2.441 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004292/0.3905, allocations: 0.9509 MB / 394.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01377/0.4043, allocations: 7.758 MB / 402.1 MB, free: 9.719 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07853/0.4829, allocations: 21.1 MB / 423.2 MB, free: 4.516 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01243/0.4954, allocations: 4.123 MB / 427.3 MB, free: 388 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02468/0.5201, allocations: 4.875 MB / 432.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003817/0.524, allocations: 0.6836 MB / 432.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00636/0.5304, allocations: 0.8278 MB / 433.7 MB, free: 9.973 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006062/0.5365, allocations: 2.254 MB / 436 MB, free: 7.711 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006952/0.5435, allocations: 2.344 MB / 438.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03789/0.5814, allocations: 19.71 MB / 458 MB, free: 1.598 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.5815, allocations: 0 / 458 MB, free: 1.598 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.49e-06/0.5815, allocations: 0 / 458 MB, free: 1.598 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004106/0.5819, allocations: 0 / 458 MB, free: 1.598 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3353 * Number of variables: 3353 Notification: Performance of Generate backend data structure: time 0.03863/0.6206, allocations: 12.06 MB / 470.1 MB, free: 5.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.6206, allocations: 8.031 kB / 470.1 MB, free: 5.434 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6654/1.286, allocations: 12.47 MB / 482.5 MB, free: 71.05 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01512/1.301, allocations: 6.412 MB / 488.9 MB, free: 67.93 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009809/1.302, allocations: 0.8969 MB / 489.8 MB, free: 67.53 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004092/1.306, allocations: 1.187 MB / 491 MB, free: 67.14 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04666/1.353, allocations: 18.92 MB / 0.498 GB, free: 51.36 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005147/1.354, allocations: 11.91 kB / 0.498 GB, free: 51.34 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003092/1.357, allocations: 0.4953 MB / 0.4985 GB, free: 50.86 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006522/1.357, allocations: 0.6893 MB / 0.4992 GB, free: 50.17 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04518/1.403, allocations: 19.71 MB / 0.5184 GB, free: 30.44 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1333/1.536, allocations: 62.13 MB / 0.5791 GB, free: 15.56 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03352/1.569, allocations: 20.13 MB / 0.5987 GB, free: 10.25 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008337/1.57, allocations: 240.9 kB / 0.599 GB, free: 10.02 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/1.571, allocations: 111.6 kB / 0.5991 GB, free: 9.902 MB / 458.8 MB Notification: Performance of pre-optimization done (n=674): time 1.345e-05/1.571, allocations: 0 / 0.5991 GB, free: 9.902 MB / 458.8 MB Notification: Performance of matching and sorting (n=674): time 0.03243/1.603, allocations: 12.52 MB / 0.6113 GB, free: 13.16 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/1.603, allocations: 116.7 kB / 0.6114 GB, free: 13.04 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02021/1.623, allocations: 8.499 MB / 0.6197 GB, free: 4.547 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001069/1.625, allocations: 133.7 kB / 0.6198 GB, free: 4.41 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005169/1.63, allocations: 4.118 MB / 0.6239 GB, free: 280 kB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003643/1.633, allocations: 2.257 MB / 0.6261 GB, free: 14.03 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/1.635, allocations: 160 kB / 0.6262 GB, free: 13.88 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0009/1.636, allocations: 0.6413 MB / 0.6268 GB, free: 13.23 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01044/1.646, allocations: 4.173 MB / 0.6309 GB, free: 9.043 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0139/1.66, allocations: 7.195 MB / 0.6379 GB, free: 448 kB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01325/1.673, allocations: 5.727 MB / 0.6435 GB, free: 10.67 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001142/1.673, allocations: 28 kB / 0.6436 GB, free: 10.64 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1028) (initialization): time 0.316/1.989, allocations: 11.93 MB / 0.6552 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001404/1.99, allocations: 47.59 kB / 0.6553 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001898/1.99, allocations: 99 kB / 0.6554 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/1.991, allocations: 437.9 kB / 0.6558 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01068/2.002, allocations: 2.099 MB / 0.6578 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007741/2.01, allocations: 9.02 MB / 0.6666 GB, free: 148.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008959/2.019, allocations: 1.391 MB / 0.668 GB, free: 148.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001801/2.021, allocations: 396.6 kB / 0.6684 GB, free: 148.6 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1022): * Single equations (assignments): 1016 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01019/2.031, allocations: 4.632 MB / 0.6729 GB, free: 147.7 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001893/2.033, allocations: 0.7045 MB / 0.6736 GB, free: 147.5 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02613/2.059, allocations: 11.04 MB / 0.6844 GB, free: 143.3 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.949e-05/2.059, allocations: 69.12 kB / 0.6844 GB, free: 143.3 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.223e-05/2.059, allocations: 0 / 0.6844 GB, free: 143.3 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001413/2.059, allocations: 39.91 kB / 0.6845 GB, free: 143.3 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2642/2.323, allocations: 159.1 MB / 0.8398 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003884/2.324, allocations: 88 kB / 0.8399 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007995/2.332, allocations: 1.568 MB / 0.8415 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/2.333, allocations: 400.8 kB / 0.8418 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001291/2.335, allocations: 248 kB / 0.8421 GB, free: 9.535 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.303/2.638, allocations: 8.889 MB / 0.8507 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001817/2.638, allocations: 138.9 kB / 0.8509 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03295/2.671, allocations: 18.78 MB / 0.8692 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006005/2.677, allocations: 2.031 MB / 0.8712 GB, free: 155.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002493/2.679, allocations: 252.9 kB / 0.8714 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007641/2.687, allocations: 0.5664 MB / 0.872 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001837/2.689, allocations: 0.7466 MB / 0.8727 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00106/2.69, allocations: 316.6 kB / 0.873 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01224/2.702, allocations: 5.941 MB / 0.8788 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.453e-06/2.702, allocations: 3.094 kB / 0.8788 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01165/2.714, allocations: 2.665 MB / 0.8814 GB, free: 152.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 397 * Number of states: 1 (currentSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (741): * Single equations (assignments): 735 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001913/2.716, allocations: 0.4911 MB / 0.8819 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02152/2.737, allocations: 10.56 MB / 0.8922 GB, free: 148.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.616e-05/2.738, allocations: 11.81 kB / 0.8922 GB, free: 148.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01078/2.748, allocations: 5.505 MB / 0.8976 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009104/2.757, allocations: 1.349 MB / 0.8989 GB, free: 144.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05457/2.812, allocations: 27.89 MB / 0.9262 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01444/2.827, allocations: 7.76 MB / 0.9338 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003948/2.831, allocations: 0.6477 MB / 0.9344 GB, free: 110 MB / 0.5105 GB Notification: Performance of SimCode: time 2.406e-06/2.831, allocations: 0 / 0.9344 GB, free: 110 MB / 0.5105 GB Notification: Performance of Templates: time 1.47/4.3, allocations: 0.5097 GB / 1.444 GB, free: 179.6 MB / 0.5418 GB