Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.FourVariableLoadsThreeFeeders,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.FourVariableLoadsThreeFeeders,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001139, allocations: 179.2 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.2 MB / 239.7 MB, free: 1.793 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009486/0.0009485, allocations: 91.34 kB / 290.9 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05092/0.05092, allocations: 8.098 MB / 350.1 MB, free: 2.73 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003178/0.0003178, allocations: 13 kB / 413.2 MB, free: 89.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1001, allocations: 52.53 MB / 465.7 MB, free: 41.98 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3911/0.4913, allocations: 85.38 MB / 0.5382 GB, free: 16.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4915, allocations: 65.2 kB / 0.5382 GB, free: 16.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07066/0.5622, allocations: 27.24 MB / 0.5648 GB, free: 29.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5623, allocations: 0 / 0.5648 GB, free: 29.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.679e-05/0.5624, allocations: 17.88 kB / 0.5648 GB, free: 29.44 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.006864/0.5692, allocations: 1.742 MB / 0.5665 GB, free: 28.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5693, allocations: 12.91 kB / 0.5666 GB, free: 28.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003874/0.5697, allocations: 115.6 kB / 0.5667 GB, free: 28.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005167/0.5702, allocations: 110.3 kB / 0.5668 GB, free: 28.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.5716, allocations: 0.6056 MB / 0.5674 GB, free: 27.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.5718, allocations: 162.7 kB / 0.5675 GB, free: 27.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002068/0.572, allocations: 60.44 kB / 0.5676 GB, free: 27.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002209/0.5742, allocations: 1.092 MB / 0.5686 GB, free: 27.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.5742, allocations: 0 / 0.5686 GB, free: 27.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.5744, allocations: 31.59 kB / 0.5687 GB, free: 27.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.5744, allocations: 15.31 kB / 0.5687 GB, free: 27.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001979/0.5764, allocations: 0.9916 MB / 0.5697 GB, free: 27.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006649/0.583, allocations: 4.353 MB / 0.5739 GB, free: 24.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.5854, allocations: 1.599 MB / 0.5755 GB, free: 24.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002399/0.5857, allocations: 107.7 kB / 0.5756 GB, free: 24.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/0.5872, allocations: 1.009 MB / 0.5766 GB, free: 23.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=123): time 4.488e-06/0.5872, allocations: 0 / 0.5766 GB, free: 23.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.01764/0.6049, allocations: 5.119 MB / 0.5816 GB, free: 22.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.605, allocations: 255.4 kB / 0.5818 GB, free: 21.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008953/0.606, allocations: 496.4 kB / 0.5823 GB, free: 21.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000199/0.6062, allocations: 59.06 kB / 0.5823 GB, free: 21.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.6064, allocations: 293.2 kB / 0.5826 GB, free: 21.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/0.6068, allocations: 392.1 kB / 0.583 GB, free: 21.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.989e-05/0.6069, allocations: 21.59 kB / 0.583 GB, free: 21.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.6071, allocations: 398.9 kB / 0.5834 GB, free: 20.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008463/0.6079, allocations: 0.5654 MB / 0.5839 GB, free: 20.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008679/0.6088, allocations: 0.6589 MB / 0.5846 GB, free: 20.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008883/0.6097, allocations: 0.6299 MB / 0.5852 GB, free: 20.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.6097, allocations: 0 / 0.5852 GB, free: 20.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004804/0.6145, allocations: 2.28 MB / 0.5874 GB, free: 20.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.977e-05/0.6146, allocations: 38.56 kB / 0.5875 GB, free: 20.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/0.6146, allocations: 0 / 0.5875 GB, free: 20.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008348/0.623, allocations: 2.224 MB / 0.5896 GB, free: 19.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006285/0.6236, allocations: 130 kB / 0.5898 GB, free: 19.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.6274, allocations: 2.178 MB / 0.5919 GB, free: 18.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.6289, allocations: 133.4 kB / 0.592 GB, free: 18.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/0.629, allocations: 39.31 kB / 0.592 GB, free: 18.34 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: HVMV.tapChanger.furtherTapChangeTimeout:DISCRETE(start = HVMV.tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real HVMV.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real HVMV.tapChanger.tap:DISCRETE(start = HVMV.tapChanger.startTap fixed = true ) "Current tap position" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.HVMV.tapChanger.tap,HVMV.tapChanger.tap,$PRE.HVMV.tapChanger.abnormalUTime,HVMV.tapChanger.abnormalUTime,HVMV.tapChanger.normalU,HVMV.tapChanger.decreaseEvent,HVMV.tapChanger.increaseEvent,$PRE.HVMV.tapChanger.furtherTapChangeTimeout,HVMV.tapChanger.furtherTapChangeTimeout,$PRE.varLoad1.degradedMode,varLoad1.degradedMode,$PRE.varLoad2.degradedMode,varLoad2.degradedMode,$PRE.varLoad3.degradedMode,varLoad3.degradedMode,$PRE.varLoad4.degradedMode,varLoad4.degradedMode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 32} Notification: Performance of prepare postOptimizeDAE: time 0.0007991/0.6299, allocations: 291.8 kB / 0.5923 GB, free: 18.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003598/0.6302, allocations: 97.5 kB / 0.5924 GB, free: 18.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003844/0.6341, allocations: 2.453 MB / 0.5948 GB, free: 16.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.6341, allocations: 12.78 kB / 0.5948 GB, free: 16.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.6341, allocations: 0 / 0.5948 GB, free: 16.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.6341, allocations: 7.969 kB / 0.5948 GB, free: 16.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006528/0.6407, allocations: 4.546 MB / 0.5993 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.6407, allocations: 0 / 0.5993 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004934/0.6412, allocations: 118.2 kB / 0.5994 GB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008269/0.6495, allocations: 2.057 MB / 0.6014 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002933/0.6499, allocations: 27.73 kB / 0.6014 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004571/0.6545, allocations: 2.327 MB / 0.6037 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.6545, allocations: 0 / 0.6037 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004557/0.6591, allocations: 2.449 MB / 0.6061 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008585/0.66, allocations: 356 kB / 0.6064 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.6603, allocations: 34.84 kB / 0.6065 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.6617, allocations: 131.4 kB / 0.6066 GB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.6619, allocations: 95.59 kB / 0.6067 GB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.6621, allocations: 50.81 kB / 0.6067 GB, free: 9.152 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006637/0.6628, allocations: 406.3 kB / 0.6071 GB, free: 8.914 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.385e-06/0.6628, allocations: 3.938 kB / 0.6071 GB, free: 8.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001221/0.664, allocations: 316.3 kB / 0.6074 GB, free: 8.852 MB / 378.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: 18 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,HVMV.tapChanger.tap,HVMV.tapChanger.abnormalUTime,HVMV.tapChanger.normalU,HVMV.tapChanger.decreaseEvent,HVMV.tapChanger.increaseEvent,HVMV.tapChanger.furtherTapChangeTimeout,varLoad1.degradedMode,varLoad2.degradedMode,varLoad3.degradedMode,varLoad4.degradedMode) * Number of discrete states: 14 (HVMV.tapChanger.tap,HVMV.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,HVMV.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,HVMV.tapChanger.decreaseEvent,HVMV.tapChanger.increaseEvent,HVMV.tapChanger.normalU,varLoad2.degradedMode,varLoad4.degradedMode,varLoad3.degradedMode,varLoad1.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.00566/0.6697, allocations: 3.377 MB / 0.6107 GB, free: 5.828 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004472/0.6742, allocations: 1.878 MB / 0.6125 GB, free: 3.938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.6742, allocations: 4.656 kB / 0.6126 GB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003352/0.6776, allocations: 1.318 MB / 0.6138 GB, free: 2.598 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009946/0.6786, allocations: 94.22 kB / 0.6139 GB, free: 2.508 MB / 378.7 MB Warning: Could not resolve URI (loadFile) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.6901, allocations: 6.549 MB / 0.6203 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.6907, allocations: 0.9892 MB / 0.6213 GB, free: 10.81 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000538/0.6912, allocations: 114.1 kB / 0.6214 GB, free: 10.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/0.6917, allocations: 323.3 kB / 0.6217 GB, free: 10.38 MB / 394.7 MB Notification: Performance of SimCode: time 7.12e-07/0.6917, allocations: 0 / 0.6217 GB, free: 10.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.162/0.8537, allocations: 26.46 MB / 0.6475 GB, free: 168 kB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003306/0.8541, allocations: 246.2 kB / 0.6478 GB, free: 15.85 MB / 426.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -c -o PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders.o PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders.c In file included from PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders.c:7: In file included from ./PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders.c:7: In file included from ./PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders_model.h:24: ./PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders_functions.h:288:1: error: unknown type name 'PowerSysPro_Types_myComplexPerUnit'; did you mean 'PowerSysPro_Types_myComplexCurrent'? PowerSysPro_Types_myComplexPerUnit omc_PowerSysPro_Types_myComplexPerUnit (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PowerSysPro_Types_myComplexCurrent ./PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders_functions.h:78:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 2 warnings and 1 error generated. make: *** [: PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders.o] Error 1