Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 182.6 kB / 16.71 MB, free: 4.961 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.206/1.206, allocations: 225.7 MB / 243.2 MB, free: 8.527 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.0007781/0.0007783, allocations: 99.28 kB / 294.4 MB, free: 9.523 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.2776/0.2776, allocations: 38.2 MB / 383.7 MB, free: 40.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002678/0.0002678, allocations: 8 kB / 453.6 MB, free: 8.777 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.263, allocations: 59.15 MB / 0.5007 GB, free: 38.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002546/0.2656, allocations: 1.905 MB / 0.5025 GB, free: 38.78 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003058/0.2687, allocations: 3.238 MB / 0.5057 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.648e-05/0.2687, allocations: 3.938 kB / 0.5057 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.2689, allocations: 10.3 kB / 0.5057 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001036/0.269, allocations: 36.44 kB / 0.5058 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.2706, allocations: 0.6717 MB / 0.5064 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.2708, allocations: 186.3 kB / 0.5066 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.019e-05/0.2709, allocations: 5.75 kB / 0.5066 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.271, allocations: 46.62 kB / 0.5066 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.2712, allocations: 60.8 kB / 0.5067 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.2712, allocations: 2.812 kB / 0.5067 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001767/0.2729, allocations: 1.141 MB / 0.5078 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.789e-05/0.273, allocations: 28.11 kB / 0.5078 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.873e-05/0.2731, allocations: 68.19 kB / 0.5079 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001441/0.2745, allocations: 1.272 MB / 0.5091 GB, free: 36.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2745, allocations: 3.328 kB / 0.5092 GB, free: 36.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2746, allocations: 1.656 kB / 0.5092 GB, free: 36.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.2746, allocations: 1.938 kB / 0.5092 GB, free: 36.6 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000458/0.275, allocations: 0.5302 MB / 0.5097 GB, free: 36.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2751, allocations: 10.34 kB / 0.5097 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.2751, allocations: 13.12 kB / 0.5097 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.2753, allocations: 193 kB / 0.5099 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.2753, allocations: 4.125 kB / 0.5099 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.2753, allocations: 4.031 kB / 0.5099 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.2755, allocations: 74.59 kB / 0.51 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2755, allocations: 3.328 kB / 0.51 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-06/0.2755, allocations: 0 / 0.51 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2755, allocations: 1.219 kB / 0.51 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.911e-05/0.2756, allocations: 43.34 kB / 0.51 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001121/0.2757, allocations: 179.2 kB / 0.5102 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.572e-05/0.2758, allocations: 74.86 kB / 0.5102 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.616e-05/0.2759, allocations: 62.28 kB / 0.5103 GB, free: 35.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.2759, allocations: 0 / 0.5103 GB, free: 35.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.468e-05/0.2759, allocations: 32.56 kB / 0.5103 GB, free: 35.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 8.11e-07/0.2759, allocations: 0 / 0.5103 GB, free: 35.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003074/0.2762, allocations: 231.6 kB / 0.5106 GB, free: 35.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.2763, allocations: 84.67 kB / 0.5106 GB, free: 35.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.962e-05/0.2764, allocations: 153.5 kB / 0.5108 GB, free: 35.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.2764, allocations: 29.23 kB / 0.5108 GB, free: 35.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.894e-05/0.2764, allocations: 98.84 kB / 0.5109 GB, free: 35.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.2764, allocations: 47.72 kB / 0.511 GB, free: 35.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-06/0.2765, allocations: 0 / 0.511 GB, free: 35.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.649e-05/0.2765, allocations: 324.9 kB / 0.5113 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.579e-05/0.2766, allocations: 39.02 kB / 0.5113 GB, free: 34.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.875e-05/0.2766, allocations: 46.25 kB / 0.5113 GB, free: 34.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.2767, allocations: 174.5 kB / 0.5115 GB, free: 34.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2767, allocations: 7.875 kB / 0.5115 GB, free: 34.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001498/0.2769, allocations: 175.7 kB / 0.5117 GB, free: 34.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.2769, allocations: 50.2 kB / 0.5117 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.2769, allocations: 0 / 0.5117 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.277, allocations: 0.7812 kB / 0.5117 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.277, allocations: 4 kB / 0.5117 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.277, allocations: 0.7188 kB / 0.5117 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.534e-05/0.277, allocations: 7.281 kB / 0.5117 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.2771, allocations: 6.281 kB / 0.5118 GB, free: 34.5 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 8.556e-05/0.2771, allocations: 177.9 kB / 0.5119 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.2772, allocations: 12.41 kB / 0.5119 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.326e-05/0.2772, allocations: 7.688 kB / 0.5119 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.2772, allocations: 0 / 0.5119 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2772, allocations: 0 / 0.5119 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.2772, allocations: 0 / 0.5119 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.965e-05/0.2773, allocations: 198.7 kB / 0.5121 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.2773, allocations: 2.594 kB / 0.5121 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.2773, allocations: 1.656 kB / 0.5121 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.2773, allocations: 0 / 0.5121 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.2773, allocations: 6.234 kB / 0.5121 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2773, allocations: 2.906 kB / 0.5121 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2773, allocations: 0.5 kB / 0.5121 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002537/0.2776, allocations: 300.5 kB / 0.5124 GB, free: 33.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.26e-05/0.2776, allocations: 91.12 kB / 0.5125 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.2777, allocations: 3.031 kB / 0.5125 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.411e-05/0.2777, allocations: 2.75 kB / 0.5125 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/0.2777, allocations: 7.062 kB / 0.5125 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2777, allocations: 3.719 kB / 0.5125 GB, free: 33.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.753e-05/0.2778, allocations: 116.9 kB / 0.5126 GB, free: 33.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2778, allocations: 0.75 kB / 0.5126 GB, free: 33.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005746/0.2784, allocations: 332.8 kB / 0.513 GB, free: 33.75 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.0007157/0.2791, allocations: 385.7 kB / 0.5133 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002753/0.2794, allocations: 333.4 kB / 0.5136 GB, free: 33.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2794, allocations: 0 / 0.5136 GB, free: 33.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.2795, allocations: 261.8 kB / 0.5139 GB, free: 33.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.2798, allocations: 17.2 kB / 0.5139 GB, free: 33.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004277/0.2802, allocations: 394.3 kB / 0.5143 GB, free: 33.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.2803, allocations: 0.7164 MB / 0.515 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.474e-05/0.2804, allocations: 6.344 kB / 0.515 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.027e-06/0.2804, allocations: 11.38 kB / 0.515 GB, free: 32.36 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2804, allocations: 0 / 0.515 GB, free: 32.36 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].