Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.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.Examples.TwoAreas.Two_Areas_PSSE_AVR,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR",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.007992/0.007992, allocations: 172 kB / 15.11 MB, free: 5.98 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.542/1.542, allocations: 223.2 MB / 239 MB, free: 1.797 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.00106/0.00106, allocations: 91.8 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4979/0.4979, allocations: 79.44 MB / 420.8 MB, free: 43.69 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006141/0.0006143, allocations: 12 kB / 0.4891 GB, free: 1.941 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5142/0.5149, allocations: 69.51 MB / 0.557 GB, free: 38.73 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1484/0.6634, allocations: 113.3 MB / 0.6677 GB, free: 8.203 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003768/0.6638, allocations: 83.95 kB / 0.6677 GB, free: 8.121 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6435/1.307, allocations: 123.9 MB / 0.7888 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.805e-06/1.307, allocations: 0 / 0.7888 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003254/1.308, allocations: 88.36 kB / 0.7889 GB, free: 100.4 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 691 * Number of variables: 691 Notification: Performance of Generate backend data structure: time 0.02277/1.331, allocations: 6.623 MB / 0.7953 GB, free: 98.24 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/1.331, allocations: 10.66 kB / 0.7953 GB, free: 98.24 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001848/1.332, allocations: 386.9 kB / 0.7957 GB, free: 98.19 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01217/1.345, allocations: 1.964 MB / 0.7976 GB, free: 97.9 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/1.357, allocations: 3.294 MB / 0.8008 GB, free: 97.21 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001056/1.358, allocations: 1.009 MB / 0.8018 GB, free: 96.42 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/1.36, allocations: 303.2 kB / 0.8021 GB, free: 96.41 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/1.37, allocations: 4.1 MB / 0.8061 GB, free: 96.18 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.326e-05/1.37, allocations: 3.281 kB / 0.8061 GB, free: 96.18 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003785/1.371, allocations: 110.1 kB / 0.8062 GB, free: 96.18 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.811e-05/1.371, allocations: 68.41 kB / 0.8063 GB, free: 96.18 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/1.381, allocations: 3.985 MB / 0.8102 GB, free: 96.11 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 preOpt removeSimpleEquations (simulation): time 0.05299/1.434, allocations: 15.66 MB / 0.8255 GB, free: 92.08 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0186/1.453, allocations: 7.197 MB / 0.8325 GB, free: 89.27 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001139/1.454, allocations: 0.7619 MB / 0.8332 GB, free: 88.42 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007893/1.462, allocations: 3.031 MB / 0.8362 GB, free: 87.33 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=331): time 9.548e-06/1.462, allocations: 0 / 0.8362 GB, free: 87.33 MB / 0.5573 GB Notification: Performance of matching and sorting (n=331): time 0.1236/1.585, allocations: 33.87 MB / 0.8693 GB, free: 82.57 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.869e-05/1.586, allocations: 188.4 kB / 0.8695 GB, free: 82.38 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01129/1.597, allocations: 4.059 MB / 0.8734 GB, free: 80.81 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.00132/1.598, allocations: 84.58 kB / 0.8735 GB, free: 80.73 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002078/1.6, allocations: 1.874 MB / 0.8753 GB, free: 79.25 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002352/1.603, allocations: 1.155 MB / 0.8765 GB, free: 78.34 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001153/1.604, allocations: 75.56 kB / 0.8765 GB, free: 78.29 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003675/1.604, allocations: 449.7 kB / 0.877 GB, free: 77.92 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00611/1.61, allocations: 2.419 MB / 0.8793 GB, free: 77.05 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006129/1.617, allocations: 2.794 MB / 0.8821 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006047/1.623, allocations: 2.551 MB / 0.8845 GB, free: 74.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.749e-05/1.623, allocations: 4 kB / 0.8845 GB, free: 74.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=479) (initialization): time 0.0195/1.642, allocations: 7.816 MB / 0.8922 GB, free: 67.04 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/1.642, allocations: 4 kB / 0.8922 GB, free: 67.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.793e-05/1.642, allocations: 11.66 kB / 0.8922 GB, free: 67.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02506/1.667, allocations: 11.1 MB / 0.903 GB, free: 57.44 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003158/1.671, allocations: 0.5892 MB / 0.9036 GB, free: 56.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01741/1.688, allocations: 6.965 MB / 0.9104 GB, free: 50.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007124/1.695, allocations: 0.7013 MB / 0.9111 GB, free: 50.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000986/1.696, allocations: 135 kB / 0.9112 GB, free: 50.08 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,g4.eSDC1A.rotatingExciterLimited.sISO.local_reset,g2.eSDC1A.rotatingExciterLimited.sISO.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (324): * Single equations (assignments): 321 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {80 72} Notification: Performance of prepare postOptimizeDAE: time 0.003456/1.7, allocations: 0.7002 MB / 0.9119 GB, free: 49.4 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002392/1.702, allocations: 482 kB / 0.9124 GB, free: 48.92 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03863/1.741, allocations: 14.07 MB / 0.9261 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-05/1.741, allocations: 35.8 kB / 0.9261 GB, free: 37.83 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/1.741, allocations: 0 / 0.9261 GB, free: 37.83 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001127/1.741, allocations: 18.91 kB / 0.9262 GB, free: 37.82 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.05051/1.791, allocations: 20.17 MB / 0.9459 GB, free: 18.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.562e-05/1.792, allocations: 0 / 0.9459 GB, free: 18.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/1.795, allocations: 435.5 kB / 0.9463 GB, free: 18.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01578/1.811, allocations: 5.585 MB / 0.9517 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/1.812, allocations: 83.92 kB / 0.9518 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05694/1.869, allocations: 23.26 MB / 0.9745 GB, free: 5.145 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/1.869, allocations: 3.984 kB / 0.9745 GB, free: 5.141 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05528/1.924, allocations: 17.4 MB / 0.9915 GB, free: 3.625 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002735/1.927, allocations: 0.7481 MB / 0.9922 GB, free: 2.852 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002551/1.929, allocations: 68 kB / 0.9923 GB, free: 2.785 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007005/1.936, allocations: 499.5 kB / 0.9928 GB, free: 2.297 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003171/1.94, allocations: 0.6235 MB / 0.9934 GB, free: 1.672 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009975/1.941, allocations: 95.97 kB / 0.9935 GB, free: 1.578 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.324/2.265, allocations: 3.087 MB / 0.9965 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.21e-07/2.265, allocations: 0 / 0.9965 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007301/2.272, allocations: 1.282 MB / 0.9978 GB, free: 124.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 38 (g1.g1.w,g1.g1.delta,g1.g1.Epd,g1.g1.Epq,g1.g1.PSIkd,g1.g1.PSIkq,g1.sEXS.simpleLagLim.state,g1.sEXS.leadLag.TF.x_scaled[1],g2.g2.w,g2.g2.delta,g2.g2.Epd,g2.g2.Epq,g2.g2.PSIkd,g2.g2.PSIkq,g2.eSDC1A.imDerivativeLag.x,g2.eSDC1A.imLeadLag.TF.x_scaled[1],g2.eSDC1A.simpleLagLim.state,g2.eSDC1A.rotatingExciterLimited.sISO.y,g2.eSDC1A.TransducerDelay.state,g3.g3.w,g3.g3.delta,g3.g3.Epd,g3.g3.Epq,g3.g3.PSIkd,g3.g3.PSIkq,g3.sEXS.simpleLagLim.state,g3.sEXS.leadLag.TF.x_scaled[1],g4.gENSAL.w,g4.gENSAL.delta,g4.gENSAL.Epd,g4.gENSAL.Epq,g4.gENSAL.PSIkd,g4.gENSAL.PSIkq,g4.eSDC1A.imDerivativeLag.x,g4.eSDC1A.imLeadLag.TF.x_scaled[1],g4.eSDC1A.simpleLagLim.state,g4.eSDC1A.rotatingExciterLimited.sISO.y,g4.eSDC1A.TransducerDelay.state) * Number of discrete variables: 8 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 237 * 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 {54 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.04818/2.32, allocations: 18.2 MB / 1.016 GB, free: 123.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02099/2.341, allocations: 7.354 MB / 1.023 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/2.341, allocations: 1.594 kB / 1.023 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01426/2.356, allocations: 4.971 MB / 1.028 GB, free: 123 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/2.36, allocations: 394.2 kB / 1.028 GB, free: 123 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02529/2.385, allocations: 17.27 MB / 1.045 GB, free: 111.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001979/2.387, allocations: 2.427 MB / 1.047 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.002542/2.39, allocations: 400.5 kB / 1.048 GB, free: 111 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003099/2.393, allocations: 1.97 MB / 1.049 GB, free: 111 MB / 0.5886 GB Notification: Performance of SimCode: time 1.572e-06/2.393, allocations: 0 / 1.049 GB, free: 111 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.153/2.546, allocations: 106.6 MB / 1.154 GB, free: 59.11 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/2.546, allocations: 200.9 kB / 1.154 GB, free: 58.87 MB / 0.5886 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_Examples_TwoAreas_Two_Areas_PSSE_AVR.o OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR.c In file included from OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR.c:7: In file included from ./OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR_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_Examples_TwoAreas_Two_Areas_PSSE_AVR.c:7: In file included from ./OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR_model.h:24: ./OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR_functions.h:587: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_Examples_TwoAreas_Two_Areas_PSSE_AVR.o] Error 1