Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008637/0.0008637, allocations: 185.9 kB / 16.71 MB, free: 4.938 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.19/1.19, allocations: 225.7 MB / 243.2 MB, free: 8.434 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.0008316/0.0008315, allocations: 85.81 kB / 294.4 MB, free: 9.477 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.2636/0.2636, allocations: 38.18 MB / 383.7 MB, free: 40.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 8 kB / 453.6 MB, free: 8.746 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2441, allocations: 59.16 MB / 0.5007 GB, free: 39.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.001764/0.2459, allocations: 1.859 MB / 0.5025 GB, free: 39.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.2485, allocations: 3.234 MB / 0.5057 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.497e-05/0.2485, allocations: 1.438 kB / 0.5057 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.2486, allocations: 11.31 kB / 0.5057 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.272e-05/0.2487, allocations: 25.78 kB / 0.5057 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001489/0.2502, allocations: 0.6816 MB / 0.5064 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.2504, allocations: 126.4 kB / 0.5065 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.827e-05/0.2504, allocations: 2.891 kB / 0.5065 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.51e-05/0.2505, allocations: 36.62 kB / 0.5065 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.49e-05/0.2506, allocations: 48.17 kB / 0.5066 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/0.2506, allocations: 2.219 kB / 0.5066 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001568/0.2522, allocations: 1.158 MB / 0.5077 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.466e-05/0.2522, allocations: 32.47 kB / 0.5077 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.734e-05/0.2523, allocations: 66.17 kB / 0.5078 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.2536, allocations: 1.3 MB / 0.5091 GB, free: 36.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2536, allocations: 1.125 kB / 0.5091 GB, free: 36.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2536, allocations: 0 / 0.5091 GB, free: 36.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.2536, allocations: 4.656 kB / 0.5091 GB, free: 36.92 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004162/0.254, allocations: 0.5475 MB / 0.5096 GB, free: 36.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.2541, allocations: 8.75 kB / 0.5096 GB, free: 36.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.2541, allocations: 15.56 kB / 0.5096 GB, free: 36.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.2542, allocations: 203.5 kB / 0.5098 GB, free: 36.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.2543, allocations: 1 kB / 0.5098 GB, free: 36.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.2543, allocations: 3.188 kB / 0.5098 GB, free: 36.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.2544, allocations: 101.2 kB / 0.5099 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.2544, allocations: 0 / 0.5099 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.2544, allocations: 0 / 0.5099 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.2545, allocations: 5.078 kB / 0.5099 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.158e-05/0.2545, allocations: 64.08 kB / 0.51 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001001/0.2546, allocations: 193.1 kB / 0.5102 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.724e-05/0.2547, allocations: 105.4 kB / 0.5103 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.376e-05/0.2548, allocations: 94.34 kB / 0.5104 GB, free: 35.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.2548, allocations: 0 / 0.5104 GB, free: 35.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.423e-05/0.2548, allocations: 32.91 kB / 0.5104 GB, free: 35.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 8.52e-07/0.2548, allocations: 0 / 0.5104 GB, free: 35.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003508/0.2552, allocations: 321 kB / 0.5107 GB, free: 35.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.2552, allocations: 103.2 kB / 0.5108 GB, free: 35.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.316e-05/0.2553, allocations: 147.5 kB / 0.5109 GB, free: 35.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.805e-06/0.2553, allocations: 27.61 kB / 0.511 GB, free: 35.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.594e-05/0.2554, allocations: 99.88 kB / 0.5111 GB, free: 35.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.2554, allocations: 81.17 kB / 0.5111 GB, free: 35.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-06/0.2554, allocations: 1.031 kB / 0.5111 GB, free: 35.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.194e-05/0.2555, allocations: 335.3 kB / 0.5115 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.45e-05/0.2555, allocations: 56.92 kB / 0.5115 GB, free: 34.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.512e-05/0.2556, allocations: 59.97 kB / 0.5116 GB, free: 34.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.2558, allocations: 253.9 kB / 0.5118 GB, free: 34.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2558, allocations: 2.094 kB / 0.5118 GB, free: 34.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001844/0.256, allocations: 241.2 kB / 0.5121 GB, free: 34.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.256, allocations: 63.73 kB / 0.5121 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.256, allocations: 0 / 0.5121 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.256, allocations: 0 / 0.5121 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.2561, allocations: 0 / 0.5121 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.2561, allocations: 1.75 kB / 0.5121 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.671e-05/0.2561, allocations: 13.94 kB / 0.5121 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.2561, allocations: 9.141 kB / 0.5121 GB, free: 34.67 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.000101/0.2562, allocations: 197.8 kB / 0.5123 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.2563, allocations: 14.56 kB / 0.5123 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.266e-05/0.2563, allocations: 11.92 kB / 0.5124 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.2563, allocations: 0.7188 kB / 0.5124 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2563, allocations: 2.75 kB / 0.5124 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.2563, allocations: 4.688 kB / 0.5124 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.939e-05/0.2564, allocations: 208.6 kB / 0.5126 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2564, allocations: 2.188 kB / 0.5126 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.2564, allocations: 3.281 kB / 0.5126 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.2564, allocations: 0 / 0.5126 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.2564, allocations: 5.562 kB / 0.5126 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.2564, allocations: 0 / 0.5126 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2564, allocations: 0 / 0.5126 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004086/0.2569, allocations: 0.5244 MB / 0.5131 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.098e-05/0.2569, allocations: 91.8 kB / 0.5132 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.2569, allocations: 6.047 kB / 0.5132 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.562e-05/0.257, allocations: 5.281 kB / 0.5132 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.257, allocations: 0.6562 kB / 0.5132 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.257, allocations: 8.5 kB / 0.5132 GB, free: 34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.746e-05/0.2571, allocations: 122.8 kB / 0.5133 GB, free: 33.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2571, allocations: 0 / 0.5133 GB, free: 33.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006148/0.2577, allocations: 333.5 kB / 0.5136 GB, free: 33.88 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.0007135/0.2584, allocations: 382.3 kB / 0.514 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005476/0.259, allocations: 0.7134 MB / 0.5147 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.259, allocations: 0 / 0.5147 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003377/0.2593, allocations: 0.5746 MB / 0.5152 GB, free: 33.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000173/0.2595, allocations: 9.156 kB / 0.5153 GB, free: 33.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005393/0.26, allocations: 0.5223 MB / 0.5158 GB, free: 32.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.2602, allocations: 0.7268 MB / 0.5165 GB, free: 32.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.726e-06/0.2602, allocations: 0 / 0.5165 GB, free: 32.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.304e-06/0.2602, allocations: 7.438 kB / 0.5165 GB, free: 32.15 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2602, allocations: 3.062 kB / 0.5165 GB, free: 32.15 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].