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/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_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"}) [: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.001522/0.001522, allocations: 183.3 kB / 8.134 MB, free: 2.215 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.241/1.241, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0008555/0.0008555, allocations: 99.42 kB / 261.7 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.1618/0.1618, allocations: 37.96 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1887/0.3505, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.441, allocations: 56.33 MB / 466.4 MB, free: 6.371 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3282/0.7693, allocations: 91.74 MB / 0.5451 GB, free: 2.734 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.7696, allocations: 75.95 kB / 0.5452 GB, free: 2.66 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.04765/0.8173, allocations: 12.44 MB / 0.5573 GB, free: 6.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.8173, allocations: 12 kB / 0.5573 GB, free: 6.148 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.885e-05/0.8174, allocations: 3.906 kB / 0.5573 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.8177, allocations: 189.2 kB / 0.5575 GB, free: 5.922 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.8177, allocations: 0 / 0.5575 GB, free: 5.922 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.8177, allocations: 4 kB / 0.5575 GB, free: 5.918 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.578e-05/0.8178, allocations: 28.73 kB / 0.5575 GB, free: 5.891 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.818, allocations: 73.61 kB / 0.5576 GB, free: 5.812 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.818, allocations: 4 kB / 0.5576 GB, free: 5.809 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.818, allocations: 3.906 kB / 0.5576 GB, free: 5.805 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.818, allocations: 4 kB / 0.5576 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002582/0.8183, allocations: 142.2 kB / 0.5578 GB, free: 5.625 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.8184, allocations: 55.25 kB / 0.5578 GB, free: 5.562 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.46e-05/0.8185, allocations: 44.88 kB / 0.5579 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.8185, allocations: 3.938 kB / 0.5579 GB, free: 5.512 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.8186, allocations: 42.47 kB / 0.5579 GB, free: 5.461 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.8186, allocations: 0 / 0.5579 GB, free: 5.461 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005014/0.8191, allocations: 129.7 kB / 0.558 GB, free: 5.328 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.209e-05/0.8192, allocations: 85.11 kB / 0.5581 GB, free: 5.227 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.8194, allocations: 113.2 kB / 0.5582 GB, free: 5.105 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.8194, allocations: 29.69 kB / 0.5582 GB, free: 5.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.85e-05/0.8195, allocations: 88.14 kB / 0.5583 GB, free: 4.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.294e-05/0.8196, allocations: 35.45 kB / 0.5584 GB, free: 4.945 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.8196, allocations: 0 / 0.5584 GB, free: 4.945 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.8198, allocations: 330.8 kB / 0.5587 GB, free: 4.613 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.649e-05/0.8198, allocations: 31.98 kB / 0.5587 GB, free: 4.582 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.703e-05/0.8199, allocations: 27.98 kB / 0.5587 GB, free: 4.555 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.82, allocations: 39.98 kB / 0.5588 GB, free: 4.516 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.82, allocations: 0 / 0.5588 GB, free: 4.516 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002308/0.8202, allocations: 125.5 kB / 0.5589 GB, free: 4.387 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.8203, allocations: 4.625 kB / 0.5589 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.8203, allocations: 0 / 0.5589 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.8203, allocations: 7.938 kB / 0.5589 GB, free: 4.375 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.426e-06/0.8203, allocations: 8.047 kB / 0.5589 GB, free: 4.367 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.8203, allocations: 0 / 0.5589 GB, free: 4.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.054e-05/0.8204, allocations: 7.844 kB / 0.5589 GB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.8204, allocations: 8 kB / 0.5589 GB, free: 4.352 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.000123/0.8205, allocations: 142.7 kB / 0.5591 GB, free: 4.199 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/0.8206, allocations: 15.8 kB / 0.5591 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.8206, allocations: 16.48 kB / 0.5591 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-06/0.8206, allocations: 0 / 0.5591 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.8206, allocations: 0 / 0.5591 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.8206, allocations: 4 kB / 0.5591 GB, free: 4.164 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.8207, allocations: 154.1 kB / 0.5592 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.8207, allocations: 0 / 0.5592 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.8207, allocations: 0 / 0.5592 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8208, allocations: 0 / 0.5592 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.8208, allocations: 4 kB / 0.5592 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.8208, allocations: 0 / 0.5592 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.8208, allocations: 0 / 0.5592 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003656/0.8212, allocations: 231 kB / 0.5595 GB, free: 3.73 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005053/0.8217, allocations: 0.6028 MB / 0.5601 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.8217, allocations: 92.86 kB / 0.5601 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.8218, allocations: 4 kB / 0.5601 GB, free: 2.992 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.357e-05/0.8218, allocations: 4 kB / 0.5601 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-05/0.8219, allocations: 4 kB / 0.5602 GB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.8219, allocations: 7.938 kB / 0.5602 GB, free: 2.977 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.708e-05/0.8219, allocations: 107.2 kB / 0.5603 GB, free: 2.871 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001853/0.8238, allocations: 367.6 kB / 0.5606 GB, free: 2.512 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.001578/0.8254, allocations: 420.5 kB / 0.561 GB, free: 2.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002265/0.8256, allocations: 149.6 kB / 0.5612 GB, free: 1.938 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.8256, allocations: 4.062 kB / 0.5612 GB, free: 1.934 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.8258, allocations: 189.6 kB / 0.5613 GB, free: 1.742 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.826, allocations: 15.86 kB / 0.5614 GB, free: 1.727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000398/0.8264, allocations: 199.7 kB / 0.5615 GB, free: 1.508 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/0.8267, allocations: 0.7153 MB / 0.5622 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.8267, allocations: 0 / 0.5622 GB, free: 0.7656 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_matrixTrDat1 could not be translated to FMU