Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008339/0.000834, allocations: 176.6 kB / 16.71 MB, free: 5.09 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.173/1.173, 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.0007186/0.0007187, allocations: 93.75 kB / 294.4 MB, free: 9.742 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.2703/0.2703, allocations: 38.18 MB / 383.7 MB, free: 40.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.00028, allocations: 8 kB / 453.5 MB, free: 8.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2458, allocations: 59.15 MB / 0.5007 GB, free: 38.94 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.001884/0.2477, allocations: 1.86 MB / 0.5025 GB, free: 38.78 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.2504, allocations: 3.229 MB / 0.5057 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.738e-05/0.2505, allocations: 7.875 kB / 0.5057 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.2506, allocations: 7.328 kB / 0.5057 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.577e-05/0.2507, allocations: 28.12 kB / 0.5057 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00164/0.2523, allocations: 0.6834 MB / 0.5064 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.2525, allocations: 123 kB / 0.5065 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.808e-05/0.2526, allocations: 5.031 kB / 0.5065 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.84e-05/0.2527, allocations: 35.53 kB / 0.5065 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.919e-05/0.2527, allocations: 43.16 kB / 0.5066 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.2528, allocations: 0.9062 kB / 0.5066 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.2545, allocations: 1.162 MB / 0.5077 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.897e-05/0.2545, allocations: 17.75 kB / 0.5077 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.266e-05/0.2546, allocations: 50.58 kB / 0.5078 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.256, allocations: 1.284 MB / 0.509 GB, free: 36.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2561, allocations: 0 / 0.509 GB, free: 36.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2561, allocations: 0 / 0.509 GB, free: 36.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.2561, allocations: 0 / 0.509 GB, free: 36.59 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004148/0.2565, allocations: 0.5044 MB / 0.5095 GB, free: 36.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.2565, allocations: 9.219 kB / 0.5095 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.2566, allocations: 12.31 kB / 0.5095 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.2567, allocations: 188.9 kB / 0.5097 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.2567, allocations: 6 kB / 0.5097 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.2567, allocations: 1 kB / 0.5097 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.2568, allocations: 75.55 kB / 0.5098 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.2569, allocations: 0.5625 kB / 0.5098 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.2569, allocations: 0.625 kB / 0.5098 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2569, allocations: 1.344 kB / 0.5098 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.713e-05/0.2569, allocations: 34.78 kB / 0.5098 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.699e-05/0.257, allocations: 174.3 kB / 0.51 GB, free: 35.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.623e-05/0.2571, allocations: 55.77 kB / 0.51 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.764e-05/0.2572, allocations: 50.92 kB / 0.5101 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-06/0.2572, allocations: 0 / 0.5101 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.2572, allocations: 41.5 kB / 0.5101 GB, free: 35.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 8.51e-07/0.2572, allocations: 0 / 0.5101 GB, free: 35.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002407/0.2575, allocations: 185.1 kB / 0.5103 GB, free: 35.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.2575, allocations: 93.2 kB / 0.5104 GB, free: 35.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.887e-05/0.2576, allocations: 128.4 kB / 0.5105 GB, free: 35.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-06/0.2576, allocations: 26.83 kB / 0.5105 GB, free: 35.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.247e-05/0.2576, allocations: 93.73 kB / 0.5106 GB, free: 35.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.2576, allocations: 39.97 kB / 0.5107 GB, free: 35.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.2577, allocations: 2.75 kB / 0.5107 GB, free: 35.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.096e-05/0.2577, allocations: 325.5 kB / 0.511 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.09e-05/0.2577, allocations: 30.06 kB / 0.511 GB, free: 34.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.64e-05/0.2578, allocations: 38.5 kB / 0.511 GB, free: 34.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.2579, allocations: 163.3 kB / 0.5112 GB, free: 34.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2579, allocations: 1.219 kB / 0.5112 GB, free: 34.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001663/0.2581, allocations: 153.9 kB / 0.5114 GB, free: 34.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.2581, allocations: 50.92 kB / 0.5114 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.2581, allocations: 0.6562 kB / 0.5114 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.2582, allocations: 1.031 kB / 0.5114 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.2582, allocations: 0.75 kB / 0.5114 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.2582, allocations: 0 / 0.5114 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.172e-05/0.2582, allocations: 10.12 kB / 0.5114 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.2582, allocations: 5.344 kB / 0.5114 GB, free: 34.57 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 7.389e-05/0.2583, allocations: 166.9 kB / 0.5116 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.2583, allocations: 13.81 kB / 0.5116 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/0.2584, allocations: 14.89 kB / 0.5116 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.2584, allocations: 0.5312 kB / 0.5116 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.2584, allocations: 0 / 0.5116 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2584, allocations: 1.656 kB / 0.5116 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.4e-05/0.2584, allocations: 187 kB / 0.5118 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.2585, allocations: 0 / 0.5118 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.2585, allocations: 0 / 0.5118 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.2585, allocations: 0.625 kB / 0.5118 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.2585, allocations: 2.844 kB / 0.5118 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.2585, allocations: 5.531 kB / 0.5118 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2585, allocations: 2.812 kB / 0.5118 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.2587, allocations: 288.5 kB / 0.5121 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.117e-05/0.2588, allocations: 87.97 kB / 0.5122 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.2588, allocations: 2.844 kB / 0.5122 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.623e-05/0.2588, allocations: 3.375 kB / 0.5122 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.07e-05/0.2588, allocations: 7.688 kB / 0.5122 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.2589, allocations: 3.719 kB / 0.5122 GB, free: 33.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.705e-05/0.2589, allocations: 108.2 kB / 0.5123 GB, free: 33.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2589, allocations: 1.844 kB / 0.5123 GB, free: 33.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006051/0.2595, allocations: 330.7 kB / 0.5126 GB, free: 33.82 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.0006916/0.2602, allocations: 384.4 kB / 0.513 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.2605, allocations: 299.5 kB / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2605, allocations: 0 / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.2606, allocations: 221.7 kB / 0.5135 GB, free: 33.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.2608, allocations: 11.38 kB / 0.5135 GB, free: 33.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00034/0.2611, allocations: 348.2 kB / 0.5138 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.611e-05/0.2612, allocations: 0.7031 MB / 0.5145 GB, free: 32.53 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.846e-06/0.2613, allocations: 0 / 0.5145 GB, free: 32.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.245e-06/0.2613, allocations: 14.61 kB / 0.5145 GB, free: 32.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2613, allocations: 4 kB / 0.5145 GB, free: 32.52 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].