Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001603/0.001603, allocations: 181 kB / 8.137 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.364/1.364, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0009787/0.0009786, allocations: 94 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.1697/0.1697, allocations: 37.96 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2/0.3697, allocations: 62.44 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.464, allocations: 56.32 MB / 466.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3592/0.8232, allocations: 91.75 MB / 0.5451 GB, free: 2.773 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.8236, allocations: 79.95 kB / 0.5452 GB, free: 2.695 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.04599/0.8696, allocations: 12.85 MB / 0.5577 GB, free: 5.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.8696, allocations: 11.98 kB / 0.5577 GB, free: 5.777 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.465e-05/0.8697, allocations: 19.72 kB / 0.5577 GB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.87, allocations: 203.7 kB / 0.5579 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.87, allocations: 0 / 0.5579 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/0.87, allocations: 7.938 kB / 0.5579 GB, free: 5.512 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001488/0.8702, allocations: 92.3 kB / 0.558 GB, free: 5.418 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.8704, allocations: 130.6 kB / 0.5582 GB, free: 5.285 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.8704, allocations: 0 / 0.5582 GB, free: 5.285 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.8704, allocations: 7.984 kB / 0.5582 GB, free: 5.277 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.8704, allocations: 0 / 0.5582 GB, free: 5.277 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001997/0.8706, allocations: 166.2 kB / 0.5583 GB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.8708, allocations: 163.5 kB / 0.5585 GB, free: 4.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.8709, allocations: 141.2 kB / 0.5586 GB, free: 4.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.678e-06/0.8709, allocations: 0 / 0.5586 GB, free: 4.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.871, allocations: 30.56 kB / 0.5586 GB, free: 4.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 8.92e-07/0.871, allocations: 0 / 0.5586 GB, free: 4.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.000604/0.8716, allocations: 427.5 kB / 0.559 GB, free: 4.309 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.8717, allocations: 105.1 kB / 0.5591 GB, free: 4.188 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.8718, allocations: 149.4 kB / 0.5593 GB, free: 4.035 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.8719, allocations: 25.7 kB / 0.5593 GB, free: 4.004 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.8719, allocations: 100.8 kB / 0.5594 GB, free: 3.902 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.872, allocations: 126 kB / 0.5595 GB, free: 3.777 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.872, allocations: 0 / 0.5595 GB, free: 3.777 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.8722, allocations: 338.8 kB / 0.5599 GB, free: 3.438 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.8724, allocations: 91.91 kB / 0.5599 GB, free: 3.348 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.842e-05/0.8725, allocations: 99.95 kB / 0.56 GB, free: 3.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.8727, allocations: 123.9 kB / 0.5602 GB, free: 3.129 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.8727, allocations: 0 / 0.5602 GB, free: 3.129 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004485/0.8731, allocations: 417.5 kB / 0.5606 GB, free: 2.715 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.8732, allocations: 12.06 kB / 0.5606 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.8732, allocations: 0 / 0.5606 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.8732, allocations: 3.984 kB / 0.5606 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.8732, allocations: 0 / 0.5606 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.8732, allocations: 3.906 kB / 0.5606 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.661e-05/0.8733, allocations: 15.78 kB / 0.5606 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.8733, allocations: 7.984 kB / 0.5606 GB, free: 2.672 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.0001735/0.8735, allocations: 194.5 kB / 0.5608 GB, free: 2.469 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.609e-05/0.8735, allocations: 23.72 kB / 0.5608 GB, free: 2.445 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.8736, allocations: 18.66 kB / 0.5608 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.8736, allocations: 0 / 0.5608 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.8736, allocations: 0 / 0.5608 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.8736, allocations: 4 kB / 0.5608 GB, free: 2.426 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.8738, allocations: 197.9 kB / 0.561 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.8738, allocations: 0 / 0.561 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.384e-06/0.8738, allocations: 4 kB / 0.561 GB, free: 2.191 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.8738, allocations: 3.938 kB / 0.561 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.8738, allocations: 11.94 kB / 0.561 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.8738, allocations: 3.984 kB / 0.561 GB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.8738, allocations: 0 / 0.561 GB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008019/0.8747, allocations: 0.6841 MB / 0.5617 GB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009334/0.8756, allocations: 1.063 MB / 0.5627 GB, free: 392 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.778e-05/0.8757, allocations: 100.8 kB / 0.5628 GB, free: 272 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.8757, allocations: 11.98 kB / 0.5629 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.641e-05/0.8758, allocations: 8.062 kB / 0.5629 GB, free: 252 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.8758, allocations: 15.94 kB / 0.5629 GB, free: 236 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.8759, allocations: 11.94 kB / 0.5629 GB, free: 224 kB / 394.7 MB Notification: Performance of sort global known variables: time 7.817e-05/0.8759, allocations: 123.2 kB / 0.563 GB, free: 100 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001839/0.8778, allocations: 387.6 kB / 0.5634 GB, free: 15.72 MB / 410.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.001028/0.8788, allocations: 417.7 kB / 0.5638 GB, free: 15.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004931/0.8793, allocations: 413.5 kB / 0.5642 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.8793, allocations: 0 / 0.5642 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.8805, allocations: 1.361 MB / 0.5655 GB, free: 13.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001781/0.8807, allocations: 20.7 kB / 0.5655 GB, free: 13.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007633/0.8815, allocations: 0.5208 MB / 0.566 GB, free: 12.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003595/0.8818, allocations: 0.7669 MB / 0.5668 GB, free: 12.16 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.8819, allocations: 4 kB / 0.5668 GB, free: 12.16 MB / 410.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_matrixTrDat3 could not be translated to FMU