Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008662/0.0008663, allocations: 183.6 kB / 16.71 MB, free: 4.973 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.186/1.186, allocations: 225.7 MB / 243.2 MB, free: 10.2 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000723/0.000723, allocations: 98.02 kB / 294.4 MB, free: 9.75 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2579/0.2579, allocations: 38.18 MB / 383.7 MB, free: 40.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002666/0.0002666, allocations: 8 kB / 453.6 MB, free: 8.836 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2756, allocations: 59.14 MB / 0.5007 GB, free: 39.01 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002358/0.278, allocations: 1.859 MB / 0.5025 GB, free: 38.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002977/0.281, allocations: 3.24 MB / 0.5057 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.735e-05/0.2811, allocations: 0 / 0.5057 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.2812, allocations: 11.98 kB / 0.5057 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.493e-05/0.2813, allocations: 24.08 kB / 0.5057 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00176/0.2831, allocations: 0.6846 MB / 0.5064 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.2833, allocations: 124.1 kB / 0.5065 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.59e-05/0.2833, allocations: 4.719 kB / 0.5065 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.683e-05/0.2834, allocations: 36.69 kB / 0.5065 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.807e-05/0.2835, allocations: 53.2 kB / 0.5066 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.2835, allocations: 3.875 kB / 0.5066 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/0.2853, allocations: 1.159 MB / 0.5077 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.786e-05/0.2854, allocations: 45.06 kB / 0.5078 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.949e-05/0.2854, allocations: 82.19 kB / 0.5078 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001563/0.287, allocations: 1.328 MB / 0.5091 GB, free: 36.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.287, allocations: 0.7812 kB / 0.5091 GB, free: 36.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.287, allocations: 0 / 0.5091 GB, free: 36.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.287, allocations: 3.031 kB / 0.5091 GB, free: 36.7 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005286/0.2876, allocations: 0.5921 MB / 0.5097 GB, free: 36.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.2876, allocations: 9.375 kB / 0.5097 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.2877, allocations: 19.41 kB / 0.5097 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.2878, allocations: 214.2 kB / 0.5099 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-06/0.2878, allocations: 4.812 kB / 0.5099 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.2878, allocations: 1.062 kB / 0.5099 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.288, allocations: 135.1 kB / 0.5101 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.2881, allocations: 1.219 kB / 0.5101 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.2881, allocations: 3.938 kB / 0.5101 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.2881, allocations: 3.938 kB / 0.5101 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.2882, allocations: 101.8 kB / 0.5102 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001494/0.2884, allocations: 205.8 kB / 0.5104 GB, free: 35.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.2885, allocations: 162.5 kB / 0.5105 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.2886, allocations: 147.3 kB / 0.5107 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.2887, allocations: 3.938 kB / 0.5107 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.2887, allocations: 34.16 kB / 0.5107 GB, free: 35.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.503e-06/0.2887, allocations: 0 / 0.5107 GB, free: 35.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0005042/0.2892, allocations: 490.7 kB / 0.5112 GB, free: 35.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.2892, allocations: 109.2 kB / 0.5113 GB, free: 35.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.2894, allocations: 166.2 kB / 0.5114 GB, free: 35.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.2894, allocations: 26.73 kB / 0.5115 GB, free: 35.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.634e-05/0.2894, allocations: 110.1 kB / 0.5116 GB, free: 34.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.322e-05/0.2895, allocations: 132.9 kB / 0.5117 GB, free: 34.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.2895, allocations: 1.281 kB / 0.5117 GB, free: 34.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.735e-05/0.2896, allocations: 336.4 kB / 0.512 GB, free: 34.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.55e-05/0.2897, allocations: 95.66 kB / 0.5121 GB, free: 34.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.491e-05/0.2898, allocations: 101.2 kB / 0.5122 GB, free: 34.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.29, allocations: 380.2 kB / 0.5126 GB, free: 34.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.29, allocations: 1.031 kB / 0.5126 GB, free: 34.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002788/0.2903, allocations: 341.2 kB / 0.5129 GB, free: 34.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.201e-05/0.2904, allocations: 84.64 kB / 0.513 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2904, allocations: 0 / 0.513 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2904, allocations: 3.375 kB / 0.513 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.2904, allocations: 1.031 kB / 0.513 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.2904, allocations: 3.984 kB / 0.513 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.542e-05/0.2905, allocations: 22.25 kB / 0.513 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.2905, allocations: 9.344 kB / 0.513 GB, free: 34.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.2907, allocations: 233.3 kB / 0.5132 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.2907, allocations: 26.66 kB / 0.5133 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.594e-05/0.2907, allocations: 16.95 kB / 0.5133 GB, free: 33.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2907, allocations: 2.375 kB / 0.5133 GB, free: 33.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2907, allocations: 4 kB / 0.5133 GB, free: 33.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.2907, allocations: 3.031 kB / 0.5133 GB, free: 33.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.2908, allocations: 232.9 kB / 0.5135 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.2908, allocations: 6.312 kB / 0.5135 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.2909, allocations: 3.938 kB / 0.5135 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2909, allocations: 0.9844 kB / 0.5135 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.2909, allocations: 6.531 kB / 0.5135 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.2909, allocations: 5.125 kB / 0.5135 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2909, allocations: 3.031 kB / 0.5135 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006891/0.2916, allocations: 0.9128 MB / 0.5144 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.655e-05/0.2916, allocations: 99.89 kB / 0.5145 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.2917, allocations: 5.875 kB / 0.5145 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.536e-05/0.2917, allocations: 5.781 kB / 0.5145 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.2917, allocations: 9.938 kB / 0.5145 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.2918, allocations: 12.22 kB / 0.5146 GB, free: 33.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.631e-05/0.2918, allocations: 135.9 kB / 0.5147 GB, free: 33.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2918, allocations: 0 / 0.5147 GB, free: 33.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009283/0.2928, allocations: 351.1 kB / 0.515 GB, free: 33.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008038/0.2936, allocations: 388.7 kB / 0.5154 GB, free: 33.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.2946, allocations: 1.596 MB / 0.5169 GB, free: 32.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2946, allocations: 0.5312 kB / 0.5169 GB, free: 32.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007375/0.2954, allocations: 1.369 MB / 0.5183 GB, free: 31.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.2956, allocations: 19.11 kB / 0.5183 GB, free: 31.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00076/0.2963, allocations: 0.7613 MB / 0.519 GB, free: 31.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.2965, allocations: 0.7536 MB / 0.5198 GB, free: 30.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.789e-05/0.2966, allocations: 0 / 0.5198 GB, free: 30.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.209e-05/0.2966, allocations: 10.41 kB / 0.5198 GB, free: 30.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2966, allocations: 3.938 kB / 0.5198 GB, free: 30.48 MB / 378.7 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].