Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") translateModel(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 174.9 kB / 16.11 MB, free: 5.699 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.417/1.417, allocations: 223.3 MB / 240.1 MB, free: 11.73 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.0008384/0.0008383, allocations: 90.92 kB / 291.3 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02456/0.02456, allocations: 5.388 MB / 347.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004946, allocations: 12 kB / 413.5 MB, free: 57.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1108, allocations: 51.61 MB / 465.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3226/0.4334, allocations: 93.64 MB / 0.5456 GB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001694/0.4336, allocations: 82.77 kB / 0.5457 GB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.076/0.5096, allocations: 30.01 MB / 0.575 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5096, allocations: 192 / 0.575 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.721e-05/0.5097, allocations: 19.94 kB / 0.575 GB, free: 0.7344 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003131/0.5128, allocations: 1.229 MB / 0.5762 GB, free: 15.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.5129, allocations: 12.88 kB / 0.5762 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/0.5145, allocations: 271.5 kB / 0.5765 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009118/0.5154, allocations: 0.5482 MB / 0.577 GB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.5155, allocations: 70.31 kB / 0.5771 GB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/0.5156, allocations: 100.4 kB / 0.5772 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002027/0.5177, allocations: 1.037 MB / 0.5782 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/0.5177, allocations: 8.125 kB / 0.5782 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.965e-05/0.5178, allocations: 43.94 kB / 0.5782 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.5179, allocations: 24 kB / 0.5783 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002049/0.5199, allocations: 0.9915 MB / 0.5792 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006487/0.5264, allocations: 4.025 MB / 0.5832 GB, free: 8.062 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.5284, allocations: 1.6 MB / 0.5847 GB, free: 6.227 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004933/0.5289, allocations: 286.4 kB / 0.585 GB, free: 5.941 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.045e-05/0.529, allocations: 93.03 kB / 0.5851 GB, free: 5.832 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005618/0.5296, allocations: 360.3 kB / 0.5854 GB, free: 5.453 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 2.345e-06/0.5296, allocations: 0 / 0.5854 GB, free: 5.453 MB / 394.7 MB Notification: Performance of matching and sorting (n=50): time 0.006793/0.5364, allocations: 1.576 MB / 0.587 GB, free: 3.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.537e-05/0.5365, allocations: 170.6 kB / 0.5871 GB, free: 3.637 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007319/0.5373, allocations: 0.5331 MB / 0.5877 GB, free: 3.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.5373, allocations: 37.7 kB / 0.5877 GB, free: 3.047 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.5377, allocations: 458.2 kB / 0.5881 GB, free: 2.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.5379, allocations: 173.6 kB / 0.5883 GB, free: 2.418 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.5379, allocations: 16 kB / 0.5883 GB, free: 2.402 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.5381, allocations: 366.8 kB / 0.5887 GB, free: 2.035 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005237/0.5386, allocations: 265.9 kB / 0.5889 GB, free: 1.773 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006448/0.5393, allocations: 470.2 kB / 0.5894 GB, free: 1.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.5404, allocations: 0.7842 MB / 0.5901 GB, free: 364 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5404, allocations: 0 / 0.5901 GB, free: 364 kB / 394.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001837/0.5423, allocations: 0.9305 MB / 0.591 GB, free: 15.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.5423, allocations: 40.14 kB / 0.5911 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.5424, allocations: 8 kB / 0.5911 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000489/0.5429, allocations: 92.94 kB / 0.5912 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007688/0.5436, allocations: 191.7 kB / 0.5914 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.5452, allocations: 1.553 MB / 0.5929 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.5459, allocations: 91.42 kB / 0.593 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.118e-05/0.5459, allocations: 43.97 kB / 0.593 GB, free: 13.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004166/0.5464, allocations: 276.8 kB / 0.5933 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.002e-05/0.5465, allocations: 59.34 kB / 0.5933 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.55, allocations: 1.054 MB / 0.5944 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.55, allocations: 4 kB / 0.5944 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.55, allocations: 4 kB / 0.5944 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.5501, allocations: 4.031 kB / 0.5944 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/0.5529, allocations: 1.825 MB / 0.5961 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.5529, allocations: 0 / 0.5961 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003252/0.5532, allocations: 83.86 kB / 0.5962 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002333/0.5556, allocations: 0.58 MB / 0.5968 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.036e-05/0.5556, allocations: 19.98 kB / 0.5968 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.5567, allocations: 0.9274 MB / 0.5977 GB, free: 8.285 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5568, allocations: 0 / 0.5977 GB, free: 8.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.5586, allocations: 1.138 MB / 0.5988 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002898/0.5589, allocations: 196.2 kB / 0.599 GB, free: 6.902 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.758e-05/0.559, allocations: 20.06 kB / 0.599 GB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004373/0.5595, allocations: 40.03 kB / 0.5991 GB, free: 6.844 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.802e-05/0.5595, allocations: 35.95 kB / 0.5991 GB, free: 6.809 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.753e-05/0.5596, allocations: 11.98 kB / 0.5991 GB, free: 6.797 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004689/0.5601, allocations: 390.7 kB / 0.5995 GB, free: 6.418 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5601, allocations: 0 / 0.5995 GB, free: 6.418 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000829/0.5609, allocations: 275 kB / 0.5998 GB, free: 6.148 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003132/0.5612, allocations: 187 kB / 0.5999 GB, free: 5.953 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.5628, allocations: 0.8318 MB / 0.6007 GB, free: 5.094 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5628, allocations: 0 / 0.6007 GB, free: 5.094 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000656/0.5634, allocations: 384.2 kB / 0.6011 GB, free: 4.707 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006544/0.5641, allocations: 94.69 kB / 0.6012 GB, free: 4.617 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.5665, allocations: 1.711 MB / 0.6029 GB, free: 2.867 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/0.5671, allocations: 0.9411 MB / 0.6038 GB, free: 1.895 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003374/0.5674, allocations: 76.84 kB / 0.6039 GB, free: 1.816 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.5676, allocations: 51.42 kB / 0.6039 GB, free: 1.766 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5676, allocations: 4 kB / 0.6039 GB, free: 1.762 MB / 410.7 MB Notification: Performance of Templates: time 0.01579/0.5834, allocations: 9.037 MB / 0.6127 GB, free: 8.781 MB / 426.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.makefile make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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=PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP -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 PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.o PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.c In file included from PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP_model.h:26: ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP_functions.h:336:1: error: unknown type name '_omcQComplexOutput_24converter_24potentialSensor_24v' _omcQComplexOutput_24converter_24potentialSensor_24v omc__omcQComplexOutput_24converter_24potentialSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP_functions.h:345:1: error: unknown type name '_omcQComplexOutput_24converter_24powerSensor_24apparentPower' _omcQComplexOutput_24converter_24powerSensor_24apparentPower omc__omcQComplexOutput_24converter_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 errors generated. make: *** [: PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.o] Error 1