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: translateModel(PowerSysPro.Examples.FourVariableLoadsThreeFeeders,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders") translateModel(PowerSysPro.Examples.FourVariableLoadsThreeFeeders,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 164.4 kB / 16.8 MB, free: 5.027 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.554/1.554, allocations: 223.3 MB / 240.8 MB, free: 9.992 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 104.4 kB / 292 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05165/0.05165, allocations: 8.103 MB / 351.2 MB, free: 15.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003967, allocations: 12 kB / 414.4 MB, free: 57.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08447, allocations: 52.51 MB / 466.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2969/0.3814, allocations: 85.45 MB / 0.5394 GB, free: 144 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3816, allocations: 66.8 kB / 0.5394 GB, free: 112 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06979/0.4514, allocations: 27.26 MB / 0.5661 GB, free: 7.352 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4515, allocations: 0 / 0.5661 GB, free: 7.352 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.016e-05/0.4516, allocations: 15.94 kB / 0.5661 GB, free: 7.336 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.006227/0.4578, allocations: 1.728 MB / 0.5678 GB, free: 5.551 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.4578, allocations: 12.03 kB / 0.5678 GB, free: 5.539 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004609/0.4583, allocations: 111.7 kB / 0.5679 GB, free: 5.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.4598, allocations: 0.6242 MB / 0.5685 GB, free: 4.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.4599, allocations: 164.7 kB / 0.5687 GB, free: 4.582 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.4601, allocations: 64.75 kB / 0.5687 GB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.4622, allocations: 1.093 MB / 0.5698 GB, free: 3.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.4623, allocations: 0 / 0.5698 GB, free: 3.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.4624, allocations: 32 kB / 0.5698 GB, free: 3.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.4624, allocations: 16 kB / 0.5698 GB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.4642, allocations: 0.989 MB / 0.5708 GB, free: 2.375 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006569/0.4708, allocations: 4.338 MB / 0.575 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.4728, allocations: 1.595 MB / 0.5766 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.474, allocations: 0.7691 MB / 0.5773 GB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002223/0.4742, allocations: 114 kB / 0.5774 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001622/0.4759, allocations: 1.003 MB / 0.5784 GB, free: 10.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=123): time 4.298e-06/0.4759, allocations: 0 / 0.5784 GB, free: 10.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=123): time 0.01776/0.4936, allocations: 5.187 MB / 0.5835 GB, free: 4.848 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.4938, allocations: 252.3 kB / 0.5837 GB, free: 4.547 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008645/0.4947, allocations: 0.5459 MB / 0.5843 GB, free: 3.992 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.4948, allocations: 57.69 kB / 0.5843 GB, free: 3.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.4951, allocations: 289.6 kB / 0.5846 GB, free: 3.641 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003565/0.4954, allocations: 394.2 kB / 0.585 GB, free: 3.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/0.4955, allocations: 20 kB / 0.585 GB, free: 3.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.4957, allocations: 398.7 kB / 0.5854 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009153/0.4966, allocations: 0.5685 MB / 0.5859 GB, free: 2.266 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.4976, allocations: 0.6641 MB / 0.5866 GB, free: 1.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/0.5106, allocations: 3.856 MB / 0.5903 GB, free: 13.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.5107, allocations: 3.938 kB / 0.5903 GB, free: 13.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006281/0.5169, allocations: 2.453 MB / 0.5927 GB, free: 11.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.053e-05/0.5171, allocations: 37.69 kB / 0.5928 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.5171, allocations: 0 / 0.5928 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008237/0.5253, allocations: 2.233 MB / 0.595 GB, free: 8.949 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006224/0.526, allocations: 123.8 kB / 0.5951 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003997/0.53, allocations: 2.183 MB / 0.5972 GB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.5312, allocations: 131.3 kB / 0.5973 GB, free: 6.484 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/0.5314, allocations: 43.97 kB / 0.5974 GB, free: 6.441 MB / 410.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.tap:DISCRETE(start = HVMV.tapChanger.startTap fixed = true ) "Current tap position" type: Integer HVMV.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.HVMV.tapChanger.furtherTapChangeTimeout,$PRE.HVMV.tapChanger.tap,$PRE.HVMV.tapChanger.abnormalUTime,$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,$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.0006793/0.5321, allocations: 293 kB / 0.5977 GB, free: 6.141 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002843/0.5324, allocations: 94.97 kB / 0.5977 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00424/0.5366, allocations: 2.443 MB / 0.6001 GB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.5367, allocations: 12 kB / 0.6001 GB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.5367, allocations: 0 / 0.6001 GB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.5367, allocations: 15.92 kB / 0.6002 GB, free: 3.555 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007352/0.5441, allocations: 4.535 MB / 0.6046 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.5441, allocations: 0 / 0.6046 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005433/0.5447, allocations: 119.9 kB / 0.6047 GB, free: 14.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007852/0.5525, allocations: 2.073 MB / 0.6067 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.5527, allocations: 39.97 kB / 0.6068 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004244/0.5569, allocations: 2.323 MB / 0.609 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5569, allocations: 4 kB / 0.609 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004462/0.5614, allocations: 2.445 MB / 0.6114 GB, free: 7.875 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007282/0.5622, allocations: 359.5 kB / 0.6118 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000246/0.5624, allocations: 40 kB / 0.6118 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.5636, allocations: 119.9 kB / 0.6119 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/0.5638, allocations: 101.2 kB / 0.612 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.564, allocations: 51.97 kB / 0.6121 GB, free: 7.199 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006267/0.5646, allocations: 402.8 kB / 0.6124 GB, free: 6.809 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5646, allocations: 0 / 0.6124 GB, free: 6.809 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009675/0.5656, allocations: 327.5 kB / 0.6128 GB, free: 6.492 MB / 426.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.001113/0.5667, allocations: 491.5 kB / 0.6132 GB, free: 6.156 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004569/0.5713, allocations: 1.882 MB / 0.6151 GB, free: 4.266 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.5713, allocations: 0.6562 kB / 0.6151 GB, free: 4.266 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003447/0.5748, allocations: 1.31 MB / 0.6163 GB, free: 2.941 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.5758, allocations: 126.2 kB / 0.6165 GB, free: 2.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003738/0.5796, allocations: 1.989 MB / 0.6184 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/0.5802, allocations: 0.9697 MB / 0.6194 GB, free: 15.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005169/0.5807, allocations: 114.1 kB / 0.6195 GB, free: 15.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.581, allocations: 79.39 kB / 0.6195 GB, free: 15.62 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/0.581, allocations: 0 / 0.6195 GB, free: 15.62 MB / 442.7 MB Notification: Performance of Templates: time 0.03048/0.6115, allocations: 19.31 MB / 0.6384 GB, free: 12.4 MB / 458.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.makefile make -j1 -f PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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:26: ./PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders_functions.h:285: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:74:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 1 error generated. make: *** [: PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.o] Error 1