Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test.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/OpenIPSL 2.0.0-master/package.mo", uses=false) Using package OpenIPSL with version 2.0.0-beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-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: translateModel(OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test") translateModel(OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009007/0.0009004, allocations: 172.7 kB / 16.12 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.4 MB / 222.3 MB, free: 9.008 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.0007666/0.0007664, allocations: 95.69 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo): time 0.391/0.391, allocations: 42.28 MB / 361.2 MB, free: 49.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004466/0.0004466, allocations: 16 kB / 429.4 MB, free: 7.809 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1307, allocations: 57.56 MB / 487 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3749/0.5057, allocations: 104.3 MB / 0.5774 GB, free: 3.438 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.506, allocations: 91.94 kB / 0.5775 GB, free: 3.348 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1215/0.6275, allocations: 40.58 MB / 0.6172 GB, free: 10.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.6275, allocations: 0 / 0.6172 GB, free: 10.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002012/0.6278, allocations: 39.92 kB / 0.6172 GB, free: 10.52 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.008486/0.6363, allocations: 2.492 MB / 0.6196 GB, free: 7.969 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.6363, allocations: 8.031 kB / 0.6196 GB, free: 7.961 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003576/0.6399, allocations: 0.5535 MB / 0.6202 GB, free: 7.406 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003091/0.643, allocations: 1.165 MB / 0.6213 GB, free: 6.188 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005068/0.6435, allocations: 395 kB / 0.6217 GB, free: 5.742 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00041/0.644, allocations: 95.91 kB / 0.6218 GB, free: 5.648 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00369/0.6477, allocations: 1.475 MB / 0.6232 GB, free: 4.152 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.662e-05/0.6477, allocations: 3.938 kB / 0.6232 GB, free: 4.148 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001737/0.6479, allocations: 36 kB / 0.6233 GB, free: 4.113 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.6479, allocations: 20 kB / 0.6233 GB, free: 4.094 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003534/0.6515, allocations: 1.46 MB / 0.6247 GB, free: 2.633 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01049/0.662, allocations: 4.784 MB / 0.6294 GB, free: 13.63 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009007/0.671, allocations: 3.49 MB / 0.6328 GB, free: 10.01 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002415/0.6735, allocations: 1 MB / 0.6338 GB, free: 9.008 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001938/0.6737, allocations: 25.72 kB / 0.6338 GB, free: 8.984 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.703e-05/0.6738, allocations: 47.56 kB / 0.6338 GB, free: 8.926 MB / 458.7 MB Notification: Performance of pre-optimization done (n=123): time 3.667e-06/0.6738, allocations: 0 / 0.6338 GB, free: 8.926 MB / 458.7 MB Notification: Performance of matching and sorting (n=123): time 0.04335/0.7171, allocations: 12.21 MB / 0.6458 GB, free: 12.68 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.624e-05/0.7173, allocations: 119.8 kB / 0.6459 GB, free: 12.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003023/0.7203, allocations: 1.407 MB / 0.6472 GB, free: 11.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003145/0.7206, allocations: 45.7 kB / 0.6473 GB, free: 11.07 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006391/0.7213, allocations: 0.6205 MB / 0.6479 GB, free: 10.44 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006984/0.722, allocations: 445.5 kB / 0.6483 GB, free: 9.996 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.7222, allocations: 20 kB / 0.6483 GB, free: 9.977 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.7223, allocations: 349.9 kB / 0.6487 GB, free: 9.629 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002007/0.7244, allocations: 0.8419 MB / 0.6495 GB, free: 8.789 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002164/0.7265, allocations: 0.9996 MB / 0.6505 GB, free: 7.738 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01904/0.7456, allocations: 5.63 MB / 0.656 GB, free: 2.059 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.7456, allocations: 0 / 0.656 GB, free: 2.059 MB / 474.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.0074/0.7531, allocations: 2.836 MB / 0.6587 GB, free: 15.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.7533, allocations: 193.1 kB / 0.6589 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.7533, allocations: 4 kB / 0.6589 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009764/0.7631, allocations: 3.015 MB / 0.6619 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009095/0.764, allocations: 175.7 kB / 0.662 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007081/0.7711, allocations: 3.006 MB / 0.665 GB, free: 8.738 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002308/0.7735, allocations: 262.8 kB / 0.6652 GB, free: 8.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002493/0.7737, allocations: 39.98 kB / 0.6653 GB, free: 8.441 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.7738, allocations: 4 kB / 0.6653 GB, free: 8.438 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0061/0.7799, allocations: 2.637 MB / 0.6678 GB, free: 5.797 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.7799, allocations: 0 / 0.6678 GB, free: 5.797 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009175/0.7891, allocations: 3.027 MB / 0.6708 GB, free: 2.766 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008217/0.7899, allocations: 163.7 kB / 0.6709 GB, free: 2.605 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2378/1.028, allocations: 2.997 MB / 0.6739 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002558/1.03, allocations: 247.9 kB / 0.6741 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/1.031, allocations: 42.73 kB / 0.6742 GB, free: 116.3 MB / 490.7 MB Warning: Assuming fixed start value for the following 2 variables: govHydroIEEE0_1.GovernorB.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] govHydroIEEE0_1.waterway.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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 {30 26} Notification: Performance of prepare postOptimizeDAE: time 0.000903/1.031, allocations: 365.8 kB / 0.6745 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/1.032, allocations: 158.8 kB / 0.6747 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01725/1.049, allocations: 5.951 MB / 0.6805 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.772e-05/1.049, allocations: 15.62 kB / 0.6805 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/1.049, allocations: 0 / 0.6805 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-05/1.049, allocations: 6.141 kB / 0.6805 GB, free: 116 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01957/1.069, allocations: 7.882 MB / 0.6882 GB, free: 115.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.845e-05/1.069, allocations: 0 / 0.6882 GB, free: 115.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009711/1.07, allocations: 141.3 kB / 0.6883 GB, free: 115.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007007/1.077, allocations: 2.503 MB / 0.6908 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00032/1.077, allocations: 25.78 kB / 0.6908 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0225/1.1, allocations: 10.31 MB / 0.7009 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.1, allocations: 3.219 kB / 0.7009 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01915/1.119, allocations: 7.164 MB / 0.7079 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008429/1.12, allocations: 278.2 kB / 0.7081 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000282/1.12, allocations: 23.06 kB / 0.7081 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/1.122, allocations: 196.5 kB / 0.7083 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009705/1.123, allocations: 246.9 kB / 0.7086 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/1.123, allocations: 33.44 kB / 0.7086 GB, free: 112.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002072/1.125, allocations: 0.9961 MB / 0.7096 GB, free: 111.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.125, allocations: 0 / 0.7096 GB, free: 111.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0024/1.127, allocations: 0.7405 MB / 0.7103 GB, free: 111.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (gENCLS.delta,gENCLS.eq,generator.w,generator.delta,generator.Epd,generator.Epq,generator.PSIkd,generator.PSIkq,govHydroIEEE0_1.GovernorA.TF.x_scaled[1],govHydroIEEE0_1.GovernorB.x_scaled[1],govHydroIEEE0_1.waterway.x_scaled[1],gENCLS.omega) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 79 * 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 {26 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004587/1.128, allocations: 181.7 kB / 0.7105 GB, free: 111.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01546/1.143, allocations: 4.738 MB / 0.7151 GB, free: 110.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/1.143, allocations: 1.969 kB / 0.7151 GB, free: 110.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006343/1.15, allocations: 2.163 MB / 0.7172 GB, free: 109.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/1.152, allocations: 152.5 kB / 0.7174 GB, free: 109.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005548/1.157, allocations: 3.578 MB / 0.7209 GB, free: 107.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005979/1.158, allocations: 1.231 MB / 0.7221 GB, free: 106.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007136/1.159, allocations: 164.5 kB / 0.7222 GB, free: 106.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/1.159, allocations: 85.23 kB / 0.7223 GB, free: 106.8 MB / 490.7 MB Notification: Performance of SimCode: time 5.71e-07/1.159, allocations: 0 / 0.7223 GB, free: 106.8 MB / 490.7 MB Notification: Performance of Templates: time 0.04048/1.199, allocations: 29.71 MB / 0.7513 GB, free: 102.1 MB / 490.7 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test.makefile make -j1 -f OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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=OpenIPSL_OpenIPSL_Examples_Controls_CGMES_TG_GovHydroIEEE0_Test -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=3 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test.o OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test.c In file included from OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test.c:7: In file included from ./OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test_model.h:26: ./OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test_functions.h:147:1: error: unknown type name 'OpenIPSL_Types_ComplexPower' OpenIPSL_Types_ComplexPower omc_OpenIPSL_Types_ComplexPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 1 error generated. make: *** [: OpenIPSL_OpenIPSL.Examples.Controls.CGMES.TG.GovHydroIEEE0_Test.o] Error 1