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.001464/0.001464, allocations: 108 kB / 16.41 MB, free: 6.027 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.001577/0.001577, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02865/0.02865, allocations: 5.407 MB / 296.6 MB, free: 9.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 59.91 kB / 413.5 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07952/0.08087, allocations: 50.63 MB / 464.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01174/0.09265, allocations: 10.11 MB / 474.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006498/0.09918, allocations: 3.523 MB / 477.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.1006, allocations: 71.75 kB / 477.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007471/0.1081, allocations: 3.224 MB / 481 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003114/0.1112, allocations: 1.01 MB / 482 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00226/0.1135, allocations: 0.9498 MB / 483 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004652/0.1182, allocations: 4.238 MB / 487.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0137/0.1319, allocations: 10.59 MB / 497.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.1349, allocations: 2.373 MB / 0.4885 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003843/0.1387, allocations: 2.64 MB / 0.491 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001383/0.1401, allocations: 0.7188 MB / 0.4917 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00235/0.1425, allocations: 0.988 MB / 0.4927 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001624/0.1441, allocations: 1.329 MB / 0.494 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003569/0.1477, allocations: 2.607 MB / 0.4966 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1966/0.3443, allocations: 9.106 MB / 0.5054 GB, free: 27.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3444, allocations: 1.062 kB / 0.5054 GB, free: 27.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3444, allocations: 0 / 0.5054 GB, free: 27.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002061/0.3446, allocations: 0 / 0.5054 GB, free: 27.43 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.0149/0.3595, allocations: 5.341 MB / 0.5107 GB, free: 25.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3596, allocations: 9.625 kB / 0.5107 GB, free: 25.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009765/0.3694, allocations: 1.59 MB / 0.5122 GB, free: 25.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006635/0.376, allocations: 2.939 MB / 0.5151 GB, free: 25.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003384/0.3764, allocations: 321.4 kB / 0.5154 GB, free: 25.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00135/0.3778, allocations: 424.3 kB / 0.5158 GB, free: 25.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01167/0.3894, allocations: 6.666 MB / 0.5223 GB, free: 22.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.152e-05/0.3896, allocations: 5.938 kB / 0.5223 GB, free: 22.92 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004811/0.3901, allocations: 171.3 kB / 0.5225 GB, free: 22.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001779/0.3902, allocations: 211.3 kB / 0.5227 GB, free: 22.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009078/0.3993, allocations: 5.614 MB / 0.5282 GB, free: 19.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02601/0.4254, allocations: 22.47 MB / 0.5501 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005713/0.4311, allocations: 4.374 MB / 0.5544 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.4325, allocations: 0.8277 MB / 0.5552 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001429/0.4326, allocations: 113.5 kB / 0.5553 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/0.4339, allocations: 0.781 MB / 0.5561 GB, free: 9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 2.795e-06/0.4339, allocations: 7.938 kB / 0.5561 GB, free: 8.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.005009/0.4389, allocations: 2.231 MB / 0.5582 GB, free: 6.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.887e-05/0.439, allocations: 149.5 kB / 0.5584 GB, free: 6.551 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/0.4415, allocations: 1.818 MB / 0.5602 GB, free: 4.723 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.699e-05/0.4416, allocations: 45.7 kB / 0.5602 GB, free: 4.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.4432, allocations: 1.961 MB / 0.5621 GB, free: 2.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003313/0.4435, allocations: 388.7 kB / 0.5625 GB, free: 2.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008167/0.4444, allocations: 0.5394 MB / 0.563 GB, free: 1.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.298e-05/0.4445, allocations: 301.1 kB / 0.5633 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/0.4463, allocations: 1.086 MB / 0.5644 GB, free: 404 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002505/0.4488, allocations: 2.171 MB / 0.5665 GB, free: 13.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/0.4529, allocations: 3.364 MB / 0.5698 GB, free: 9.973 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.285e-05/0.453, allocations: 12 kB / 0.5698 GB, free: 9.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.00626/0.4593, allocations: 3.478 MB / 0.5732 GB, free: 6.688 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.112e-05/0.4593, allocations: 49.7 kB / 0.5732 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.496e-05/0.4594, allocations: 36 kB / 0.5733 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000606/0.46, allocations: 128.9 kB / 0.5734 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.4622, allocations: 0.6101 MB / 0.574 GB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.4639, allocations: 1.639 MB / 0.5756 GB, free: 4.145 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/0.466, allocations: 370.2 kB / 0.5759 GB, free: 3.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.4662, allocations: 136 kB / 0.5761 GB, free: 3.648 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.002603/0.4689, allocations: 1.708 MB / 0.5777 GB, free: 1.969 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.4692, allocations: 158 kB / 0.5779 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003392/0.4726, allocations: 1.776 MB / 0.5796 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002524/0.4752, allocations: 1.427 MB / 0.581 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4752, allocations: 0 / 0.581 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.4752, allocations: 11.97 kB / 0.581 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/0.4858, allocations: 5.119 MB / 0.586 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4858, allocations: 0 / 0.586 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008993/0.4867, allocations: 210.7 kB / 0.5862 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006423/0.4874, allocations: 258.6 kB / 0.5865 GB, free: 8.957 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.207e-05/0.4875, allocations: 27.98 kB / 0.5865 GB, free: 8.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.4885, allocations: 0.8347 MB / 0.5873 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4886, allocations: 0 / 0.5873 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005741/0.4943, allocations: 2.729 MB / 0.59 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008389/0.4952, allocations: 364.9 kB / 0.5903 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003039/0.4955, allocations: 35.83 kB / 0.5904 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009478/0.4964, allocations: 87.84 kB / 0.5904 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.4966, allocations: 68.97 kB / 0.5905 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.762e-05/0.4967, allocations: 32 kB / 0.5905 GB, free: 4.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001768/0.4984, allocations: 1.237 MB / 0.5917 GB, free: 3.477 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4985, allocations: 0 / 0.5917 GB, free: 3.477 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002618/0.5011, allocations: 0.9444 MB / 0.5927 GB, free: 2.527 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.000397/0.5015, allocations: 201.5 kB / 0.5929 GB, free: 2.336 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00402/0.5055, allocations: 2.47 MB / 0.5953 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5055, allocations: 1.422 kB / 0.5953 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.5069, allocations: 0.7838 MB / 0.596 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00178/0.5087, allocations: 366.9 kB / 0.5964 GB, free: 14.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.5196, allocations: 6.277 MB / 0.6025 GB, free: 8.531 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00298/0.5226, allocations: 2.946 MB / 0.6054 GB, free: 5.559 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005329/0.5231, allocations: 163.4 kB / 0.6055 GB, free: 5.398 MB / 446.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5231, allocations: 0 / 0.6055 GB, free: 5.398 MB / 446.1 MB Notification: Performance of Templates: time 0.08876/0.6119, allocations: 79.12 MB / 0.6828 GB, free: 6.367 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