Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 104.9 kB / 17.06 MB, free: 6.027 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.001152/0.001153, allocations: 195 kB / 17.99 MB, free: 5.109 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.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1986/0.1986, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 67.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3734, allocations: 58.05 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003168/0.3766, allocations: 2.107 MB / 0.5057 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002728/0.3794, allocations: 2.039 MB / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.175e-05/0.3794, allocations: 0 / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.3796, allocations: 11.05 kB / 0.5077 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.908e-05/0.3797, allocations: 32.16 kB / 0.5077 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002346/0.3821, allocations: 0.8258 MB / 0.5085 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.3822, allocations: 72.3 kB / 0.5086 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.373e-05/0.3823, allocations: 3.578 kB / 0.5086 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.426e-05/0.3824, allocations: 36.19 kB / 0.5086 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.494e-05/0.3825, allocations: 36.91 kB / 0.5087 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.3825, allocations: 6.625 kB / 0.5087 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.3846, allocations: 1.407 MB / 0.51 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.694e-05/0.3846, allocations: 21.45 kB / 0.5101 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.685e-05/0.3847, allocations: 26.25 kB / 0.5101 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001805/0.3865, allocations: 1.324 MB / 0.5114 GB, free: 3.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3865, allocations: 1.281 kB / 0.5114 GB, free: 3.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3865, allocations: 0 / 0.5114 GB, free: 3.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.3865, allocations: 4.516 kB / 0.5114 GB, free: 3.609 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006217/0.3871, allocations: 0.5206 MB / 0.5119 GB, free: 3.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3872, allocations: 14.83 kB / 0.5119 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.029e-05/0.3872, allocations: 33.11 kB / 0.5119 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.3873, allocations: 13.25 kB / 0.512 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.3874, allocations: 191.3 kB / 0.5121 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-06/0.3874, allocations: 2.125 kB / 0.5121 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.3875, allocations: 0.9375 kB / 0.5121 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.3876, allocations: 69.56 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3876, allocations: 0 / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.3877, allocations: 0.5625 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3877, allocations: 1.312 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.955e-05/0.3877, allocations: 35.77 kB / 0.5122 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.3879, allocations: 170.4 kB / 0.5124 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.988e-05/0.3879, allocations: 57.77 kB / 0.5125 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.259e-05/0.388, allocations: 51.38 kB / 0.5125 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.388, allocations: 5.594 kB / 0.5125 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.618e-05/0.3881, allocations: 31.84 kB / 0.5125 GB, free: 2.504 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.203e-06/0.3881, allocations: 0 / 0.5125 GB, free: 2.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003702/0.3885, allocations: 198.7 kB / 0.5127 GB, free: 2.414 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.3885, allocations: 90.58 kB / 0.5128 GB, free: 2.316 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.3886, allocations: 134.8 kB / 0.5129 GB, free: 2.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.3886, allocations: 28 kB / 0.513 GB, free: 2.176 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.648e-05/0.3887, allocations: 92.11 kB / 0.5131 GB, free: 2.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.3887, allocations: 48.64 kB / 0.5131 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.3888, allocations: 23.89 kB / 0.5131 GB, free: 2.027 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.625e-05/0.3889, allocations: 325.8 kB / 0.5134 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.62e-05/0.3889, allocations: 30.69 kB / 0.5135 GB, free: 1.703 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.733e-05/0.389, allocations: 32.42 kB / 0.5135 GB, free: 1.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.3892, allocations: 160.6 kB / 0.5137 GB, free: 1.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3892, allocations: 1.125 kB / 0.5137 GB, free: 1.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001872/0.3894, allocations: 160.9 kB / 0.5138 GB, free: 1.527 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.051e-05/0.3894, allocations: 46.98 kB / 0.5139 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.3894, allocations: 4 kB / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.3895, allocations: 0 / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.3895, allocations: 1.828 kB / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.3895, allocations: 0 / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.439e-05/0.3895, allocations: 6.531 kB / 0.5139 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.3895, allocations: 5.172 kB / 0.5139 GB, free: 1.488 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.000104/0.3897, allocations: 164.9 kB / 0.514 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.115e-05/0.3897, allocations: 13.78 kB / 0.514 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.63e-05/0.3897, allocations: 13 kB / 0.5141 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3897, allocations: 2.578 kB / 0.5141 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3897, allocations: 1.797 kB / 0.5141 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.3897, allocations: 3.938 kB / 0.5141 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.853e-05/0.3898, allocations: 179.5 kB / 0.5142 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3898, allocations: 1.5 kB / 0.5142 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.3898, allocations: 0.5625 kB / 0.5142 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.3898, allocations: 0 / 0.5142 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.3899, allocations: 8.562 kB / 0.5142 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3899, allocations: 0 / 0.5142 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3899, allocations: 4.5 kB / 0.5142 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003338/0.3902, allocations: 293.6 kB / 0.5145 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.943e-05/0.3903, allocations: 84.62 kB / 0.5146 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.3903, allocations: 2.188 kB / 0.5146 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.751e-05/0.3903, allocations: 2.25 kB / 0.5146 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.302e-05/0.3903, allocations: 2.859 kB / 0.5146 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.3904, allocations: 9.438 kB / 0.5146 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.858e-05/0.3904, allocations: 108.7 kB / 0.5147 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3904, allocations: 4.031 kB / 0.5147 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001124/0.3916, allocations: 319 kB / 0.515 GB, free: 0.7422 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.0015/0.3931, allocations: 1.084 MB / 0.5161 GB, free: 12 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005041/0.3936, allocations: 302.2 kB / 0.5164 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3936, allocations: 0.6562 kB / 0.5164 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002511/0.3938, allocations: 221.4 kB / 0.5166 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.3941, allocations: 16.84 kB / 0.5166 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.3962, allocations: 1.942 MB / 0.5185 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.3966, allocations: 0.7033 MB / 0.5192 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.246e-05/0.3966, allocations: 5.188 kB / 0.5192 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.236e-05/0.3967, allocations: 24.47 kB / 0.5192 GB, free: 13.68 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3967, allocations: 0 / 0.5192 GB, free: 13.68 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].