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.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.SinglePhase.SerialConnection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|v.re|v.im",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection") Notification: Performance of loadModel(ModelicaTest): time 2.226/2.226, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.000439, allocations: 15.98 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2727, allocations: 54.86 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.008801/0.2815, allocations: 5.604 MB / 374.8 MB, free: 5.082 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00488/0.2864, allocations: 1.969 MB / 376.8 MB, free: 3.105 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007505/0.2872, allocations: 20 kB / 376.8 MB, free: 3.086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006794/0.2879, allocations: 222.6 kB / 377 MB, free: 2.867 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00275/0.2907, allocations: 0.7946 MB / 377.8 MB, free: 2.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001693/0.2924, allocations: 474.9 kB / 378.3 MB, free: 1.605 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001581/0.294, allocations: 0.7801 MB / 379 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003157/0.2972, allocations: 1.233 MB / 380.3 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006371/0.2978, allocations: 394.5 kB / 380.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007451/0.2986, allocations: 0.5174 MB / 381.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.2987, allocations: 48 kB / 381.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006571/0.2994, allocations: 203.7 kB / 381.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.2996, allocations: 191.2 kB / 381.6 MB, free: 14.22 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002507/0.2999, allocations: 205.2 kB / 381.8 MB, free: 14.01 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.3015, allocations: 1.064 MB / 382.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.835e-06/0.3015, allocations: 4 kB / 382.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.138e-06/0.3015, allocations: 0 / 382.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.3015, allocations: 0 / 382.9 MB, free: 12.94 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.004796/0.3063, allocations: 1.475 MB / 384.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3064, allocations: 8.031 kB / 384.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01331/0.3197, allocations: 1.431 MB / 385.8 MB, free: 9.973 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.3209, allocations: 0.5082 MB / 386.3 MB, free: 9.426 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.3211, allocations: 90.45 kB / 386.4 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003226/0.3214, allocations: 120 kB / 386.5 MB, free: 9.219 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003054/0.3245, allocations: 1.173 MB / 387.7 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.776e-05/0.3246, allocations: 11.91 kB / 387.7 MB, free: 8.008 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.3248, allocations: 55.95 kB / 387.7 MB, free: 7.953 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.238e-05/0.3248, allocations: 31.94 kB / 387.8 MB, free: 7.922 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003543/0.3284, allocations: 1.427 MB / 389.2 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.3389, allocations: 4.831 MB / 394 MB, free: 1.344 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.3416, allocations: 1.194 MB / 395.2 MB, free: 68 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001904/0.3419, allocations: 102.1 kB / 395.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/0.3419, allocations: 51.55 kB / 395.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=91): time 4.386e-06/0.3419, allocations: 0 / 395.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=91): time 0.003263/0.3452, allocations: 1.204 MB / 396.6 MB, free: 14.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.3453, allocations: 64.41 kB / 396.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.3467, allocations: 0.7658 MB / 397.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.765e-05/0.3469, allocations: 41.7 kB / 397.4 MB, free: 13.74 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004372/0.3473, allocations: 493.2 kB / 397.9 MB, free: 13.25 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003536/0.3477, allocations: 311.5 kB / 398.2 MB, free: 12.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.153e-05/0.3478, allocations: 24 kB / 398.3 MB, free: 12.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.348, allocations: 346.8 kB / 398.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009614/0.349, allocations: 346.5 kB / 398.9 MB, free: 12.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.3502, allocations: 0.6102 MB / 399.5 MB, free: 11.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.3514, allocations: 430.8 kB / 400 MB, free: 11.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.3514, allocations: 0 / 400 MB, free: 11.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003075/0.3545, allocations: 1.131 MB / 401.1 MB, free: 9.949 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/0.3545, allocations: 8 kB / 401.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.3546, allocations: 8 kB / 401.1 MB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003784/0.355, allocations: 73.98 kB / 401.2 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.3563, allocations: 263.6 kB / 401.4 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002982/0.3593, allocations: 2.635 MB / 404.1 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.3604, allocations: 154.2 kB / 404.2 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.3606, allocations: 55.89 kB / 404.3 MB, free: 6.492 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (141): * Single equations (assignments): 139 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005767/0.3612, allocations: 253.7 kB / 404.5 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002228/0.3614, allocations: 90.95 kB / 404.6 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/0.3642, allocations: 1.114 MB / 405.7 MB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/0.3642, allocations: 11.95 kB / 405.7 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.3642, allocations: 4 kB / 405.7 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.3643, allocations: 3.984 kB / 405.7 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005608/0.3699, allocations: 2.714 MB / 408.5 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.3699, allocations: 4.781 kB / 408.5 MB, free: 2.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000977/0.3709, allocations: 191.7 kB / 408.7 MB, free: 1.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003027/0.3712, allocations: 61.67 kB / 408.7 MB, free: 1.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.059e-05/0.3713, allocations: 24 kB / 408.7 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002919/0.3743, allocations: 2.643 MB / 411.4 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-05/0.3743, allocations: 15.89 kB / 411.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003393/0.3777, allocations: 1.476 MB / 412.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004208/0.3782, allocations: 211.7 kB / 413.1 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001727/0.3784, allocations: 27.95 kB / 413.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008128/0.3792, allocations: 60.03 kB / 413.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.3794, allocations: 80.45 kB / 413.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.352e-05/0.3795, allocations: 32 kB / 413.3 MB, free: 12.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001027/0.3805, allocations: 0.5381 MB / 413.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.3805, allocations: 0 / 413.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001296/0.3819, allocations: 287.5 kB / 414.1 MB, free: 12.01 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.pin_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 (94): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0003422/0.3822, allocations: 163 kB / 414.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.3849, allocations: 1.089 MB / 415.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.379e-06/0.385, allocations: 0 / 415.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.3864, allocations: 0.6365 MB / 416 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008614/0.3873, allocations: 106.9 kB / 416.1 MB, free: 9.957 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004405/0.3917, allocations: 2.144 MB / 418.2 MB, free: 7.707 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008648/0.3926, allocations: 1.008 MB / 419.2 MB, free: 6.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005123/0.3931, allocations: 87.42 kB / 419.3 MB, free: 6.582 MB / 346.7 MB Notification: Performance of SimCode: time 4.065e-06/0.3931, allocations: 0 / 419.3 MB, free: 6.582 MB / 346.7 MB Notification: Performance of Templates: time 0.03166/0.4248, allocations: 18.96 MB / 438.3 MB, free: 3.59 MB / 362.7 MB