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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001422/0.001422, allocations: 183.9 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 95.39 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1815/0.1815, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.19/0.3715, allocations: 62.44 MB / 410.1 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.4575, allocations: 56.32 MB / 466.4 MB, free: 6.367 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2854/0.7429, allocations: 91.84 MB / 0.5452 GB, free: 2.656 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.7432, allocations: 79.95 kB / 0.5453 GB, free: 2.578 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.04344/0.7866, allocations: 12.39 MB / 0.5574 GB, free: 6.133 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.7867, allocations: 12 kB / 0.5574 GB, free: 6.121 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.7867, allocations: 4.656 kB / 0.5574 GB, free: 6.117 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.7869, allocations: 187 kB / 0.5576 GB, free: 5.895 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.787, allocations: 0 / 0.5576 GB, free: 5.895 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.787, allocations: 0 / 0.5576 GB, free: 5.895 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.774e-05/0.7871, allocations: 23.98 kB / 0.5576 GB, free: 5.871 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.042e-05/0.7871, allocations: 53.59 kB / 0.5576 GB, free: 5.812 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.7872, allocations: 3.984 kB / 0.5576 GB, free: 5.809 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.7872, allocations: 0 / 0.5576 GB, free: 5.809 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.7872, allocations: 7.875 kB / 0.5576 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.7873, allocations: 150.2 kB / 0.5578 GB, free: 5.617 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.387e-05/0.7874, allocations: 43.25 kB / 0.5578 GB, free: 5.566 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.132e-05/0.7875, allocations: 32.89 kB / 0.5579 GB, free: 5.531 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.7875, allocations: 7.906 kB / 0.5579 GB, free: 5.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.7875, allocations: 34.55 kB / 0.5579 GB, free: 5.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.7875, allocations: 0 / 0.5579 GB, free: 5.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.000284/0.7878, allocations: 93.58 kB / 0.558 GB, free: 5.383 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.7879, allocations: 81.11 kB / 0.5581 GB, free: 5.285 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.775e-05/0.788, allocations: 117.8 kB / 0.5582 GB, free: 5.164 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.788, allocations: 25.7 kB / 0.5582 GB, free: 5.133 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.788, allocations: 84.14 kB / 0.5583 GB, free: 5.047 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.7881, allocations: 23.64 kB / 0.5583 GB, free: 5.023 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-06/0.7881, allocations: 4 kB / 0.5583 GB, free: 5.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.7882, allocations: 322.7 kB / 0.5586 GB, free: 4.695 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.626e-05/0.7882, allocations: 24.03 kB / 0.5586 GB, free: 4.672 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.871e-05/0.7883, allocations: 19.98 kB / 0.5587 GB, free: 4.652 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.7884, allocations: 27.98 kB / 0.5587 GB, free: 4.625 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.7884, allocations: 3.938 kB / 0.5587 GB, free: 4.621 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001892/0.7886, allocations: 98.42 kB / 0.5588 GB, free: 4.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.7886, allocations: 4 kB / 0.5588 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.7887, allocations: 0 / 0.5588 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.7887, allocations: 0 / 0.5588 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.7887, allocations: 0 / 0.5588 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.7887, allocations: 0 / 0.5588 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.215e-05/0.7887, allocations: 4.062 kB / 0.5588 GB, free: 4.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.7887, allocations: 4 kB / 0.5588 GB, free: 4.508 MB / 394.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.7889, allocations: 146.6 kB / 0.5589 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.7889, allocations: 11.91 kB / 0.5589 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.297e-05/0.7889, allocations: 12.34 kB / 0.559 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.7889, allocations: 3.938 kB / 0.559 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.7889, allocations: 0 / 0.559 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.7889, allocations: 0 / 0.559 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.7891, allocations: 146.1 kB / 0.5591 GB, free: 4.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.7891, allocations: 0 / 0.5591 GB, free: 4.145 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.7891, allocations: 8 kB / 0.5591 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.7891, allocations: 0 / 0.5591 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.7891, allocations: 0 / 0.5591 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.7891, allocations: 4 kB / 0.5591 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.7891, allocations: 0 / 0.5591 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002713/0.7894, allocations: 177.2 kB / 0.5593 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003805/0.7898, allocations: 0.5481 MB / 0.5598 GB, free: 3.371 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.829e-05/0.7898, allocations: 84.95 kB / 0.5599 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.7899, allocations: 4 kB / 0.5599 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.709e-05/0.7899, allocations: 4 kB / 0.5599 GB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.555e-05/0.7899, allocations: 8 kB / 0.5599 GB, free: 3.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.79, allocations: 0 / 0.5599 GB, free: 3.254 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.244e-05/0.79, allocations: 97.39 kB / 0.56 GB, free: 3.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001756/0.7918, allocations: 367.6 kB / 0.5604 GB, free: 2.801 MB / 394.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001364/0.7932, allocations: 425.4 kB / 0.5608 GB, free: 2.375 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.7934, allocations: 109.6 kB / 0.5609 GB, free: 2.262 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.7934, allocations: 0 / 0.5609 GB, free: 2.262 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.7935, allocations: 121.7 kB / 0.561 GB, free: 2.137 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.7937, allocations: 15.98 kB / 0.561 GB, free: 2.121 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.794, allocations: 148 kB / 0.5611 GB, free: 1.953 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/0.7943, allocations: 0.7075 MB / 0.5618 GB, free: 1.219 MB / 394.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7943, allocations: 0 / 0.5618 GB, free: 1.219 MB / 394.7 MB [CodegenCFunctions.tpl:4816:15-4816:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. Error: Internal error SimCode: The model PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0 could not be translated to FMU