Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.001123/0.001123, allocations: 185.6 kB / 8.136 MB, free: 2.223 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.337/1.337, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009913/0.0009913, allocations: 95.42 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1648/0.1648, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2044/0.3691, allocations: 62.44 MB / 410.1 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.4769, allocations: 56.32 MB / 466.4 MB, free: 6.367 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3487/0.8257, allocations: 88.67 MB / 0.5421 GB, free: 5.832 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.8261, allocations: 75.95 kB / 0.5422 GB, free: 5.758 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.02247/0.8486, allocations: 5.875 MB / 0.5479 GB, free: 15.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.8487, allocations: 12 kB / 0.5479 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.8487, allocations: 7.906 kB / 0.5479 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.8491, allocations: 205 kB / 0.5481 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.8491, allocations: 3.938 kB / 0.5481 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.8491, allocations: 4 kB / 0.5481 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001327/0.8493, allocations: 55.97 kB / 0.5482 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.8494, allocations: 101.6 kB / 0.5483 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.8494, allocations: 0 / 0.5483 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.8494, allocations: 0 / 0.5483 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.8495, allocations: 0 / 0.5483 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002157/0.8497, allocations: 155 kB / 0.5484 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.8499, allocations: 134.5 kB / 0.5485 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.85, allocations: 117.2 kB / 0.5487 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.85, allocations: 4 kB / 0.5487 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.85, allocations: 34.5 kB / 0.5487 GB, free: 14.92 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.85, allocations: 0 / 0.5487 GB, free: 14.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003706/0.8504, allocations: 217.4 kB / 0.5489 GB, free: 14.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.8505, allocations: 97.09 kB / 0.549 GB, free: 14.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.8506, allocations: 113.2 kB / 0.5491 GB, free: 14.47 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.8507, allocations: 29.64 kB / 0.5491 GB, free: 14.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/0.8507, allocations: 92.45 kB / 0.5492 GB, free: 14.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.272e-05/0.8508, allocations: 63.02 kB / 0.5493 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.8508, allocations: 0 / 0.5493 GB, free: 14.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.8509, allocations: 322.8 kB / 0.5496 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.742e-05/0.851, allocations: 64 kB / 0.5496 GB, free: 13.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.86e-05/0.8511, allocations: 55.97 kB / 0.5497 GB, free: 13.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.8512, allocations: 75.94 kB / 0.5498 GB, free: 13.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.8512, allocations: 0 / 0.5498 GB, free: 13.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002713/0.8515, allocations: 217.3 kB / 0.55 GB, free: 13.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.8515, allocations: 8.625 kB / 0.55 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.8515, allocations: 0 / 0.55 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.8515, allocations: 0 / 0.55 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.8515, allocations: 0 / 0.55 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.8516, allocations: 0 / 0.55 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.207e-05/0.8516, allocations: 15.83 kB / 0.55 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.8517, allocations: 8.062 kB / 0.55 GB, free: 13.51 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.000127/0.8518, allocations: 162.6 kB / 0.5502 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.8518, allocations: 15.81 kB / 0.5502 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.382e-05/0.8519, allocations: 4.688 kB / 0.5502 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.8519, allocations: 4 kB / 0.5502 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.8519, allocations: 0 / 0.5502 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.8519, allocations: 7.984 kB / 0.5502 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.852, allocations: 169.9 kB / 0.5504 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.852, allocations: 0 / 0.5504 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.852, allocations: 4 kB / 0.5504 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.8521, allocations: 4 kB / 0.5504 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.8521, allocations: 4 kB / 0.5504 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.8521, allocations: 0 / 0.5504 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.8521, allocations: 0 / 0.5504 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004604/0.8526, allocations: 356.8 kB / 0.5507 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001005/0.8536, allocations: 1.048 MB / 0.5517 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.608e-05/0.8537, allocations: 88.98 kB / 0.5518 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.8537, allocations: 7.906 kB / 0.5518 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.289e-05/0.8538, allocations: 4 kB / 0.5518 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.405e-05/0.8538, allocations: 8 kB / 0.5518 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.8538, allocations: 8 kB / 0.5518 GB, free: 11.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.232e-05/0.8539, allocations: 99.17 kB / 0.5519 GB, free: 11.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001091/0.855, allocations: 139.9 kB / 0.5521 GB, free: 11.29 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.0006322/0.8556, allocations: 195 kB / 0.5523 GB, free: 11.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003644/0.856, allocations: 277.5 kB / 0.5525 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.856, allocations: 0 / 0.5525 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003969/0.8564, allocations: 445.6 kB / 0.5529 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.8567, allocations: 14.34 kB / 0.553 GB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005789/0.8573, allocations: 324 kB / 0.5533 GB, free: 10 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.8577, allocations: 0.7471 MB / 0.554 GB, free: 9.234 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/0.8577, allocations: 3.938 kB / 0.554 GB, free: 9.23 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.TransDatFromEqCirc could not be translated to FMU