Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001606/0.001606, allocations: 185.3 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.903/1.903, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 94.45 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3072/0.3072, allocations: 37.97 MB / 353.1 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.176e-05/3.194e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 56.32 MB / 473.1 MB, free: 0.918 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5082/0.6256, allocations: 124 MB / 0.5832 GB, free: 11.65 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003463/0.626, allocations: 95.94 kB / 0.5833 GB, free: 11.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.195/0.8209, allocations: 42.74 MB / 0.625 GB, free: 292 kB / 458.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.821, allocations: 4 kB / 0.625 GB, free: 288 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001566/0.8212, allocations: 32 kB / 0.625 GB, free: 256 kB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.005464/0.8267, allocations: 1.414 MB / 0.6264 GB, free: 14.79 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.8267, allocations: 12.03 kB / 0.6264 GB, free: 14.77 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002956/0.8297, allocations: 285.8 kB / 0.6267 GB, free: 14.49 MB / 474.7 MB Error: Variable generator.par.V_nom in package PowerSystems.AC3ph.Generation.TurboGenerator$turboGen is not constant. Error: Variable generator.Vf_nom in package PowerSystems.AC3ph.Generation.TurboGenerator$turboGen is not constant. Notification: Performance of preOpt evaluateParameters (simulation): time 0.007288/0.837, allocations: 1.724 MB / 0.6284 GB, free: 12.73 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.8372, allocations: 94.36 kB / 0.6285 GB, free: 12.63 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006062/0.8379, allocations: 131.9 kB / 0.6286 GB, free: 12.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004796/0.8427, allocations: 1.621 MB / 0.6302 GB, free: 10.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.753e-05/0.8428, allocations: 15.83 kB / 0.6302 GB, free: 10.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002105/0.843, allocations: 59.94 kB / 0.6303 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002376/0.8433, allocations: 90.39 kB / 0.6303 GB, free: 10.64 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004492/0.8478, allocations: 1.341 MB / 0.6316 GB, free: 9.293 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01648/0.8643, allocations: 6.134 MB / 0.6376 GB, free: 2.824 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001985/0.8664, allocations: 0.6789 MB / 0.6383 GB, free: 2.117 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.8675, allocations: 436.8 kB / 0.6387 GB, free: 1.684 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.8677, allocations: 20.75 kB / 0.6387 GB, free: 1.664 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.8677, allocations: 39.34 kB / 0.6388 GB, free: 1.617 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 3.407e-06/0.8677, allocations: 0 / 0.6388 GB, free: 1.617 MB / 474.7 MB Notification: Performance of matching and sorting (n=83): time 0.3187/1.186, allocations: 3.519 MB / 0.6422 GB, free: 122.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/1.187, allocations: 164.6 kB / 0.6424 GB, free: 122.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/1.188, allocations: 0.7444 MB / 0.6431 GB, free: 122 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002201/1.188, allocations: 42 kB / 0.6431 GB, free: 122 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004912/1.189, allocations: 0.6356 MB / 0.6438 GB, free: 121.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004621/1.189, allocations: 308.2 kB / 0.644 GB, free: 121.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/1.19, allocations: 21.31 kB / 0.6441 GB, free: 121.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/1.19, allocations: 359.9 kB / 0.6444 GB, free: 121.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/1.191, allocations: 468.3 kB / 0.6449 GB, free: 121.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/1.192, allocations: 0.7577 MB / 0.6456 GB, free: 120.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/1.194, allocations: 0.596 MB / 0.6462 GB, free: 120.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/1.194, allocations: 1.75 kB / 0.6462 GB, free: 120.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.006316/1.2, allocations: 1.829 MB / 0.648 GB, free: 120.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006851/1.201, allocations: 3.223 MB / 0.6511 GB, free: 117.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005554/1.207, allocations: 1.49 MB / 0.6526 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003607/1.21, allocations: 0.568 MB / 0.6531 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003537/1.214, allocations: 0.4948 MB / 0.6536 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01978/1.234, allocations: 19.85 MB / 0.673 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/1.236, allocations: 76.64 kB / 0.6731 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/1.236, allocations: 46.52 kB / 0.6731 GB, free: 100.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/1.236, allocations: 3.875 kB / 0.6731 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006242/1.242, allocations: 1.758 MB / 0.6748 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005368/1.247, allocations: 1.48 MB / 0.6763 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003281/1.251, allocations: 0.5324 MB / 0.6768 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/1.253, allocations: 241.1 kB / 0.677 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/1.27, allocations: 18.5 MB / 0.6951 GB, free: 84.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/1.272, allocations: 58.31 kB / 0.6952 GB, free: 84.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/1.272, allocations: 53.03 kB / 0.6952 GB, free: 84.42 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,2,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004196/1.272, allocations: 175.9 kB / 0.6954 GB, free: 84.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/1.273, allocations: 100.1 kB / 0.6955 GB, free: 84.21 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003802/1.276, allocations: 1.346 MB / 0.6968 GB, free: 83.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/1.276, allocations: 7.656 kB / 0.6968 GB, free: 83.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/1.276, allocations: 11.59 kB / 0.6968 GB, free: 83.66 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/1.276, allocations: 7.688 kB / 0.6968 GB, free: 83.66 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007479/1.284, allocations: 2.824 MB / 0.6996 GB, free: 82.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/1.284, allocations: 3.969 kB / 0.6996 GB, free: 82.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/1.285, allocations: 134.8 kB / 0.6997 GB, free: 82.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001791/1.287, allocations: 389.9 kB / 0.7001 GB, free: 82.22 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/1.287, allocations: 30.81 kB / 0.7001 GB, free: 82.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009087/1.296, allocations: 8.642 MB / 0.7085 GB, free: 74.68 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.296, allocations: 14.33 kB / 0.7086 GB, free: 74.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004483/1.301, allocations: 1.992 MB / 0.7105 GB, free: 73.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008118/1.302, allocations: 260.2 kB / 0.7107 GB, free: 73.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/1.302, allocations: 26.2 kB / 0.7108 GB, free: 73.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.303, allocations: 48.7 kB / 0.7108 GB, free: 73.36 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/1.303, allocations: 70.94 kB / 0.7109 GB, free: 73.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.109e-05/1.303, allocations: 26.81 kB / 0.7109 GB, free: 73.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001052/1.304, allocations: 0.569 MB / 0.7115 GB, free: 73.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.304, allocations: 6.547 kB / 0.7115 GB, free: 73.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003639/1.308, allocations: 0.6595 MB / 0.7121 GB, free: 73.01 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 8 (turboGen.generator.phi_el,turboGen.generator.i_s[1],turboGen.generator.i_s[2],turboGen.generator.i_s[3],turboGen.rotor.w,RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004466/1.309, allocations: 210.5 kB / 0.7123 GB, free: 72.89 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008719/1.317, allocations: 3.465 MB / 0.7157 GB, free: 70.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/1.317, allocations: 0 / 0.7157 GB, free: 70.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/1.32, allocations: 1.122 MB / 0.7168 GB, free: 70.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/1.322, allocations: 203.8 kB / 0.717 GB, free: 70.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006206/1.328, allocations: 2.631 MB / 0.7196 GB, free: 68.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/1.329, allocations: 1.364 MB / 0.7209 GB, free: 68.03 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004362/1.33, allocations: 76.38 kB / 0.721 GB, free: 68.02 MB / 474.7 MB Notification: Performance of SimCode: time 1.343e-06/1.33, allocations: 0 / 0.721 GB, free: 68.02 MB / 474.7 MB Notification: Performance of Templates: time 0.07565/1.405, allocations: 51.1 MB / 0.7709 GB, free: 34.62 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineCalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineCalcHelperMain.cpp:29:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineInitialize.cpp:483:83: error: use of undeclared identifier \'turboGen_P_excitation_P_generator_P_par_P_V_nom_\'\n SystemDefaultImplementation::setRealStartValue(_turboGen_P_excitation_P_V_nom_, turboGen_P_excitation_P_generator_P_par_P_V_nom_, false);\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineInitialize.cpp:492:84: error: use of undeclared identifier \'turboGen_P_excitation_P_generator_P_Vf_nom_\'\n SystemDefaultImplementation::setRealStartValue(_turboGen_P_excitation_P_Vf_nom_, turboGen_P_excitation_P_generator_P_Vf_nom_, false);\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineInitialize.cpp:631:78: error: use of undeclared identifier \'turboGen_P_rotor_P_generator_P_par_P_S_nom_\'\n SystemDefaultImplementation::setRealStartValue(_turboGen_P_rotor_P_P_nom_, turboGen_P_rotor_P_generator_P_par_P_S_nom_, false);\n ^\n3 errors generated.\n: recipe for target \'OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineCalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLineCalcHelperMain.o] Error 1\n'