Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 114.3 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1853/0.1853, allocations: 38.06 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.91 kB / 458.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4122, allocations: 58.06 MB / 0.5041 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003262/0.4155, allocations: 2.156 MB / 0.5062 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.4185, allocations: 2.04 MB / 0.5082 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.948e-05/0.4186, allocations: 1.062 kB / 0.5082 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.4188, allocations: 14.3 kB / 0.5082 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.4189, allocations: 41.95 kB / 0.5083 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002454/0.4214, allocations: 0.8093 MB / 0.5091 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.4216, allocations: 96.81 kB / 0.5092 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.656e-05/0.4216, allocations: 18.42 kB / 0.5092 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.576e-05/0.4217, allocations: 35.53 kB / 0.5092 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.666e-05/0.4218, allocations: 56.41 kB / 0.5093 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.4219, allocations: 2.344 kB / 0.5093 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002451/0.4243, allocations: 1.377 MB / 0.5106 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.687e-05/0.4244, allocations: 27.5 kB / 0.5106 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.29e-05/0.4245, allocations: 48.27 kB / 0.5107 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002182/0.4267, allocations: 1.332 MB / 0.512 GB, free: 3.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4267, allocations: 4 kB / 0.512 GB, free: 3.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4267, allocations: 1.031 kB / 0.512 GB, free: 3.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.4267, allocations: 0.6094 kB / 0.512 GB, free: 3.805 MB / 382.1 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.0007084/0.4274, allocations: 0.542 MB / 0.5125 GB, free: 3.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.4275, allocations: 10.11 kB / 0.5125 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.4275, allocations: 14.34 kB / 0.5125 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.4277, allocations: 197.5 kB / 0.5127 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.4278, allocations: 12.06 kB / 0.5127 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.4278, allocations: 1.094 kB / 0.5127 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.428, allocations: 74.31 kB / 0.5128 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.428, allocations: 1.125 kB / 0.5128 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.428, allocations: 0 / 0.5128 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.428, allocations: 0 / 0.5128 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.197e-05/0.4281, allocations: 46.7 kB / 0.5129 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000163/0.4283, allocations: 176.2 kB / 0.513 GB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.4284, allocations: 85.17 kB / 0.5131 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.6e-05/0.4285, allocations: 65.39 kB / 0.5132 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.4285, allocations: 0 / 0.5132 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.4285, allocations: 32.36 kB / 0.5132 GB, free: 2.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 7.32e-07/0.4285, allocations: 1.188 kB / 0.5132 GB, free: 2.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004063/0.4289, allocations: 221.1 kB / 0.5134 GB, free: 2.605 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.429, allocations: 87.47 kB / 0.5135 GB, free: 2.512 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.4291, allocations: 149.6 kB / 0.5136 GB, free: 2.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.4291, allocations: 35.73 kB / 0.5137 GB, free: 2.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.4292, allocations: 98.58 kB / 0.5138 GB, free: 2.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.4292, allocations: 52.53 kB / 0.5138 GB, free: 2.227 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/0.4293, allocations: 21.05 kB / 0.5138 GB, free: 2.211 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.889e-05/0.4294, allocations: 330.1 kB / 0.5142 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.989e-05/0.4294, allocations: 37.53 kB / 0.5142 GB, free: 1.883 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.38e-05/0.4295, allocations: 37.48 kB / 0.5142 GB, free: 1.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.4297, allocations: 177 kB / 0.5144 GB, free: 1.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4297, allocations: 7.969 kB / 0.5144 GB, free: 1.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002256/0.4299, allocations: 174.6 kB / 0.5146 GB, free: 1.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.518e-05/0.43, allocations: 50.64 kB / 0.5146 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.43, allocations: 0 / 0.5146 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.43, allocations: 0.5625 kB / 0.5146 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.856e-06/0.43, allocations: 5.312 kB / 0.5146 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.4301, allocations: 0.75 kB / 0.5146 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.026e-05/0.4301, allocations: 2.969 kB / 0.5146 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.4302, allocations: 9.109 kB / 0.5146 GB, free: 1.656 MB / 382.1 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.0001131/0.4303, allocations: 175.3 kB / 0.5148 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.282e-05/0.4303, allocations: 20.22 kB / 0.5148 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.832e-05/0.4303, allocations: 9.188 kB / 0.5148 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.4303, allocations: 1.094 kB / 0.5148 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4303, allocations: 0.7031 kB / 0.5148 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.4303, allocations: 0 / 0.5148 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.4305, allocations: 202.7 kB / 0.515 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4305, allocations: 5.188 kB / 0.515 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.4305, allocations: 0 / 0.515 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4305, allocations: 4.734 kB / 0.515 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.4305, allocations: 8.125 kB / 0.515 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.4305, allocations: 2.062 kB / 0.515 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4305, allocations: 0 / 0.515 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003652/0.4309, allocations: 293.3 kB / 0.5153 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.373e-05/0.4309, allocations: 88.72 kB / 0.5154 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.4309, allocations: 2.531 kB / 0.5154 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.731e-05/0.431, allocations: 4.172 kB / 0.5154 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.431, allocations: 11.03 kB / 0.5154 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.431, allocations: 8.062 kB / 0.5154 GB, free: 1.012 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.376e-05/0.4311, allocations: 116.8 kB / 0.5155 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4311, allocations: 0 / 0.5155 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001284/0.4324, allocations: 331.2 kB / 0.5159 GB, free: 0.8828 MB / 382.1 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.001034/0.4335, allocations: 366.1 kB / 0.5162 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00041/0.4339, allocations: 337.2 kB / 0.5165 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4339, allocations: 0 / 0.5165 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.4341, allocations: 258.4 kB / 0.5168 GB, free: 420 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.4344, allocations: 21.19 kB / 0.5168 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005316/0.4349, allocations: 355.7 kB / 0.5171 GB, free: 212 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.4352, allocations: 0.7153 MB / 0.5178 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.689e-05/0.4352, allocations: 2.016 kB / 0.5178 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.127e-05/0.4352, allocations: 8.562 kB / 0.5178 GB, free: 15.5 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4352, allocations: 1.156 kB / 0.5178 GB, free: 15.5 MB / 398.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].