Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PhotoVoltaics.Examples.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") translateModel(PhotoVoltaics.Examples.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 105.6 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 189.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02674/0.02674, allocations: 5.402 MB / 296.6 MB, free: 9.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 72.03 kB / 413.5 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1101, allocations: 50.63 MB / 464.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.0139/0.1241, allocations: 10.1 MB / 474.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00865/0.1328, allocations: 3.519 MB / 477.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002373/0.1352, allocations: 71.69 kB / 477.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007771/0.1431, allocations: 3.226 MB / 481 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004263/0.1474, allocations: 1.006 MB / 482 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002814/0.1502, allocations: 0.9532 MB / 483 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00581/0.156, allocations: 4.238 MB / 487.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01671/0.1727, allocations: 10.6 MB / 497.8 MB, free: 1.926 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004286/0.1771, allocations: 2.361 MB / 0.4885 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005007/0.1821, allocations: 2.651 MB / 0.491 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002324/0.1845, allocations: 0.7188 MB / 0.4917 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003617/0.1881, allocations: 0.9841 MB / 0.4927 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002636/0.1908, allocations: 1.329 MB / 0.494 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00581/0.1966, allocations: 2.6 MB / 0.4965 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3065/0.5032, allocations: 9.109 MB / 0.5054 GB, free: 27.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.956e-06/0.5032, allocations: 1.062 kB / 0.5054 GB, free: 27.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5033, allocations: 0 / 0.5054 GB, free: 27.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002945/0.5036, allocations: 0 / 0.5054 GB, free: 27.45 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01833/0.5219, allocations: 5.343 MB / 0.5107 GB, free: 25.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.522, allocations: 9.625 kB / 0.5107 GB, free: 25.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009892/0.5319, allocations: 1.587 MB / 0.5122 GB, free: 25.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008383/0.5403, allocations: 2.944 MB / 0.5151 GB, free: 25.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005932/0.5409, allocations: 318.7 kB / 0.5154 GB, free: 25.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002271/0.5432, allocations: 419 kB / 0.5158 GB, free: 25.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.559, allocations: 6.662 MB / 0.5223 GB, free: 22.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.743e-05/0.5591, allocations: 9.031 kB / 0.5223 GB, free: 22.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000468/0.5596, allocations: 171.7 kB / 0.5225 GB, free: 22.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002414/0.5598, allocations: 216.2 kB / 0.5227 GB, free: 22.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01041/0.5702, allocations: 5.614 MB / 0.5282 GB, free: 19.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02983/0.6001, allocations: 22.47 MB / 0.5501 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005951/0.6061, allocations: 4.371 MB / 0.5544 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.6075, allocations: 0.8302 MB / 0.5552 GB, free: 9.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/0.6077, allocations: 108.5 kB / 0.5553 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/0.6089, allocations: 0.7857 MB / 0.5561 GB, free: 9.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 2.876e-06/0.609, allocations: 0 / 0.5561 GB, free: 9.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.004932/0.6139, allocations: 2.238 MB / 0.5582 GB, free: 6.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.614, allocations: 148.6 kB / 0.5584 GB, free: 6.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/0.6168, allocations: 1.818 MB / 0.5602 GB, free: 4.758 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.183e-05/0.6169, allocations: 45.7 kB / 0.5602 GB, free: 4.707 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/0.6189, allocations: 1.96 MB / 0.5621 GB, free: 2.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/0.6193, allocations: 393.2 kB / 0.5625 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008366/0.6201, allocations: 0.5354 MB / 0.563 GB, free: 1.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.6202, allocations: 305.1 kB / 0.5633 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.6219, allocations: 1.086 MB / 0.5644 GB, free: 432 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00259/0.6245, allocations: 2.169 MB / 0.5665 GB, free: 13.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004232/0.6288, allocations: 3.37 MB / 0.5698 GB, free: 10 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.081e-05/0.6288, allocations: 12 kB / 0.5698 GB, free: 9.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.005991/0.6348, allocations: 3.476 MB / 0.5732 GB, free: 6.715 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.93e-05/0.6349, allocations: 45.7 kB / 0.5732 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.138e-05/0.6349, allocations: 36 kB / 0.5733 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/0.6355, allocations: 132.9 kB / 0.5734 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002029/0.6375, allocations: 0.6118 MB / 0.574 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.6392, allocations: 1.632 MB / 0.5756 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/0.6414, allocations: 368.8 kB / 0.5759 GB, free: 3.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/0.6416, allocations: 132 kB / 0.576 GB, free: 3.68 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.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 (313): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003089/0.6447, allocations: 1.716 MB / 0.5777 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004598/0.6452, allocations: 162 kB / 0.5779 GB, free: 1.836 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003273/0.6485, allocations: 1.78 MB / 0.5796 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002405/0.6509, allocations: 1.423 MB / 0.581 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.6509, allocations: 2.297 kB / 0.581 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.6509, allocations: 7.969 kB / 0.581 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01016/0.6611, allocations: 5.111 MB / 0.586 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.6612, allocations: 7.984 kB / 0.586 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008632/0.662, allocations: 213.2 kB / 0.5862 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006398/0.6627, allocations: 258.5 kB / 0.5865 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.6628, allocations: 35.98 kB / 0.5865 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.664, allocations: 0.8221 MB / 0.5873 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.664, allocations: 4 kB / 0.5873 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005712/0.6697, allocations: 2.726 MB / 0.59 GB, free: 5.328 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.6708, allocations: 362.8 kB / 0.5903 GB, free: 4.953 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000508/0.6713, allocations: 35.84 kB / 0.5903 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.6725, allocations: 83.84 kB / 0.5904 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.6727, allocations: 72.84 kB / 0.5905 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-05/0.6727, allocations: 40.05 kB / 0.5905 GB, free: 4.727 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002708/0.6755, allocations: 1.237 MB / 0.5917 GB, free: 3.492 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6755, allocations: 2.406 kB / 0.5917 GB, free: 3.492 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003723/0.6792, allocations: 0.9366 MB / 0.5927 GB, free: 2.551 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (converter.integrator.y,voltageSource.plug_p.reference.gamma) * 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 (108): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004753/0.6797, allocations: 209.9 kB / 0.5929 GB, free: 2.359 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004885/0.6846, allocations: 2.457 MB / 0.5953 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.6846, allocations: 8.062 kB / 0.5953 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.686, allocations: 0.7799 MB / 0.596 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.6884, allocations: 367.3 kB / 0.5964 GB, free: 14.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/0.7028, allocations: 6.274 MB / 0.6025 GB, free: 8.562 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004111/0.707, allocations: 2.953 MB / 0.6054 GB, free: 5.582 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007632/0.7078, allocations: 155.4 kB / 0.6055 GB, free: 5.43 MB / 446.1 MB Notification: Performance of SimCode: time 1.353e-06/0.7078, allocations: 0 / 0.6055 GB, free: 5.43 MB / 446.1 MB Notification: Performance of Templates: time 0.1132/0.821, allocations: 78.8 MB / 0.6825 GB, free: 6.73 MB / 0.5137 GB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.makefile make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3CalcHelperMain.o OMCppPhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3CalcHelperMain.cpp In file included from OMCppPhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3CalcHelperMain.cpp:29: ./OMCppPhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3Initialize.cpp:1097:77: error: use of undeclared identifier 'converter_P_vAC_' _functions->Modelica_Units_SI_ComplexVoltage__omcQ_27_2A_27_scalarProduct(converter_P_vAC_, tmp26, tmp30); ^ 1 error generated. make: *** [: OMCppPhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3CalcHelperMain.o] Error 1