Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001495/0.001495, allocations: 111.1 kB / 17.06 MB, free: 6.113 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.001678/0.001678, allocations: 199 kB / 18 MB, free: 5.188 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.399/1.399, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.91 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3691/0.3704, allocations: 58.04 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003421/0.3739, allocations: 2.099 MB / 0.5057 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003141/0.377, allocations: 2.037 MB / 0.5077 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.202e-05/0.3772, allocations: 0 / 0.5077 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002258/0.3775, allocations: 23.36 kB / 0.5077 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.3776, allocations: 25.81 kB / 0.5077 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002622/0.3802, allocations: 0.8364 MB / 0.5085 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.3804, allocations: 72.55 kB / 0.5086 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.528e-05/0.3805, allocations: 4.156 kB / 0.5086 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.057e-05/0.3806, allocations: 45.06 kB / 0.5086 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.428e-05/0.3806, allocations: 40.7 kB / 0.5087 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.3807, allocations: 1.5 kB / 0.5087 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002861/0.3835, allocations: 1.404 MB / 0.5101 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.154e-05/0.3836, allocations: 15.38 kB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.312e-05/0.3837, allocations: 19.59 kB / 0.5101 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003008/0.3867, allocations: 1.315 MB / 0.5114 GB, free: 3.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.3867, allocations: 1.031 kB / 0.5114 GB, free: 3.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3868, allocations: 4 kB / 0.5114 GB, free: 3.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3868, allocations: 0 / 0.5114 GB, free: 3.559 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009173/0.3877, allocations: 0.506 MB / 0.5119 GB, free: 3.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.3878, allocations: 14.98 kB / 0.5119 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.062e-05/0.3878, allocations: 36.17 kB / 0.5119 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.3878, allocations: 9.562 kB / 0.5119 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.388, allocations: 178.1 kB / 0.5121 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.388, allocations: 1.219 kB / 0.5121 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.388, allocations: 1.5 kB / 0.5121 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.3882, allocations: 58.36 kB / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.3882, allocations: 0.9688 kB / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.3882, allocations: 0 / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.3882, allocations: 1.094 kB / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.822e-05/0.3883, allocations: 26.48 kB / 0.5122 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001371/0.3884, allocations: 168.2 kB / 0.5123 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.24e-05/0.3885, allocations: 45.19 kB / 0.5124 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.77e-05/0.3885, allocations: 33.58 kB / 0.5124 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.3886, allocations: 5.281 kB / 0.5124 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.635e-05/0.3886, allocations: 31.22 kB / 0.5125 GB, free: 2.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.3886, allocations: 1.094 kB / 0.5125 GB, free: 2.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002926/0.3889, allocations: 166.4 kB / 0.5126 GB, free: 2.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.3889, allocations: 84.53 kB / 0.5127 GB, free: 2.297 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.23e-05/0.389, allocations: 121.9 kB / 0.5128 GB, free: 2.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-06/0.389, allocations: 26.83 kB / 0.5128 GB, free: 2.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.645e-05/0.3891, allocations: 95.73 kB / 0.5129 GB, free: 2.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.581e-05/0.3891, allocations: 21.66 kB / 0.5129 GB, free: 2.051 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.3892, allocations: 21.33 kB / 0.513 GB, free: 2.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.151e-05/0.3892, allocations: 320.5 kB / 0.5133 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.378e-05/0.3893, allocations: 23.28 kB / 0.5133 GB, free: 1.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.628e-05/0.3893, allocations: 22.44 kB / 0.5133 GB, free: 1.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.3894, allocations: 130.6 kB / 0.5134 GB, free: 1.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3894, allocations: 0 / 0.5134 GB, free: 1.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001677/0.3896, allocations: 121.8 kB / 0.5136 GB, free: 1.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.348e-05/0.3897, allocations: 49.25 kB / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3897, allocations: 0 / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.3897, allocations: 2.531 kB / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.3897, allocations: 0 / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3897, allocations: 4.641 kB / 0.5136 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.259e-05/0.3898, allocations: 5.844 kB / 0.5136 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.3898, allocations: 8.062 kB / 0.5136 GB, free: 1.504 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.0001056/0.3899, allocations: 156.2 kB / 0.5138 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/0.3899, allocations: 8.281 kB / 0.5138 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.814e-05/0.39, allocations: 11.83 kB / 0.5138 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.39, allocations: 0 / 0.5138 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.39, allocations: 0.6562 kB / 0.5138 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.39, allocations: 1.094 kB / 0.5138 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.3901, allocations: 177.7 kB / 0.514 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3901, allocations: 0 / 0.514 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.3901, allocations: 0.5156 kB / 0.514 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3901, allocations: 0 / 0.514 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.3901, allocations: 8.078 kB / 0.514 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3902, allocations: 0.5625 kB / 0.514 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3902, allocations: 9.031 kB / 0.514 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00031/0.3905, allocations: 222.3 kB / 0.5142 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.3905, allocations: 80.38 kB / 0.5143 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.3906, allocations: 2.281 kB / 0.5143 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.48e-05/0.3906, allocations: 6.438 kB / 0.5143 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.3906, allocations: 1.766 kB / 0.5143 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.3906, allocations: 4.531 kB / 0.5143 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.851e-05/0.3907, allocations: 100.4 kB / 0.5144 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3907, allocations: 4.031 kB / 0.5144 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001914/0.3926, allocations: 318.4 kB / 0.5147 GB, free: 0.7773 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.002162/0.3948, allocations: 1.008 MB / 0.5157 GB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004605/0.3953, allocations: 201.1 kB / 0.5159 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3953, allocations: 0.5938 kB / 0.5159 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.3955, allocations: 149.6 kB / 0.516 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.3958, allocations: 11.58 kB / 0.516 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.3985, allocations: 1.701 MB / 0.5177 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.3989, allocations: 0.6975 MB / 0.5184 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.509e-05/0.3989, allocations: 1.797 kB / 0.5184 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/0.399, allocations: 17.62 kB / 0.5184 GB, free: 13.87 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.399, allocations: 0 / 0.5184 GB, free: 13.87 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].