Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifier.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.LoadChange.LoadChangeByModifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifier") translateModel(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 101.2 kB / 16.97 MB, free: 6.188 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.001708/0.001708, allocations: 190.2 kB / 17.9 MB, free: 5.289 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.394/1.394, 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.06388/0.06388, allocations: 14.18 MB / 285.3 MB, free: 13.93 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.001603/0.001603, allocations: 59.91 kB / 349.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2459, allocations: 50.12 MB / 399.5 MB, free: 48.78 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifier): time 0.009747/0.2557, allocations: 12.23 MB / 411.7 MB, free: 38.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00799/0.2637, allocations: 5.432 MB / 417.1 MB, free: 33.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.266, allocations: 31.88 kB / 417.1 MB, free: 33.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001769/0.2678, allocations: 0.6212 MB / 417.8 MB, free: 32.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005919/0.2738, allocations: 2.295 MB / 420.1 MB, free: 30.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.2754, allocations: 0.8676 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.003791/0.2792, allocations: 3.717 MB / 424.6 MB, free: 26.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004013/0.2796, allocations: 253.5 kB / 424.9 MB, free: 25.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001578/0.2812, allocations: 1.257 MB / 426.2 MB, free: 24.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.2825, allocations: 1.366 MB / 427.5 MB, free: 23.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002031/0.2827, allocations: 156 kB / 427.7 MB, free: 23.06 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.2839, allocations: 0.5739 MB / 428.2 MB, free: 22.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.2841, allocations: 386.3 kB / 428.6 MB, free: 22.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007237/0.2848, allocations: 1.104 MB / 429.7 MB, free: 21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002205/0.287, allocations: 2.71 MB / 432.4 MB, free: 18.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.287, allocations: 4 kB / 432.4 MB, free: 18.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.287, allocations: 0 / 432.4 MB, free: 18.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.093e-05/0.2871, allocations: 0 / 432.4 MB, free: 18.28 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.008727/0.2958, allocations: 3.061 MB / 435.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.2959, allocations: 8.031 kB / 435.5 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.2969, allocations: 282.4 kB / 435.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.2987, allocations: 1.19 MB / 437 MB, free: 13.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.2988, allocations: 106.9 kB / 437.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.2989, allocations: 144.1 kB / 437.2 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.3006, allocations: 1.276 MB / 438.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.3006, allocations: 0 / 438.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.864e-05/0.3007, allocations: 52 kB / 438.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.3008, allocations: 32 kB / 438.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.3025, allocations: 1.298 MB / 439.9 MB, free: 10.67 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.009956/0.3125, allocations: 8.993 MB / 448.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/0.3148, allocations: 2.112 MB / 451 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008102/0.3157, allocations: 0.5293 MB / 451.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.709e-05/0.3158, allocations: 17.45 kB / 451.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.3158, allocations: 51.81 kB / 451.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=144): time 3.877e-06/0.3158, allocations: 0 / 451.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=145): time 0.01067/0.3265, allocations: 4.139 MB / 455.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.3266, allocations: 64.72 kB / 455.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00189/0.3285, allocations: 1.172 MB / 456.9 MB, free: 8.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.3286, allocations: 57.7 kB / 457 MB, free: 8.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005045/0.3291, allocations: 0.6596 MB / 457.7 MB, free: 7.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004903/0.3296, allocations: 0.5044 MB / 458.2 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004994/0.3301, allocations: 371.4 kB / 458.5 MB, free: 6.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3303, allocations: 305.1 kB / 458.8 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009766/0.3312, allocations: 0.5703 MB / 459.4 MB, free: 5.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.3327, allocations: 1.014 MB / 460.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002419/0.3351, allocations: 1.622 MB / 462 MB, free: 2.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.3351, allocations: 4 kB / 462 MB, free: 2.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.005092/0.3402, allocations: 2.36 MB / 464.4 MB, free: 464 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.3403, allocations: 12 kB / 464.4 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/0.3403, allocations: 12 kB / 464.4 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006339/0.3466, allocations: 1.161 MB / 465.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001935/0.3486, allocations: 467.3 kB / 466 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/0.3625, allocations: 13.53 MB / 479.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.3645, allocations: 91.59 kB / 479.7 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001633/0.3647, allocations: 87.97 kB / 479.7 MB, free: 15.94 MB / 366.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 (237): * Single equations (assignments): 229 * 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.0006816/0.3654, allocations: 365.2 kB / 480.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003029/0.3657, allocations: 154.1 kB / 480.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.3687, allocations: 1.564 MB / 481.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.3687, allocations: 7.969 kB / 481.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3687, allocations: 0 / 481.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007012/0.3695, allocations: 358.9 kB / 482.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.3697, allocations: 31.94 kB / 482.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008883/0.3706, allocations: 35.92 kB / 482.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.3708, allocations: 117.1 kB / 482.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00366/0.3744, allocations: 1.524 MB / 483.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01245/0.3869, allocations: 7.436 MB / 491.3 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006892/0.3877, allocations: 442.3 kB / 491.7 MB, free: 3.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001003/0.3887, allocations: 0.7508 MB / 492.5 MB, free: 2.988 MB / 366.1 MB Notification: Performance of Backend: time 4.21e-07/0.3887, allocations: 0 / 492.5 MB, free: 2.988 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.005644/0.3944, allocations: 2.725 MB / 495.2 MB, free: 152 kB / 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.008539/0.4029, allocations: 6.095 MB / 0.4896 GB, free: 9.992 MB / 382.1 MB Notification: Performance of Templates: time 0.2099/0.6128, allocations: 47.67 MB / 0.5361 GB, free: 125.6 MB / 414.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifier.makefile make -j1 -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifier.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.LoadChange.LoadChangeByModifierCalcHelperMain.o OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierCalcHelperMain.cpp In file included from OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierCalcHelperMain.cpp:31: ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierJacobian.cpp:509: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.LoadChange.LoadChangeByModifierJacobian.cpp:546:19: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(37) = ((_omcQ_24DAE_5FCJ_ * _Ajac_x(4)) + (_GEN_P_rfPu_ * (_Ajac_x(39) * _GEN_P_omegaBase_))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierJacobian.cpp:547:50: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(38) = ((_GEN_P_rDPu_ * _Ajac_x(38)) + (_omcQ_24DAE_5FCJ_ * division(_Ajac_x(3),_GEN_P_omegaBase_,!_initial,"GEN.omegaBase"))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierJacobian.cpp:548:51: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(39) = ((_GEN_P_rQ2Pu_ * _Ajac_x(28)) + (_omcQ_24DAE_5FCJ_ * division(_Ajac_x(2),_GEN_P_omegaBase_,!_initial,"GEN.omegaBase"))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierJacobian.cpp:549:51: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(40) = ((_GEN_P_rQ1Pu_ * _Ajac_x(27)) + (_omcQ_24DAE_5FCJ_ * division(_Ajac_x(1),_GEN_P_omegaBase_,!_initial,"GEN.omegaBase"))); ^ ./OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierJacobian.cpp:551:57: error: use of undeclared identifier '_omcQ_24DAE_5FCJ_' _Ajac_y(41) = (_Ajac_tmp(11) + ((-2.0 * (_GEN_P_H_ * (_omcQ_24DAE_5FCJ_ * _Ajac_x(0)))) + ((-_Ajac_tmp(29)) - (_GEN_P_DPu_ * _Ajac_x(0))))); ^ 6 errors generated. make: *** [: OMCppPowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByModifierCalcHelperMain.o] Error 1