Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Ignoring simflag -noemit -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001169, allocations: 105.2 kB / 16.97 MB, free: 6.168 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.00107/0.00107, allocations: 183.6 kB / 17.89 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.1 MB / 223.8 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06245/0.06245, allocations: 14.18 MB / 285.3 MB, free: 13.92 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001595, allocations: 64.45 kB / 349.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2479, allocations: 50.13 MB / 399.5 MB, free: 48.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid): time 0.009917/0.2579, allocations: 12.22 MB / 411.7 MB, free: 38.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007911/0.2659, allocations: 5.418 MB / 417.1 MB, free: 33.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.2677, allocations: 35.81 kB / 417.1 MB, free: 33.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.2693, allocations: 0.6251 MB / 417.8 MB, free: 32.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005401/0.2747, allocations: 2.297 MB / 420.1 MB, free: 30.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.2763, allocations: 0.8679 MB / 420.9 MB, free: 29.84 MB / 318.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2646:11-2646:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.003861/0.2802, allocations: 3.71 MB / 424.6 MB, free: 26.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005065/0.2807, allocations: 253.5 kB / 424.9 MB, free: 25.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001702/0.2824, allocations: 1.273 MB / 426.2 MB, free: 24.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001529/0.284, allocations: 1.35 MB / 427.5 MB, free: 23.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002246/0.2842, allocations: 156 kB / 427.7 MB, free: 23.06 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.2855, allocations: 0.5778 MB / 428.2 MB, free: 22.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.2857, allocations: 370.4 kB / 428.6 MB, free: 22.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008485/0.2866, allocations: 1.104 MB / 429.7 MB, free: 21.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002601/0.2892, allocations: 2.699 MB / 432.4 MB, free: 18.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2892, allocations: 8 kB / 432.4 MB, free: 18.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2892, allocations: 0 / 432.4 MB, free: 18.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.913e-05/0.2892, allocations: 0 / 432.4 MB, free: 18.3 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 325 * Number of variables: 325 Notification: Performance of Generate backend data structure: time 0.009076/0.2983, allocations: 3.057 MB / 435.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.2984, allocations: 8.031 kB / 435.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001185/0.2996, allocations: 282.5 kB / 435.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/0.3016, allocations: 1.178 MB / 436.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.3016, allocations: 110.9 kB / 437 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.3018, allocations: 148.1 kB / 437.2 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.3036, allocations: 1.276 MB / 438.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.3036, allocations: 0 / 438.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.69e-05/0.3037, allocations: 52 kB / 438.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.3037, allocations: 28 kB / 438.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.3055, allocations: 1.302 MB / 439.8 MB, free: 10.7 MB / 318.1 MB 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.01044/0.3159, allocations: 8.966 MB / 448.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.3185, allocations: 2.088 MB / 450.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008106/0.3194, allocations: 0.5134 MB / 451.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.835e-05/0.3195, allocations: 21.45 kB / 451.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.3195, allocations: 47.88 kB / 451.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=140): time 3.797e-06/0.3195, allocations: 0 / 451.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01174/0.3313, allocations: 4.129 MB / 455.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.3314, allocations: 64.72 kB / 455.7 MB, free: 9.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/0.3334, allocations: 1.18 MB / 456.8 MB, free: 8.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.3336, allocations: 57.7 kB / 456.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005796/0.3342, allocations: 0.6634 MB / 457.6 MB, free: 7.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005936/0.3348, allocations: 0.4967 MB / 458.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006337/0.3354, allocations: 371.4 kB / 458.4 MB, free: 6.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3356, allocations: 301.1 kB / 458.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.3366, allocations: 0.5546 MB / 459.3 MB, free: 5.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.3379, allocations: 1.012 MB / 460.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002178/0.3401, allocations: 1.612 MB / 461.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.3402, allocations: 4 kB / 461.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.005085/0.3452, allocations: 2.349 MB / 464.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.3453, allocations: 11.94 kB / 464.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.3453, allocations: 16 kB / 464.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006398/0.3517, allocations: 1.157 MB / 465.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/0.3537, allocations: 467.3 kB / 465.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/0.368, allocations: 13.52 MB / 479.4 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/0.3699, allocations: 99.58 kB / 479.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002648/0.3702, allocations: 80 kB / 479.6 MB, free: 80 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,0,100.0%), (2,0,100.0%), (2,0,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(23,0), (2,0), (2,0), (2,0), (2,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0007988/0.371, allocations: 365.2 kB / 479.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00047/0.3714, allocations: 154.1 kB / 480.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003019/0.3745, allocations: 1.521 MB / 481.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.3745, allocations: 7.969 kB / 481.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3745, allocations: 0 / 481.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007882/0.3753, allocations: 358.9 kB / 482 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003048/0.3756, allocations: 27.94 kB / 482 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.3767, allocations: 32 kB / 482 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.3769, allocations: 109.1 kB / 482.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003695/0.3806, allocations: 1.497 MB / 483.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01257/0.3932, allocations: 7.014 MB / 490.6 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007028/0.3939, allocations: 426.2 kB / 491.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001026/0.3949, allocations: 0.7549 MB / 491.8 MB, free: 3.637 MB / 366.1 MB Notification: Performance of Backend: time 4.31e-07/0.395, allocations: 0 / 491.8 MB, free: 3.637 MB / 366.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created initialization part: time 0.005661/0.4006, allocations: 2.702 MB / 494.5 MB, free: 0.8242 MB / 366.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of SimCode: time 0.008423/0.4091, allocations: 6.073 MB / 0.4889 GB, free: 10.69 MB / 382.1 MB Notification: Performance of Templates: time 0.2236/0.6327, allocations: 47.53 MB / 0.5353 GB, free: 125.7 MB / 414.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid.makefile make -j1 -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid.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 OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridCalcHelperMain.o OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridCalcHelperMain.cpp In file included from OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridCalcHelperMain.cpp:31: ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridJacobian.cpp:507:19: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(40) = ((_omcQ_24DAE_5FCJ_ * _Ajac_x(1)) + (_GEN_P_rfPu_ * (_Ajac_x(23) * _GEN_P_omegaBase_))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridJacobian.cpp:508:50: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(39) = ((_GEN_P_rDPu_ * _Ajac_x(24)) + (_omcQ_24DAE_5FCJ_ * division(_Ajac_x(2),_GEN_P_omegaBase_,!_initial,"GEN.omegaBase"))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridJacobian.cpp:509:51: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(38) = ((_GEN_P_rQ1Pu_ * _Ajac_x(38)) + (_omcQ_24DAE_5FCJ_ * division(_Ajac_x(3),_GEN_P_omegaBase_,!_initial,"GEN.omegaBase"))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridJacobian.cpp:510:51: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(37) = ((_GEN_P_rQ2Pu_ * _Ajac_x(39)) + (_omcQ_24DAE_5FCJ_ * division(_Ajac_x(4),_GEN_P_omegaBase_,!_initial,"GEN.omegaBase"))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridJacobian.cpp:543:53: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(0) = ((_Ajac_x(0) * _GEN_P_omegaBase_) - (_omcQ_24DAE_5FCJ_ * _Ajac_x(5))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridJacobian.cpp:545:56: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(41) = (_Ajac_tmp(7) + ((-2.0 * (_GEN_P_H_ * (_omcQ_24DAE_5FCJ_ * _Ajac_x(0)))) + ((-_Ajac_tmp(40)) - (_GEN_P_DPu_ * _Ajac_x(0))))); ^ 6 errors generated. make: *** [: OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridCalcHelperMain.o] Error 1