Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Controls.CGMES.TG.GovHydroIEEE0_Test.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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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(OpenIPSL.Tests.Controls.CGMES.TG.GovHydroIEEE0_Test,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.CGMES.TG.GovHydroIEEE0_Test,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test",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.005852/0.005852, allocations: 169.5 kB / 15.11 MB, free: 5.973 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.469/1.469, allocations: 223.2 MB / 239 MB, free: 1.785 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.001113/0.001113, allocations: 97.89 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4936/0.4936, allocations: 79.44 MB / 420.8 MB, free: 43.75 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004067/0.0004069, allocations: 12 kB / 0.4891 GB, free: 1.91 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4918/0.4922, allocations: 69.49 MB / 0.557 GB, free: 38.99 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.6544, allocations: 110.1 MB / 0.6645 GB, free: 11.44 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003564/0.6549, allocations: 95.94 kB / 0.6646 GB, free: 11.35 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1229/0.7778, allocations: 40.57 MB / 0.7042 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.675e-06/0.7778, allocations: 0 / 0.7042 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001958/0.778, allocations: 31.94 kB / 0.7042 GB, free: 2.539 MB / 0.4948 GB 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.009908/0.788, allocations: 2.518 MB / 0.7067 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.918e-05/0.788, allocations: 12.03 kB / 0.7067 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007062/0.7888, allocations: 147.6 kB / 0.7069 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004578/0.7934, allocations: 0.6768 MB / 0.7075 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004167/0.7975, allocations: 1.135 MB / 0.7086 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005518/0.7981, allocations: 406.8 kB / 0.709 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005363/0.7987, allocations: 95.91 kB / 0.7091 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004004/0.8027, allocations: 1.46 MB / 0.7105 GB, free: 11.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.835e-05/0.8027, allocations: 3.938 kB / 0.7105 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.8029, allocations: 40 kB / 0.7106 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.803, allocations: 28 kB / 0.7106 GB, free: 11.83 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003547/0.8065, allocations: 1.452 MB / 0.712 GB, free: 10.37 MB / 0.5105 GB 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.01087/0.8174, allocations: 4.832 MB / 0.7167 GB, free: 5.328 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009288/0.8267, allocations: 3.491 MB / 0.7201 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000242/0.827, allocations: 20.98 kB / 0.7202 GB, free: 1.691 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.8271, allocations: 43.56 kB / 0.7202 GB, free: 1.641 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=123): time 3.516e-06/0.8271, allocations: 0 / 0.7202 GB, free: 1.641 MB / 0.5105 GB Notification: Performance of matching and sorting (n=123): time 0.04587/0.8729, allocations: 12.15 MB / 0.7321 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.8731, allocations: 123.8 kB / 0.7322 GB, free: 5.301 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003491/0.8766, allocations: 1.29 MB / 0.7335 GB, free: 4.004 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003814/0.8771, allocations: 49.7 kB / 0.7335 GB, free: 3.949 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006016/0.8777, allocations: 0.6166 MB / 0.7341 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008502/0.8785, allocations: 445.5 kB / 0.7345 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.8788, allocations: 20 kB / 0.7345 GB, free: 2.863 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002058/0.879, allocations: 353.9 kB / 0.7349 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/0.8811, allocations: 0.8381 MB / 0.7357 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002166/0.8832, allocations: 0.9957 MB / 0.7367 GB, free: 0.625 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/0.8853, allocations: 0.8952 MB / 0.7375 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.8853, allocations: 4 kB / 0.7376 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=145) (initialization): time 0.006651/0.892, allocations: 2.797 MB / 0.7403 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006112/0.8926, allocations: 1.351 MB / 0.7416 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.8927, allocations: 4 kB / 0.7416 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009745/0.9024, allocations: 3.011 MB / 0.7445 GB, free: 8.422 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.9035, allocations: 179.7 kB / 0.7447 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006968/0.9105, allocations: 3.012 MB / 0.7477 GB, free: 5.211 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002784/0.9133, allocations: 254.8 kB / 0.7479 GB, free: 4.961 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/0.9136, allocations: 43.98 kB / 0.7479 GB, free: 4.918 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.9137, allocations: 4.625 kB / 0.7479 GB, free: 4.914 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006296/0.92, allocations: 2.602 MB / 0.7505 GB, free: 2.309 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/0.92, allocations: 7.953 kB / 0.7505 GB, free: 2.301 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009532/0.9295, allocations: 3.003 MB / 0.7534 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009918/0.9306, allocations: 175.7 kB / 0.7536 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006615/0.9372, allocations: 3.004 MB / 0.7565 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/0.9397, allocations: 246.9 kB / 0.7568 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002293/0.9399, allocations: 47.98 kB / 0.7568 GB, free: 11.8 MB / 0.5573 GB Warning: Assuming fixed start value for the following 2 variables: govHydroIEEE0_1.waterway.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] govHydroIEEE0_1.GovernorB.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.001063/0.941, allocations: 362 kB / 0.7572 GB, free: 11.43 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006487/0.9417, allocations: 166 kB / 0.7573 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01733/0.959, allocations: 5.948 MB / 0.7631 GB, free: 5.305 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.311e-05/0.9591, allocations: 12 kB / 0.7631 GB, free: 5.293 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.9591, allocations: 4 kB / 0.7631 GB, free: 5.289 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.295e-05/0.9592, allocations: 7.969 kB / 0.7631 GB, free: 5.281 MB / 0.5573 GB 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.39/1.349, allocations: 7.898 MB / 0.7709 GB, free: 136 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.136e-05/1.349, allocations: 1.312 kB / 0.7709 GB, free: 136 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/1.35, allocations: 137.5 kB / 0.771 GB, free: 136 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008241/1.359, allocations: 2.503 MB / 0.7734 GB, free: 136 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003672/1.359, allocations: 29.41 kB / 0.7735 GB, free: 136 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0251/1.384, allocations: 10.9 MB / 0.7841 GB, free: 134.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.384, allocations: 0 / 0.7841 GB, free: 134.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01871/1.403, allocations: 7.178 MB / 0.7911 GB, free: 134.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008773/1.404, allocations: 287.8 kB / 0.7914 GB, free: 134 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003174/1.404, allocations: 26.22 kB / 0.7914 GB, free: 134 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001785/1.406, allocations: 191.5 kB / 0.7916 GB, free: 134 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008587/1.407, allocations: 244.3 kB / 0.7918 GB, free: 133.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/1.407, allocations: 31.62 kB / 0.7919 GB, free: 133.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00178/1.409, allocations: 1.03 MB / 0.7929 GB, free: 133.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.91e-07/1.409, allocations: 3 kB / 0.7929 GB, free: 133.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002582/1.411, allocations: 0.7391 MB / 0.7936 GB, free: 133.8 MB / 0.5573 GB 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.02051/1.432, allocations: 7.869 MB / 0.8013 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01557/1.447, allocations: 4.738 MB / 0.8059 GB, free: 132 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/1.447, allocations: 1.438 kB / 0.8059 GB, free: 132 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007158/1.455, allocations: 2.163 MB / 0.808 GB, free: 131.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/1.456, allocations: 137.6 kB / 0.8081 GB, free: 131.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02601/1.482, allocations: 14.73 MB / 0.8225 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/1.483, allocations: 1.266 MB / 0.8238 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0009566/1.484, allocations: 161.2 kB / 0.8239 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007972/1.485, allocations: 0.5802 MB / 0.8245 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of SimCode: time 1.312e-06/1.485, allocations: 0 / 0.8245 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08225/1.567, allocations: 43.36 MB / 0.8668 GB, free: 104.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/1.568, allocations: 208 kB / 0.867 GB, free: 104.7 MB / 0.5573 GB 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 -c -o OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test.o OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test.c In file included from OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test.c:7: In file included from ./OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test_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 OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test.c:7: In file included from ./OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test_model.h:24: ./OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test_functions.h:153: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); ^ 2 warnings and 1 error generated. make: *** [: OpenIPSL_dev_OpenIPSL_Tests_Controls_CGMES_TG_GovHydroIEEE0_Test.o] Error 1