Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters.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.StaticGridComputedParameters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 106.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.001768/0.001768, allocations: 185.1 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 2.04/2.04, 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.1119/0.1119, 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.00231/0.00231, allocations: 59.91 kB / 349.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3623, allocations: 50.13 MB / 399.5 MB, free: 49.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters): time 0.01586/0.3782, allocations: 12.21 MB / 411.7 MB, free: 39.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.3907, allocations: 5.425 MB / 417.1 MB, free: 33.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003688/0.3945, allocations: 31.88 kB / 417.1 MB, free: 33.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.3977, allocations: 0.629 MB / 417.8 MB, free: 33.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01017/0.4079, allocations: 2.291 MB / 420.1 MB, free: 30.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003218/0.4112, allocations: 0.8905 MB / 420.9 MB, free: 29.98 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.007242/0.4184, allocations: 3.703 MB / 424.6 MB, free: 26.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008519/0.4193, allocations: 241.5 kB / 424.9 MB, free: 26.01 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00294/0.4223, allocations: 1.265 MB / 426.1 MB, free: 24.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002844/0.4251, allocations: 1.362 MB / 427.5 MB, free: 23.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003724/0.4255, allocations: 156 kB / 427.7 MB, free: 23.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.4276, allocations: 0.5661 MB / 428.2 MB, free: 22.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.4279, allocations: 386.3 kB / 428.6 MB, free: 22.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001332/0.4292, allocations: 1.104 MB / 429.7 MB, free: 21.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004282/0.4335, allocations: 2.699 MB / 432.4 MB, free: 18.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.4336, allocations: 0 / 432.4 MB, free: 18.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4336, allocations: 0 / 432.4 MB, free: 18.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.228e-05/0.4337, allocations: 0 / 432.4 MB, free: 18.46 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.0169/0.4506, allocations: 3.057 MB / 435.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.647e-05/0.4507, allocations: 12.02 kB / 435.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002163/0.4528, allocations: 274.5 kB / 435.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003672/0.4565, allocations: 1.194 MB / 436.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-05/0.4567, allocations: 102.9 kB / 437 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002809/0.457, allocations: 152.1 kB / 437.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/0.46, allocations: 1.272 MB / 438.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.48e-05/0.4601, allocations: 3.938 kB / 438.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.4602, allocations: 51.94 kB / 438.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.608e-05/0.4603, allocations: 32 kB / 438.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003078/0.4634, allocations: 1.302 MB / 439.8 MB, free: 10.85 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.01822/0.4816, allocations: 8.962 MB / 448.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003661/0.4853, allocations: 2.107 MB / 450.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001248/0.4866, allocations: 0.5095 MB / 451.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.4868, allocations: 17.22 kB / 451.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.023e-05/0.4868, allocations: 51.88 kB / 451.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=140): time 8.136e-06/0.4868, allocations: 4 kB / 451.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01365/0.5005, allocations: 4.125 MB / 455.6 MB, free: 9.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.5006, allocations: 64.72 kB / 455.7 MB, free: 9.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/0.5028, allocations: 1.177 MB / 456.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002331/0.5031, allocations: 57.7 kB / 456.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000587/0.5037, allocations: 0.6634 MB / 457.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006893/0.5044, allocations: 0.4929 MB / 458.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006426/0.505, allocations: 375.4 kB / 458.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.5052, allocations: 305.1 kB / 458.7 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.5063, allocations: 0.5546 MB / 459.3 MB, free: 6.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.5076, allocations: 1.014 MB / 460.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.5102, allocations: 1.598 MB / 461.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.5102, allocations: 4 kB / 461.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.00584/0.516, allocations: 2.349 MB / 464.3 MB, free: 0.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.5161, allocations: 12 kB / 464.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/0.5161, allocations: 12 kB / 464.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006982/0.5231, allocations: 1.165 MB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002179/0.5254, allocations: 467.4 kB / 465.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01627/0.5417, allocations: 13.53 MB / 479.4 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002578/0.5443, allocations: 95.58 kB / 479.5 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.5445, allocations: 76 kB / 479.6 MB, free: 244 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (235): * Single equations (assignments): 227 * 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.0007917/0.5453, allocations: 361.2 kB / 480 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006031/0.5459, allocations: 158.1 kB / 480.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003284/0.5492, allocations: 1.525 MB / 481.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.5492, allocations: 7.969 kB / 481.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.5493, allocations: 4 kB / 481.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009605/0.5502, allocations: 354.9 kB / 482 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002085/0.5504, allocations: 24 kB / 482 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009585/0.5514, allocations: 39.88 kB / 482.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.5517, allocations: 109.1 kB / 482.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003913/0.5556, allocations: 1.489 MB / 483.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0139/0.5695, allocations: 7.03 MB / 490.7 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007364/0.5703, allocations: 426.3 kB / 491.1 MB, free: 4.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001259/0.5716, allocations: 0.7589 MB / 491.9 MB, free: 3.777 MB / 366.1 MB Notification: Performance of Backend: time 7.62e-07/0.5716, allocations: 0 / 491.9 MB, free: 3.777 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.006396/0.578, allocations: 2.717 MB / 494.6 MB, free: 0.9531 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.01013/0.5881, allocations: 6.06 MB / 0.4889 GB, free: 10.82 MB / 382.1 MB Notification: Performance of Templates: time 0.2751/0.8633, allocations: 47.57 MB / 0.5354 GB, free: 100.8 MB / 398.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters.makefile make -j1 -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters.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.StaticGridComputedParametersCalcHelperMain.o OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParametersCalcHelperMain.cpp In file included from OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParametersCalcHelperMain.cpp:31: ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParametersJacobian.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.StaticGridComputedParametersJacobian.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.StaticGridComputedParametersJacobian.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.StaticGridComputedParametersJacobian.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.StaticGridComputedParametersJacobian.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.StaticGridComputedParametersJacobian.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.StaticGridComputedParametersCalcHelperMain.o] Error 1