Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001152/0.001152, 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.256/1.256, 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.0009208/0.0009208, allocations: 99.47 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.1642/0.1642, allocations: 37.96 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.198/0.3622, allocations: 62.44 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09629/0.4585, allocations: 56.32 MB / 466.4 MB, free: 6.375 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.323/0.7816, allocations: 92.03 MB / 0.5454 GB, free: 2.473 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.7819, allocations: 75.95 kB / 0.5454 GB, free: 2.398 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.04646/0.8284, allocations: 12.6 MB / 0.5577 GB, free: 5.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.8284, allocations: 8 kB / 0.5577 GB, free: 5.742 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.578e-05/0.8285, allocations: 15.81 kB / 0.5578 GB, free: 5.727 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.8287, allocations: 194.9 kB / 0.558 GB, free: 5.496 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.8287, allocations: 4 kB / 0.558 GB, free: 5.492 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.8287, allocations: 0 / 0.558 GB, free: 5.492 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.354e-05/0.8288, allocations: 31.98 kB / 0.558 GB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.8289, allocations: 77.59 kB / 0.5581 GB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.8289, allocations: 0 / 0.5581 GB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.8289, allocations: 0 / 0.5581 GB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.829, allocations: 0 / 0.5581 GB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.8291, allocations: 158.9 kB / 0.5582 GB, free: 5.188 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.49e-05/0.8292, allocations: 71.23 kB / 0.5583 GB, free: 5.109 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.27e-05/0.8293, allocations: 60.88 kB / 0.5583 GB, free: 5.047 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.673e-06/0.8293, allocations: 0 / 0.5583 GB, free: 5.047 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.8293, allocations: 34.47 kB / 0.5584 GB, free: 5.004 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 9.32e-07/0.8293, allocations: 0 / 0.5584 GB, free: 5.004 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003371/0.8297, allocations: 149.7 kB / 0.5585 GB, free: 4.852 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.8297, allocations: 89.09 kB / 0.5586 GB, free: 4.746 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.921e-05/0.8298, allocations: 133.3 kB / 0.5587 GB, free: 4.605 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.8299, allocations: 33.67 kB / 0.5588 GB, free: 4.566 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.8299, allocations: 88.36 kB / 0.5588 GB, free: 4.473 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.842e-05/0.8299, allocations: 43.36 kB / 0.5589 GB, free: 4.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.83, allocations: 0 / 0.5589 GB, free: 4.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.8301, allocations: 330.7 kB / 0.5592 GB, free: 4.098 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.2e-05/0.8302, allocations: 35.98 kB / 0.5592 GB, free: 4.062 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.841e-05/0.8302, allocations: 39.97 kB / 0.5593 GB, free: 4.023 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.8303, allocations: 48.84 kB / 0.5593 GB, free: 3.977 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.8304, allocations: 3.938 kB / 0.5593 GB, free: 3.973 MB / 394.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002381/0.8306, allocations: 151.7 kB / 0.5595 GB, free: 3.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.8306, allocations: 4 kB / 0.5595 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.8306, allocations: 3.906 kB / 0.5595 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.8307, allocations: 0 / 0.5595 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.204e-06/0.8307, allocations: 3.938 kB / 0.5595 GB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.456e-06/0.8307, allocations: 4 kB / 0.5595 GB, free: 3.805 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.16e-05/0.8307, allocations: 3.938 kB / 0.5595 GB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.8307, allocations: 4 kB / 0.5595 GB, free: 3.797 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.000104/0.8308, allocations: 150.6 kB / 0.5596 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.09e-05/0.8309, allocations: 11.94 kB / 0.5596 GB, free: 3.625 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.8309, allocations: 16.56 kB / 0.5597 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.8309, allocations: 3.906 kB / 0.5597 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.8309, allocations: 3.984 kB / 0.5597 GB, free: 3.605 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.8309, allocations: 0 / 0.5597 GB, free: 3.605 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.831, allocations: 162.1 kB / 0.5598 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.831, allocations: 0 / 0.5598 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.8311, allocations: 0 / 0.5598 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.8311, allocations: 0 / 0.5598 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.8311, allocations: 7.984 kB / 0.5598 GB, free: 3.402 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.8311, allocations: 0 / 0.5598 GB, free: 3.402 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.8311, allocations: 4 kB / 0.5598 GB, free: 3.398 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004084/0.8315, allocations: 248.8 kB / 0.5601 GB, free: 3.137 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008719/0.8324, allocations: 0.8494 MB / 0.5609 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.007e-05/0.8325, allocations: 92.89 kB / 0.561 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.8325, allocations: 4 kB / 0.561 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.015e-05/0.8326, allocations: 8.062 kB / 0.561 GB, free: 2.145 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.965e-05/0.8326, allocations: 11.97 kB / 0.561 GB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.8326, allocations: 4 kB / 0.561 GB, free: 2.129 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.75e-05/0.8327, allocations: 107.3 kB / 0.5611 GB, free: 2.023 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0022/0.8349, allocations: 379.6 kB / 0.5615 GB, free: 1.652 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.001566/0.8365, allocations: 430.2 kB / 0.5619 GB, free: 1.223 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.8368, allocations: 161.6 kB / 0.562 GB, free: 1.059 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.8368, allocations: 4 kB / 0.562 GB, free: 1.055 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.837, allocations: 221.6 kB / 0.5623 GB, free: 0.832 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.8373, allocations: 18.33 kB / 0.5623 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000459/0.8377, allocations: 270.8 kB / 0.5625 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.8381, allocations: 0.7428 MB / 0.5633 GB, free: 15.76 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.8381, allocations: 0 / 0.5633 GB, free: 15.76 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.EqCircFromTransDat could not be translated to FMU