Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.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.ComponentTesting.PolyphaseVoltageControlledConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter") translateModel(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001229/0.001229, allocations: 187 kB / 17.34 MB, free: 5.762 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.316/1.316, 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.02807/0.02807, allocations: 5.395 MB / 296.6 MB, free: 9.5 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 67.89 kB / 410 MB, free: 26.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07562/0.07687, allocations: 50.62 MB / 460.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter): time 0.00897/0.08587, allocations: 8.124 MB / 468.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00399/0.08987, allocations: 2.554 MB / 471.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004498/0.09034, allocations: 59.81 kB / 471.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006206/0.09656, allocations: 3.021 MB / 474.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001927/0.0985, allocations: 0.8508 MB / 475.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001619/0.1001, allocations: 0.833 MB / 476 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003281/0.1034, allocations: 3.651 MB / 479.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01126/0.1147, allocations: 10.37 MB / 490 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002287/0.117, allocations: 2.147 MB / 492.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002581/0.1196, allocations: 2.391 MB / 494.6 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007566/0.1204, allocations: 0.6641 MB / 495.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001424/0.1218, allocations: 0.9216 MB / 496.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009842/0.1228, allocations: 1.22 MB / 497.4 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002092/0.1249, allocations: 2.366 MB / 499.7 MB, free: 36 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007044/0.132, allocations: 8.539 MB / 0.4964 GB, free: 7.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.132, allocations: 0 / 0.4964 GB, free: 7.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.132, allocations: 0 / 0.4964 GB, free: 7.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.941e-05/0.1321, allocations: 0 / 0.4964 GB, free: 7.473 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: 1072 * Number of variables: 1072 Notification: Performance of Generate backend data structure: time 0.009717/0.1418, allocations: 4.789 MB / 0.501 GB, free: 2.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.1419, allocations: 8.031 kB / 0.5011 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009364/0.1512, allocations: 1.546 MB / 0.5026 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.248/0.3992, allocations: 2.605 MB / 0.5051 GB, free: 44.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/0.3995, allocations: 299.1 kB / 0.5054 GB, free: 44.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007061/0.4002, allocations: 387 kB / 0.5058 GB, free: 44.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/0.4104, allocations: 6.367 MB / 0.512 GB, free: 41.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.651e-05/0.4105, allocations: 5.562 kB / 0.512 GB, free: 41.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003971/0.4109, allocations: 160.4 kB / 0.5121 GB, free: 41.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002736/0.4112, allocations: 201.2 kB / 0.5123 GB, free: 41.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008518/0.4197, allocations: 5.362 MB / 0.5176 GB, free: 39.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02082/0.4406, allocations: 21.35 MB / 0.5384 GB, free: 22.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003796/0.4444, allocations: 3.783 MB / 0.5421 GB, free: 18.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008335/0.4453, allocations: 0.7117 MB / 0.5428 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.592e-05/0.4454, allocations: 113.4 kB / 0.5429 GB, free: 17.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.4454, allocations: 40.77 kB / 0.543 GB, free: 17.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=86): time 2.605e-06/0.4454, allocations: 0 / 0.543 GB, free: 17.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=86): time 0.002198/0.4476, allocations: 1.618 MB / 0.5445 GB, free: 15.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.4477, allocations: 86.11 kB / 0.5446 GB, free: 15.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/0.4492, allocations: 1.598 MB / 0.5462 GB, free: 13.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.804e-05/0.4493, allocations: 37.7 kB / 0.5462 GB, free: 13.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005701/0.4498, allocations: 1.787 MB / 0.548 GB, free: 12.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.45, allocations: 319.6 kB / 0.5483 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005109/0.4506, allocations: 495.4 kB / 0.5487 GB, free: 11.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.839e-05/0.4506, allocations: 349.9 kB / 0.5491 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.4519, allocations: 1.083 MB / 0.5501 GB, free: 9.883 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.4533, allocations: 2.011 MB / 0.5521 GB, free: 7.395 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002558/0.4559, allocations: 3.058 MB / 0.5551 GB, free: 3.844 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.4559, allocations: 11.94 kB / 0.5551 GB, free: 3.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.0036/0.4595, allocations: 3.078 MB / 0.5581 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.4596, allocations: 26.75 kB / 0.5581 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/0.4596, allocations: 36 kB / 0.5582 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.942e-05/0.4596, allocations: 48 kB / 0.5582 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.4613, allocations: 0.5615 MB / 0.5587 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.643e-05/0.4614, allocations: 79.97 kB / 0.5588 GB, free: 16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.4628, allocations: 325 kB / 0.5591 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/0.463, allocations: 132 kB / 0.5593 GB, free: 15.55 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: voltageSource.plug_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 1 (converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 277 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002084/0.4651, allocations: 1.633 MB / 0.5609 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000231/0.4653, allocations: 130.3 kB / 0.561 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/0.4677, allocations: 1.377 MB / 0.5623 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00156/0.4693, allocations: 1.06 MB / 0.5634 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.4693, allocations: 3.984 kB / 0.5634 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.4693, allocations: 3.984 kB / 0.5634 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00668/0.476, allocations: 4.262 MB / 0.5675 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.476, allocations: 0 / 0.5675 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009161/0.477, allocations: 211.7 kB / 0.5677 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.477, allocations: 4 kB / 0.5677 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.348e-05/0.477, allocations: 20 kB / 0.5678 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.206e-06/0.4771, allocations: 7.984 kB / 0.5678 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.4771, allocations: 8.125 kB / 0.5678 GB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002916/0.48, allocations: 2.098 MB / 0.5698 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005975/0.4806, allocations: 307.3 kB / 0.5701 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.4808, allocations: 30.86 kB / 0.5701 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000607/0.4814, allocations: 59.92 kB / 0.5702 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.4815, allocations: 60.86 kB / 0.5703 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/0.4816, allocations: 31.98 kB / 0.5703 GB, free: 4.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.483, allocations: 1.097 MB / 0.5714 GB, free: 3.031 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.483, allocations: 8.062 kB / 0.5714 GB, free: 3.023 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002135/0.4852, allocations: 0.8435 MB / 0.5722 GB, free: 2.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (voltageSource.plug_p.reference.gamma,converter.integrator.y) * 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 (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003046/0.4855, allocations: 188.2 kB / 0.5724 GB, free: 2.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002909/0.4884, allocations: 2.016 MB / 0.5743 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4884, allocations: 0 / 0.5743 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008307/0.4893, allocations: 0.572 MB / 0.5749 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.4908, allocations: 304.1 kB / 0.5752 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008335/0.4991, allocations: 5.688 MB / 0.5807 GB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002438/0.5016, allocations: 2.826 MB / 0.5835 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004248/0.502, allocations: 143.4 kB / 0.5836 GB, free: 6.41 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.502, allocations: 0 / 0.5836 GB, free: 6.41 MB / 414.1 MB Notification: Performance of Templates: time 0.05763/0.5597, allocations: 49.67 MB / 0.6321 GB, free: 4.805 MB / 462.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.makefile make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.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.ComponentTesting.PolyphaseVoltageControlledConverterCalcHelperMain.o OMCppPhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverterCalcHelperMain.cpp In file included from OMCppPhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverterCalcHelperMain.cpp:29: ./OMCppPhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverterInitialize.cpp:1002: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.ComponentTesting.PolyphaseVoltageControlledConverterCalcHelperMain.o] Error 1