Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 183.8 kB / 16.71 MB, free: 4.969 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.208/1.208, allocations: 225.7 MB / 243.2 MB, free: 10.23 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.0007199/0.0007197, allocations: 97.14 kB / 294.4 MB, free: 9.746 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.2828/0.2828, allocations: 38.19 MB / 383.7 MB, free: 40.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002787, allocations: 12 kB / 453.6 MB, free: 8.828 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2487, allocations: 59.14 MB / 0.5007 GB, free: 39.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.001978/0.2508, allocations: 1.855 MB / 0.5025 GB, free: 39.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002842/0.2536, allocations: 3.236 MB / 0.5057 GB, free: 37.47 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.143e-05/0.2537, allocations: 0 / 0.5057 GB, free: 37.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.2539, allocations: 13.2 kB / 0.5057 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.52e-05/0.254, allocations: 28.27 kB / 0.5057 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001871/0.2558, allocations: 0.6819 MB / 0.5064 GB, free: 37.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.256, allocations: 125.9 kB / 0.5065 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.028e-05/0.256, allocations: 3.734 kB / 0.5065 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.784e-05/0.2561, allocations: 33.78 kB / 0.5065 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.952e-05/0.2562, allocations: 39.17 kB / 0.5066 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.2562, allocations: 2.531 kB / 0.5066 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.258, allocations: 1.16 MB / 0.5077 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.139e-05/0.258, allocations: 7.766 kB / 0.5077 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/0.2581, allocations: 50.84 kB / 0.5077 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.2594, allocations: 1.271 MB / 0.509 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2594, allocations: 1.062 kB / 0.509 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2594, allocations: 3.938 kB / 0.509 GB, free: 36.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.2594, allocations: 0 / 0.509 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003921/0.2598, allocations: 499.4 kB / 0.5095 GB, free: 36.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.2599, allocations: 10.03 kB / 0.5095 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.2599, allocations: 3.312 kB / 0.5095 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.26, allocations: 195.2 kB / 0.5097 GB, free: 36.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-06/0.26, allocations: 0 / 0.5097 GB, free: 36.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.26, allocations: 13.55 kB / 0.5097 GB, free: 36.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.2602, allocations: 60.41 kB / 0.5097 GB, free: 36.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.2602, allocations: 3.234 kB / 0.5097 GB, free: 36.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.2602, allocations: 5.031 kB / 0.5097 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-06/0.2602, allocations: 0 / 0.5097 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.93e-05/0.2602, allocations: 20.91 kB / 0.5098 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.724e-05/0.2603, allocations: 167.8 kB / 0.5099 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.722e-05/0.2604, allocations: 45.97 kB / 0.51 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.663e-05/0.2604, allocations: 33.75 kB / 0.51 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.2604, allocations: 1.969 kB / 0.51 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.2605, allocations: 31.97 kB / 0.51 GB, free: 35.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.2605, allocations: 0 / 0.51 GB, free: 35.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002158/0.2607, allocations: 152.7 kB / 0.5102 GB, free: 35.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.2607, allocations: 91.52 kB / 0.5103 GB, free: 35.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.514e-05/0.2608, allocations: 125.8 kB / 0.5104 GB, free: 35.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.384e-06/0.2608, allocations: 26.8 kB / 0.5104 GB, free: 35.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.886e-05/0.2608, allocations: 86.2 kB / 0.5105 GB, free: 35.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.2609, allocations: 28.45 kB / 0.5105 GB, free: 35.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.2609, allocations: 0.9375 kB / 0.5105 GB, free: 35.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.812e-05/0.2609, allocations: 322.4 kB / 0.5108 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.335e-05/0.261, allocations: 22.42 kB / 0.5108 GB, free: 35.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.78e-05/0.261, allocations: 23.48 kB / 0.5109 GB, free: 35.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.279e-05/0.2611, allocations: 130 kB / 0.511 GB, free: 35.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2611, allocations: 0 / 0.511 GB, free: 35.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001212/0.2612, allocations: 127.7 kB / 0.5111 GB, free: 35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.2613, allocations: 43.34 kB / 0.5112 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.2613, allocations: 2.5 kB / 0.5112 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.819e-06/0.2613, allocations: 0 / 0.5112 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.2613, allocations: 0 / 0.5112 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.2613, allocations: 5.453 kB / 0.5112 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.11e-05/0.2613, allocations: 6.094 kB / 0.5112 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.2614, allocations: 3.969 kB / 0.5112 GB, free: 34.96 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 6.91e-05/0.2614, allocations: 168 kB / 0.5113 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.2615, allocations: 4.406 kB / 0.5113 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.069e-05/0.2615, allocations: 7.578 kB / 0.5113 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2615, allocations: 3.422 kB / 0.5114 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2615, allocations: 4.969 kB / 0.5114 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.2615, allocations: 0 / 0.5114 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.101e-05/0.2616, allocations: 178.5 kB / 0.5115 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2616, allocations: 0 / 0.5115 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.2616, allocations: 0 / 0.5115 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.2616, allocations: 2.562 kB / 0.5115 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.2616, allocations: 11.25 kB / 0.5115 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.2616, allocations: 3.938 kB / 0.5115 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2616, allocations: 0 / 0.5115 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.2618, allocations: 222.5 kB / 0.5118 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.2618, allocations: 83.89 kB / 0.5118 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.2619, allocations: 3.344 kB / 0.5118 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.164e-05/0.2619, allocations: 1.594 kB / 0.5118 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.2619, allocations: 9.828 kB / 0.5118 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.2619, allocations: 2.656 kB / 0.5119 GB, free: 34.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.099e-05/0.262, allocations: 92.7 kB / 0.5119 GB, free: 34.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.262, allocations: 3.594 kB / 0.5119 GB, free: 34.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005525/0.2625, allocations: 311.9 kB / 0.5122 GB, free: 34.24 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.0007224/0.2632, allocations: 384.6 kB / 0.5126 GB, free: 34.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001848/0.2634, allocations: 207.9 kB / 0.5128 GB, free: 34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2635, allocations: 0 / 0.5128 GB, free: 34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.392e-05/0.2635, allocations: 148.7 kB / 0.5129 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.2637, allocations: 9.875 kB / 0.513 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000282/0.264, allocations: 276.1 kB / 0.5132 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.433e-05/0.2641, allocations: 0.6901 MB / 0.5139 GB, free: 33.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.738e-06/0.2641, allocations: 3.188 kB / 0.5139 GB, free: 33.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.033e-06/0.2641, allocations: 14.38 kB / 0.5139 GB, free: 33.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2641, allocations: 0 / 0.5139 GB, free: 33.04 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].