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.001765/0.001765, allocations: 113.4 kB / 17.05 MB, free: 6.086 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.002134/0.002134, allocations: 192 kB / 17.99 MB, free: 5.184 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.445/1.445, 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.1822/0.1822, allocations: 38.03 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 59.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3784, allocations: 58.06 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003418/0.3819, allocations: 2.09 MB / 0.5057 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002842/0.3848, allocations: 2.039 MB / 0.5077 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.914e-05/0.3848, allocations: 4 kB / 0.5077 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.385, allocations: 11.22 kB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.36e-05/0.3851, allocations: 31.56 kB / 0.5077 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002538/0.3877, allocations: 0.8273 MB / 0.5085 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001639/0.3878, allocations: 76.16 kB / 0.5086 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.206e-05/0.3879, allocations: 5.891 kB / 0.5086 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.946e-05/0.388, allocations: 40.06 kB / 0.5086 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.127e-05/0.3881, allocations: 36.78 kB / 0.5087 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.3881, allocations: 5.031 kB / 0.5087 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00235/0.3905, allocations: 1.404 MB / 0.51 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.309e-05/0.3905, allocations: 16.17 kB / 0.5101 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.769e-05/0.3906, allocations: 25.78 kB / 0.5101 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.3926, allocations: 1.335 MB / 0.5114 GB, free: 3.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.3926, allocations: 0 / 0.5114 GB, free: 3.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3927, allocations: 1.562 kB / 0.5114 GB, free: 3.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.3927, allocations: 0 / 0.5114 GB, free: 3.555 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.0006655/0.3933, allocations: 0.5315 MB / 0.5119 GB, free: 3.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3934, allocations: 13.22 kB / 0.5119 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.601e-05/0.3934, allocations: 34.59 kB / 0.512 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.3935, allocations: 11.72 kB / 0.512 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.3936, allocations: 200.1 kB / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.3936, allocations: 1 kB / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.875e-05/0.3937, allocations: 1.062 kB / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.3938, allocations: 69.42 kB / 0.5122 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.3938, allocations: 4 kB / 0.5122 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.3939, allocations: 1.469 kB / 0.5122 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.3939, allocations: 0 / 0.5122 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.723e-05/0.3939, allocations: 32.58 kB / 0.5123 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001199/0.3941, allocations: 174.8 kB / 0.5124 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.245e-05/0.3942, allocations: 57.03 kB / 0.5125 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.001e-05/0.3942, allocations: 47.62 kB / 0.5125 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.3942, allocations: 0 / 0.5125 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.3943, allocations: 40.22 kB / 0.5126 GB, free: 2.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.61e-07/0.3943, allocations: 0 / 0.5126 GB, free: 2.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003313/0.3946, allocations: 198.7 kB / 0.5128 GB, free: 2.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.3947, allocations: 87.56 kB / 0.5128 GB, free: 2.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.112e-05/0.3947, allocations: 128.7 kB / 0.513 GB, free: 2.141 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.678e-06/0.3948, allocations: 26.8 kB / 0.513 GB, free: 2.109 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.819e-05/0.3948, allocations: 92.03 kB / 0.5131 GB, free: 2.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.294e-05/0.3948, allocations: 36.66 kB / 0.5131 GB, free: 1.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-05/0.3949, allocations: 27.81 kB / 0.5131 GB, free: 1.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.386e-05/0.395, allocations: 324.9 kB / 0.5134 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.402e-05/0.395, allocations: 31.38 kB / 0.5135 GB, free: 1.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-05/0.3951, allocations: 32.02 kB / 0.5135 GB, free: 1.641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.3952, allocations: 162.2 kB / 0.5137 GB, free: 1.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3952, allocations: 0 / 0.5137 GB, free: 1.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001791/0.3954, allocations: 166 kB / 0.5138 GB, free: 1.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.154e-05/0.3955, allocations: 45.91 kB / 0.5139 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3955, allocations: 5.25 kB / 0.5139 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3955, allocations: 4.062 kB / 0.5139 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.3955, allocations: 0 / 0.5139 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.3955, allocations: 1.891 kB / 0.5139 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.693e-05/0.3956, allocations: 10.41 kB / 0.5139 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.3956, allocations: 4.234 kB / 0.5139 GB, free: 1.418 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 8.908e-05/0.3957, allocations: 160.9 kB / 0.514 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/0.3957, allocations: 11.45 kB / 0.5141 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.62e-05/0.3957, allocations: 13.56 kB / 0.5141 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3957, allocations: 0 / 0.5141 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3958, allocations: 5.547 kB / 0.5141 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.3958, allocations: 3.938 kB / 0.5141 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.924e-05/0.3959, allocations: 183.9 kB / 0.5143 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3959, allocations: 4.594 kB / 0.5143 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3959, allocations: 0 / 0.5143 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3959, allocations: 1.375 kB / 0.5143 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.3959, allocations: 4.203 kB / 0.5143 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3959, allocations: 0.7969 kB / 0.5143 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3959, allocations: 0 / 0.5143 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.3962, allocations: 293.6 kB / 0.5145 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.349e-05/0.3962, allocations: 88.55 kB / 0.5146 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.3963, allocations: 2.312 kB / 0.5146 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.621e-05/0.3963, allocations: 2.531 kB / 0.5146 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.182e-05/0.3963, allocations: 2.547 kB / 0.5146 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.3964, allocations: 9.297 kB / 0.5146 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.855e-05/0.3964, allocations: 105.4 kB / 0.5147 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3964, allocations: 0 / 0.5147 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001124/0.3975, allocations: 326.3 kB / 0.5151 GB, free: 0.6719 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.001551/0.3991, allocations: 1.091 MB / 0.5161 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005306/0.3996, allocations: 297.9 kB / 0.5164 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3997, allocations: 0 / 0.5164 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.3999, allocations: 222.5 kB / 0.5166 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.4003, allocations: 20.69 kB / 0.5166 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.4027, allocations: 1.952 MB / 0.5185 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.4031, allocations: 0.703 MB / 0.5192 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.524e-05/0.4031, allocations: 0.9844 kB / 0.5192 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.15e-05/0.4031, allocations: 27.73 kB / 0.5193 GB, free: 13.59 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4031, allocations: 0 / 0.5193 GB, free: 13.59 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].