Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008406/0.0008406, allocations: 182.6 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.196/1.196, allocations: 225.7 MB / 243.2 MB, free: 10.26 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.0007713/0.0007712, allocations: 98.69 kB / 294.4 MB, free: 9.781 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.2691/0.2691, allocations: 38.18 MB / 383.7 MB, free: 40.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002927, allocations: 8 kB / 453.5 MB, free: 8.887 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2766, allocations: 59.15 MB / 0.5007 GB, free: 38.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002049/0.2787, allocations: 1.908 MB / 0.5025 GB, free: 38.82 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2801, allocations: 1.432 MB / 0.5039 GB, free: 38.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.514e-05/0.2802, allocations: 3.344 kB / 0.5039 GB, free: 38.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.2803, allocations: 10.81 kB / 0.504 GB, free: 38.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.2804, allocations: 55.7 kB / 0.504 GB, free: 38.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006783/0.2811, allocations: 244.3 kB / 0.5042 GB, free: 38.21 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.2814, allocations: 270 kB / 0.5045 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.011e-05/0.2814, allocations: 5.219 kB / 0.5045 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.446e-05/0.2815, allocations: 50.22 kB / 0.5046 GB, free: 38.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.2816, allocations: 78.5 kB / 0.5046 GB, free: 38.17 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.2817, allocations: 2.656 kB / 0.5046 GB, free: 38.17 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005302/0.2822, allocations: 378.1 kB / 0.505 GB, free: 38.15 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.2823, allocations: 41.19 kB / 0.505 GB, free: 38.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.861e-05/0.2823, allocations: 69.06 kB / 0.5051 GB, free: 38.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006651/0.283, allocations: 0.5202 MB / 0.5056 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.283, allocations: 0 / 0.5056 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.283, allocations: 1.75 kB / 0.5056 GB, free: 38.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.283, allocations: 0 / 0.5056 GB, free: 38.05 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003268/0.2834, allocations: 450.4 kB / 0.506 GB, free: 37.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2834, allocations: 10.53 kB / 0.506 GB, free: 37.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.2835, allocations: 13.09 kB / 0.5061 GB, free: 37.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.2836, allocations: 193.5 kB / 0.5062 GB, free: 37.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.2836, allocations: 5.656 kB / 0.5062 GB, free: 37.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.2836, allocations: 6.406 kB / 0.5063 GB, free: 37.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.2838, allocations: 94.91 kB / 0.5063 GB, free: 37.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.2838, allocations: 0 / 0.5063 GB, free: 37.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.2838, allocations: 0 / 0.5063 GB, free: 37.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.2838, allocations: 1.156 kB / 0.5063 GB, free: 37.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.087e-05/0.2839, allocations: 60.38 kB / 0.5064 GB, free: 37.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001088/0.284, allocations: 183.8 kB / 0.5066 GB, free: 37.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.2841, allocations: 131.3 kB / 0.5067 GB, free: 37.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.2843, allocations: 120.4 kB / 0.5068 GB, free: 37.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.672e-06/0.2843, allocations: 0 / 0.5068 GB, free: 37.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.2843, allocations: 33.39 kB / 0.5069 GB, free: 37.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 8.21e-07/0.2843, allocations: 0.9062 kB / 0.5069 GB, free: 37.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004032/0.2847, allocations: 296.5 kB / 0.5071 GB, free: 37.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.2848, allocations: 94.95 kB / 0.5072 GB, free: 36.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.286e-05/0.2848, allocations: 134.4 kB / 0.5074 GB, free: 36.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.859e-06/0.2849, allocations: 28.17 kB / 0.5074 GB, free: 36.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.004e-05/0.2849, allocations: 93.67 kB / 0.5075 GB, free: 36.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.705e-05/0.285, allocations: 59.94 kB / 0.5075 GB, free: 36.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.285, allocations: 0.9688 kB / 0.5075 GB, free: 36.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.979e-05/0.285, allocations: 325.6 kB / 0.5078 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.474e-05/0.2851, allocations: 59.61 kB / 0.5079 GB, free: 36.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.097e-05/0.2852, allocations: 56.14 kB / 0.5079 GB, free: 36.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.2854, allocations: 226.5 kB / 0.5082 GB, free: 36.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2854, allocations: 0 / 0.5082 GB, free: 36.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002332/0.2856, allocations: 232.2 kB / 0.5084 GB, free: 36.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.938e-05/0.2857, allocations: 53.83 kB / 0.5084 GB, free: 36.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2857, allocations: 1.875 kB / 0.5084 GB, free: 36.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.2857, allocations: 1 kB / 0.5084 GB, free: 36.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.2857, allocations: 0.5156 kB / 0.5084 GB, free: 36.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.2857, allocations: 1.031 kB / 0.5084 GB, free: 36.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.306e-05/0.2858, allocations: 11.91 kB / 0.5085 GB, free: 36.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.2858, allocations: 17.7 kB / 0.5085 GB, free: 36.16 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.0001034/0.2859, allocations: 181.2 kB / 0.5086 GB, free: 36.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.286, allocations: 12.94 kB / 0.5087 GB, free: 36.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.323e-05/0.286, allocations: 10.77 kB / 0.5087 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.286, allocations: 5.656 kB / 0.5087 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.286, allocations: 0 / 0.5087 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.286, allocations: 0.9688 kB / 0.5087 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.2861, allocations: 196 kB / 0.5089 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2861, allocations: 1.031 kB / 0.5089 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.2861, allocations: 4.562 kB / 0.5089 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2861, allocations: 0.7969 kB / 0.5089 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.2862, allocations: 6.812 kB / 0.5089 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2862, allocations: 0.7969 kB / 0.5089 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2862, allocations: 2.062 kB / 0.5089 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004391/0.2866, allocations: 390.1 kB / 0.5092 GB, free: 35.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.483e-05/0.2866, allocations: 89.27 kB / 0.5093 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.2867, allocations: 5.812 kB / 0.5093 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.336e-05/0.2867, allocations: 5 kB / 0.5093 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.671e-05/0.2868, allocations: 4.156 kB / 0.5093 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.2868, allocations: 6.688 kB / 0.5094 GB, free: 35.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.427e-05/0.2868, allocations: 104.4 kB / 0.5095 GB, free: 35.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2868, allocations: 0 / 0.5095 GB, free: 35.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004133/0.2873, allocations: 138.4 kB / 0.5096 GB, free: 35.5 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.0004062/0.2877, allocations: 198.5 kB / 0.5098 GB, free: 35.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005285/0.2882, allocations: 0.5705 MB / 0.5103 GB, free: 35.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2882, allocations: 1.5 kB / 0.5103 GB, free: 35.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.2885, allocations: 471.5 kB / 0.5108 GB, free: 34.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000198/0.2887, allocations: 22.95 kB / 0.5108 GB, free: 34.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004526/0.2892, allocations: 437.4 kB / 0.5112 GB, free: 34.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.2893, allocations: 0.7193 MB / 0.5119 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.464e-05/0.2893, allocations: 2.625 kB / 0.5119 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.315e-06/0.2893, allocations: 11.44 kB / 0.5119 GB, free: 33.89 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2893, allocations: 0 / 0.5119 GB, free: 33.89 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].